Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify tests using platform-specific test functionality #140

Merged
merged 4 commits into from
Feb 16, 2024

Conversation

syrmel
Copy link
Member

@syrmel syrmel commented Feb 13, 2024

Remove is_supported_platform logic from TestRig and many if is_supported_platform checks since tests can now be provided only for platforms for which they make sense.

@syrmel syrmel requested a review from JalonSolov February 16, 2024 22:02
@JalonSolov JalonSolov merged commit 0814006 into vlang:main Feb 16, 2024
4 checks passed
syrmel added a commit to syrmel/v-coreutils that referenced this pull request Feb 17, 2024
Add help to common CoreutilInfo

Add help

format_output WIP

Add shared pwd functions

Finally progress on the parser

Working mount point resolution

Standardize common return codes

Implement more stat

Implementing --file-system for stat

Updating help

Add --printf to stat

Cleaning up stat

Add tty util (vlang#138)

* Workflow test

* Workflow test for download

* Update name

* Use bin path

* Try with seq

* Download with powershell

* Fix path

* Test with two utils

* Initial tty

* Add tty to Windows exceptions

* Update README

* Remove workflow experiments

* Cleaner handling of unsupported platforms

* Match no tty error to GNU coreutil

* Mark Windows as unsupported for tty

* Match error even more precisely to GNU tty

* Prevent tests in supported platforms

Add users util (vlang#139)

* Put eol() in common

* Add assert_same_exit_code() to TestRig

* Initial users util

* Return in sorted order

* Move pointer indexing into unsafe block

* Fix test for Windows

* Add more detail for some errors to TestRig

* v fmt

* Nicer small diff reporting in same_results

* Correct call to eprintln_small_diff

* No eol if empty result returned

* Fix quotes in extra operand error

Simplify tests using platform-specific test functionality (vlang#140)

* Simplify tests using platform-specific test filtering

* Platform-specific tests for tty

* Remove is_supported_platform from TestRig, more elegantly solved with platform tests

* Use the uptime_nix_test in CI

Flaky tests
JalonSolov pushed a commit that referenced this pull request Feb 17, 2024
* Initial stat

Add help to common CoreutilInfo

Add help

format_output WIP

Add shared pwd functions

Finally progress on the parser

Working mount point resolution

Standardize common return codes

Implement more stat

Implementing --file-system for stat

Updating help

Add --printf to stat

Cleaning up stat

Add tty util (#138)

* Workflow test

* Workflow test for download

* Update name

* Use bin path

* Try with seq

* Download with powershell

* Fix path

* Test with two utils

* Initial tty

* Add tty to Windows exceptions

* Update README

* Remove workflow experiments

* Cleaner handling of unsupported platforms

* Match no tty error to GNU coreutil

* Mark Windows as unsupported for tty

* Match error even more precisely to GNU tty

* Prevent tests in supported platforms

Add users util (#139)

* Put eol() in common

* Add assert_same_exit_code() to TestRig

* Initial users util

* Return in sorted order

* Move pointer indexing into unsafe block

* Fix test for Windows

* Add more detail for some errors to TestRig

* v fmt

* Nicer small diff reporting in same_results

* Correct call to eprintln_small_diff

* No eol if empty result returned

* Fix quotes in extra operand error

Simplify tests using platform-specific test functionality (#140)

* Simplify tests using platform-specific test filtering

* Platform-specific tests for tty

* Remove is_supported_platform from TestRig, more elegantly solved with platform tests

* Use the uptime_nix_test in CI

Flaky tests

* Add exit codes and help to common

* Put common pwd functionality in common

* Initial stat

* Review fs type tests later

* Explicit variable to pass ref

* Better test coverage for stat and document GNU 9.x deviations

* Update README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants