Repository navigation
simtest: Export T_SRCDIR from the extratest target - #466
Merged
Merged
Conversation
The extra tests use ${T_SRCDIR} to locate their test inputs, but that
variable is only exported by the do_test script. Running "make
extratest" directly, as the CI workflow does, leaves it unset and test
0010 fails immediately with "Not executable".
Export @srcdir@ from the extratest target so the target works when
invoked directly, for both in-tree and out-of-tree builds.
Signed-off-by: Nathan Scott <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
make extratestfails immediately in CI (all matrix jobs) with:tests/extra/0010(and0100,0200) locate their test inputs via${T_SRCDIR}, introduced by 7b4a4de ("simtest: Make extra tests runnable in out-of-tree environment"). That variable is only exported by thedo_testscript, so invoking theextratesttarget directly - as.github/workflows/ci.ymldoes - leaves it unset, and the check for${T_SRCDIR}/configurefails.Export
@srcdir@from theextratesttarget so it works when invoked directly, in both in-tree (T_SRCDIR=.) and out-of-tree (absolute srcdir) builds.do_test allis unaffected.Verified with
./do_test conf && ./do_test comp && ./do_test sim && make extratest(551/551 simulation tests plus extra tests pass), and with an out-of-tree build.