diff options
author | Jim Meyering <jim@meyering.net> | 2003-02-05 14:29:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-02-05 14:29:59 +0000 |
commit | 862ae182e136045fe081384a88d6a9e9db78e201 (patch) | |
tree | 2bd56361840a5b0b1276f503e29b7ea4d9351571 /tests/du/exclude | |
parent | c7a61822f666c5154e4c24211120386af43636bd (diff) | |
download | coreutils-862ae182e136045fe081384a88d6a9e9db78e201.tar.xz |
make sure excluding an entire hierarchy works
Diffstat (limited to 'tests/du/exclude')
-rwxr-xr-x | tests/du/exclude | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/du/exclude b/tests/du/exclude index 05382a81c..300300300 100755 --- a/tests/du/exclude +++ b/tests/du/exclude @@ -27,6 +27,9 @@ du --exclude=x a | sed 's/^[0-9][0-9]* //' | sort > out || fail=1 printf '===\n' >> out printf 'b\n' > excl du --exclude-from=excl a | sed 's/^[0-9][0-9]* //' | sort >> out || fail=1 +printf '===\n' >> out +# Make sure that we can exclude an entire hierarchy. +du --exclude=a a >> out || fail=1 cat <<\EOF > exp a a/b @@ -39,6 +42,7 @@ a/u a/u/v a/x a/x/y +=== EOF cmp out exp || fail=1 |