From 4c428b0412c4c0334a2bae1a90e8f494c5d05ce6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 08:32:12 -1000 Subject: 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. --- tests/t0006-nolua.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/t0006-nolua.sh') 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 } -- cgit 2.12.1