Skip to content

simtest: Export T_SRCDIR from the extratest target - #466

Merged
sysstat merged 1 commit into
sysstat:masterfrom
natoscott:fix/extratest-t-srcdir
Nov 22, 2026
Merged

sysstat merged 1 commit into
sysstat:masterfrom
natoscott:fix/extratest-t-srcdir

Conversation

@natoscott

Copy link
Copy Markdown
Contributor

make extratest fails immediately in CI (all matrix jobs) with:

0010
Not executable
make[1]: *** [Makefile:893: extraunit] Error 1

tests/extra/0010 (and 0100, 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 the do_test script, so invoking the extratest target directly - as .github/workflows/ci.yml does - leaves it unset, and the check for ${T_SRCDIR}/configure fails.

Export @srcdir@ from the extratest target so it works when invoked directly, in both in-tree (T_SRCDIR=.) and out-of-tree (absolute srcdir) builds. do_test all is 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.

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]>
@sysstat
sysstat merged commit da05e98 into sysstat:master Nov 22, 2026
7 checks passed
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