From f32e44bb10360465469891289be128ec66a666df Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 28 Mar 2010 20:49:39 +0200 Subject: tests: also exercise the --include + glob path * tests/include-exclude: Exercise Javier's fix. --- tests/include-exclude | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/include-exclude b/tests/include-exclude index f4e5d9d2..0745ce5c 100644 --- a/tests/include-exclude +++ b/tests/include-exclude @@ -30,8 +30,14 @@ grep -r --exclude-dir=dir . x > out || fail=1 sort out > k && mv k out compare out exp-not-dir || fail=1 +# Test with a non-glob. grep -r --include=a . x > out || fail=1 # no need to sort compare out exp-a || fail=1 +# Also test --include with a "glob". +grep -r --include='a*' . x > out || fail=1 +# no need to sort +compare out exp-a || fail=1 + Exit $fail -- cgit v1.2.1