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
'
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 <AUTHOR@EXAMPLE.COM>" tmp
'
test_expect_success "check whether the $prefix email filter works for committers" '
- grep "C O MITTER <COMMITTER@EXAMPLE.COM>" tmp
+ grep "<committer@example.com> commit C O MITTER <COMMITTER@EXAMPLE.COM>" tmp
'
done