diff options
-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 |