Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Let a test run require the tools it must not skip
Nothing could make a missing prerequisite fail. A host without
pkg-config builds without Lua, and make test then passed with every
Lua test skipped and the lua pass of t0201 never run. The whole-script
skips become named prerequisites so the same list covers them, and the
strace probe now traces the file class of calls the tests use, so an
strace too old for it skips rather than fails.
Diffstat (limited to 'tests/t0006-nolua.sh')
| -rwxr-xr-x | tests/t0006-nolua.sh | 4 |
1 file changed, 3 insertions, 1 deletion
diff --git a/tests/t0006-nolua.sh b/tests/t0006-nolua.sh index cd35fca..f68e731 100755 --- a/tests/t0006-nolua.sh +++ b/tests/t0006-nolua.sh @@ -10,7 +10,9 @@ test_description='Check the build without Lua' . ./setup.sh nolua="$TEST_OUTPUT_DIRECTORY/../build/nolua/cgit" -test -x "$nolua" || { +test_lazy_prereq CGIT_NOLUA 'test -x "$nolua"' + +test_have_prereq CGIT_NOLUA || { skip_all='Skipping the Lua-less checks: build/nolua/cgit is missing, run make test' test_done } |
