Skip to content

DNM: tests: make each test family optional #533

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

nwf
Copy link
Member

@nwf nwf commented May 12, 2025

Make each test's presence configurable via xmake. By default, all tests will be included and some can be notched out with one or more --test-${test}=n options. Use --all-tests=n to flip the default, generating a test suite binary including only those particular tests specified with --test-${test}=y. Use xmake f --help to see the list of ${test}s.

Perhaps hold off on merging until there's some better guidance from xmake upstream about option() handling; see xmake-io/xmake#6419 .

Review of the general approach is, however, quite welcome.

@nwf nwf requested review from davidchisnall and rmn30 May 12, 2025 13:53
@nwf nwf force-pushed the 202505-optionalize_tests branch 3 times, most recently from 604c34d to 38a5acd Compare May 12, 2025 15:20
@nwf nwf force-pushed the 202505-optionalize_tests branch 3 times, most recently from 491a2ef to 544755a Compare May 12, 2025 18:27
nwf added 2 commits May 12, 2025 20:15
Make each test's presence configurable via xmake.  By default, all tests
will be included and some can be notched out with one or more
`--test-${test}=n` options.  Use `--all-tests=n` to flip the default,
generating a test suite binary including only those particular tests
specified with `--test-${test}=y`.  Use `xmake f --help` to see the list
of `${test}`s.

While here, have xmake generate our test compartment entry prototypes
and the actual run_timed calls.

Also while here, now that we can test such things, push dependencies
down to each test where possible.
@nwf nwf force-pushed the 202505-optionalize_tests branch from 544755a to a47b865 Compare May 12, 2025 20:16
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