FAIL: include-exclude (exit: 1) =============================== ++ initial_cwd_=/home/siyer/grep/tests +++ expr ././include-exclude : '.*/\(.*\)$' ++ ME_=include-exclude +++ testdir_prefix_ +++ printf gt ++ pfx_=gt +++ mktempd_ /home/siyer/grep/tests gt-include-exclude.XXXX +++ case $# in +++ destdir_=/home/siyer/grep/tests +++ template_=gt-include-exclude.XXXX +++ MAX_TRIES_=4 +++ case $destdir_ in +++ case $template_ in +++ fail=0 ++++ env -u TMPDIR mktemp -d -t -p /home/siyer/grep/tests gt-include-exclude.XXXX +++ d=/home/siyer/grep/tests/gt-include-exclude.u4wC +++ case $d in +++ test -d /home/siyer/grep/tests/gt-include-exclude.u4wC ++++ ls -dgo /home/siyer/grep/tests/gt-include-exclude.u4wC ++++ tr S - +++ perms='drwx------ 2 4096 Apr 1 09:00 /home/siyer/grep/tests/gt-include-exclude.u4wC' +++ case $perms in +++ test 0 = 0 +++ echo /home/siyer/grep/tests/gt-include-exclude.u4wC +++ return ++ test_dir_=/home/siyer/grep/tests/gt-include-exclude.u4wC ++ cd /home/siyer/grep/tests/gt-include-exclude.u4wC ++ trap remove_tmp_ 0 ++ trap 'Exit $?' 1 2 13 15 + path_prepend_ ../src + test 1 '!=' 0 + path_dir_=../src + case $path_dir_ in ++ cd /home/siyer/grep/tests/../src ++ echo /home/siyer/grep/src + abs_path_dir_=/home/siyer/grep/src + case $abs_path_dir_ in + PATH=/home/siyer/grep/src:/home/siyer/grep/src:/usr/local/bin:/usr/bin:/bin:/usr/games + shift + test 0 '!=' 0 + export PATH + mkdir -p x/dir + echo a + echo b + echo d + printf '%s\n' x/b:b x/dir/d:d + printf '%s\n' x/dir/d:d + printf '%s\n' x/a:a x/b:b + printf '%s\n' x/a:a x/b:b + printf '%s\n' x/a:a + grep -r '--exclude=a*' . x + sort out + mv k out + compare out exp-not-a + diff -u out exp-not-a + grep -r '--exclude=[ab]' . x + sort out + mv k out + compare out exp-not-ab + diff -u out exp-not-ab + grep -r '--exclude=*d' . x + sort out + mv k out + compare out exp-not-d + diff -u out exp-not-d + grep -r --exclude-dir=dir . x + sort out + mv k out + compare out exp-not-dir + diff -u out exp-not-dir + grep -r --include=a . x + compare out exp-a + diff -u out exp-a + grep -r '--include=a*' . x + compare out exp-a + diff -u out exp-a --- out 2010-04-01 09:00:41.300994294 -0400 +++ exp-a 2010-04-01 09:00:41.264995904 -0400 @@ -1,2 +1 @@ -x/dir/d:d -x/b:b +x/a:a + fail=1 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + cd /home/siyer/grep/tests + chmod -R u+rwx /home/siyer/grep/tests/gt-include-exclude.u4wC + rm -rf /home/siyer/grep/tests/gt-include-exclude.u4wC + exit 1