Commit | Line | Data |
---|---|---|
08c5385e WD |
1 | #! /bin/sh |
2 | ||
3 | # Copyright (C) 2003 by Wayne Davison <wayned@samba.org> | |
4 | ||
5 | # This program is distributable under the terms of the GNU GPL (see | |
6 | # COPYING). | |
7 | ||
8 | # Test the wildmatch functionality | |
9 | ||
e920830e | 10 | . "$suitedir/rsync.fns" |
08c5385e | 11 | |
13725744 WD |
12 | set -x |
13 | ||
955a3a3d WD |
14 | # This test exercises the wildmatch() function (with no options) and the |
15 | # wildmatch_join() function (using -x and/or -e). | |
16 | for opts in "" -x1 "-x1 -e1" "-x1 -e1se" -x2 "-x2 -ese" -x3 "-x3 -e1" -x4 "-x4 -e2e" -x5 "-x5 -es"; do | |
17 | "$TOOLDIR/wildtest" $opts "$srcdir/wildtest.txt" >"$scratchdir/wild.out" | |
18 | diff $diffopt "$scratchdir/wild.out" - <<EOF | |
37ff0e34 | 19 | No wildmatch errors found. |
08c5385e | 20 | EOF |
955a3a3d | 21 | done |
08c5385e | 22 | |
05118158 | 23 | # The script would have aborted on error, so getting here means we've won. |
08c5385e | 24 | exit 0 |