]> git.cameronkatri.com Git - cgit.git/blobdiff - tests/t0111-filter.sh
tests: only do lua tests if lua is compiled-in
[cgit.git] / tests / t0111-filter.sh
index 730f1c02a36b70cc64d63b87426d7ef625730fda..2fdc3669f492745b464c2a2fa593c15802acbe79 100755 (executable)
@@ -3,7 +3,12 @@
 test_description='Check filtered content'
 . ./setup.sh
 
-for prefix in exec lua
+prefixes="exec"
+if [ $CGIT_HAS_LUA -eq 1 ]; then
+       prefixes="$prefixes lua"
+fi
+
+for prefix in $prefixes
 do
        test_expect_success "generate filter-$prefix/tree/a%2bb" "
                cgit_url 'filter-$prefix/tree/a%2bb' >tmp