We now test all the patterns using both a normal wildtest run and

a wildtest run with various -x and -e options.
This commit is contained in:
Wayne Davison committed 2006-01-02 17:46:24 +00:00
1 parent aec75b037b
commit 955a3a3ded
1 file changed
+6 -2
+6 -2
View File
@@ -11,10 +11,14 @@
set -x
"$TOOLDIR/wildtest" "$srcdir/wildtest.txt" >"$scratchdir/wild.out"
diff $diffopt "$scratchdir/wild.out" - <<EOF
# This test exercises the wildmatch() function (with no options) and the
# wildmatch_join() function (using -x and/or -e).
for opts in "" -x1 "-x1 -e1" "-x1 -e1se" -x2 "-x2 -ese" -x3 "-x3 -e1" -x4 "-x4 -e2e" -x5 "-x5 -es"; do
"$TOOLDIR/wildtest" $opts "$srcdir/wildtest.txt" >"$scratchdir/wild.out"
diff $diffopt "$scratchdir/wild.out" - <<EOF
No wildmatch errors found.
EOF
done
# The script would have aborted on error, so getting here means we've won.
exit 0