File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / rsync / testsuite / wildmatch.test
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:32:36 2021 UTC (3 years, 3 months ago) by misho
Branches: rsync, MAIN
CVS tags: v3_2_3, HEAD
rsync 3.2.3

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>