Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Count the auth unit checks as skipped without Lua
With no standalone Lua on the path the unit checks were never
registered, so they counted as neither run nor skipped, and t0505
passed on its cgit checks alone.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0505-auth.sh | 9 |
1 file changed, 6 insertions, 3 deletions
diff --git a/tests/t0505-auth.sh b/tests/t0505-auth.sh index 3b45dd3..27b3734 100755 --- a/tests/t0505-auth.sh +++ b/tests/t0505-auth.sh @@ -21,11 +21,14 @@ CGIT_TEST_NO_CREATE_REPOS=YesPlease auth_hash=$(openssl passwd -6 -salt testsalt "open sesame" 2>/dev/null) || auth_hash= -for lua in $interpreters +# With no standalone Lua the unit checks still count, as skipped. +test -z "$interpreters" || test_set_prereq STANDALONE_LUA + +for lua in ${interpreters:-lua} do for variant in inline file do - test_expect_success "auth-$variant checks under $lua" ' + test_expect_success STANDALONE_LUA "auth-$variant checks under $lua" ' mkdir "unit-$lua-$variant" && "$lua" "$EXT_TEST_DIRECTORY/test-auth.lua" \ "$EXTENSIONS_DIRECTORY/auth-$variant.lua" $variant "$PWD/unit-$lua-$variant" @@ -43,7 +46,7 @@ do fi for variant in inline file do - test_expect_success $auth_libs "auth-$variant checks against the real libraries under $lua" ' + test_expect_success "STANDALONE_LUA,$auth_libs" "auth-$variant checks against the real libraries under $lua" ' mkdir "real-$lua-$variant" && "$lua" "$EXT_TEST_DIRECTORY/test-auth.lua" \ "$EXTENSIONS_DIRECTORY/auth-$variant.lua" $variant "$PWD/real-$lua-$variant" "$auth_hash" |
