aboutsummaryrefslogtreecommitdiff
path: root/tests/grep.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/grep.test')
-rwxr-xr-xtests/grep.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/grep.test b/tests/grep.test
index 0e0f3c47..dee59924 100755
--- a/tests/grep.test
+++ b/tests/grep.test
@@ -167,3 +167,11 @@ ln -s nope sub/link
testing "" 'grep -r walrus sub 2>/dev/null; echo $?' "1\n" "" ""
rm -rf sub
+# --exclude-dir
+mkdir sub
+mkdir sub/yes
+echo "hello world" > sub/yes/test
+mkdir sub/no
+echo "hello world" > sub/no/test
+testing "--exclude-dir" 'grep --exclude-dir=no -r world sub' "sub/yes/test:hello world\n" "" ""
+rm -rf sub