]> git.cameronkatri.com Git - cgit.git/blobdiff - tests/t0111-filter.sh
Makefile: drive asciidoc directly for HTML output
[cgit.git] / tests / t0111-filter.sh
index c89020aa1f404d6f7990f12ecaa86e0681cc618d..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
@@ -30,11 +35,11 @@ do
        '
 
        test_expect_success "check whether the $prefix email filter works for authors" '
-               grep "A U THOR <AUTHOR@EXAMPLE.COM>" tmp
+               grep "<author@example.com> commit A U THOR &LT;AUTHOR@EXAMPLE.COM&GT;" tmp
        '
 
        test_expect_success "check whether the $prefix email filter works for committers" '
-               grep "C O MITTER &LT;COMMITTER@EXAMPLE.COM&GT;" tmp
+               grep "<committer@example.com> commit C O MITTER &LT;COMMITTER@EXAMPLE.COM&GT;" tmp
        '
 done