From: Jim Meyering Date: Wed, 5 Jan 2005 07:53:11 +0000 (+0000) Subject: Add a test for today's fix: X-Git-Tag: v5.3.0~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78652e53f51c72e09309a811fd206dc757b94490;p=thirdparty%2Fcoreutils.git Add a test for today's fix: (process_file): Evaluate exclusion rules against the entire file name, not just the last component. --- diff --git a/tests/du/exclude b/tests/du/exclude index 41f7ecd56a..de24ba19b4 100755 --- a/tests/du/exclude +++ b/tests/du/exclude @@ -32,6 +32,11 @@ 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 +# Make sure that we can exclude based on more than one component. +# Before coreutils-5.3.0, this part would fail. +printf '===\n' >> out +du --exclude=a/u --exclude=a/b a \ + | sed 's/^[0-9][0-9]* //' | sort >> out || fail=1 cat <<\EOF > exp a a/b @@ -45,6 +50,10 @@ a/u/v a/x a/x/y === +=== +a +a/x +a/x/y EOF cmp out exp || fail=1