diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-08-21 05:23:24 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-08-21 05:23:24 +0000 |
commit | a3ec215973c3653ebdeb81dcdd1274519c376a3d (patch) | |
tree | dc0edc2133786db0565f19d51c4a9957dd69e2ac /tests/colliding-file-names | |
download | diffutils-tarball-a3ec215973c3653ebdeb81dcdd1274519c376a3d.tar.gz |
diffutils-3.5HEADdiffutils-3.5master
Diffstat (limited to 'tests/colliding-file-names')
-rwxr-xr-x | tests/colliding-file-names | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/colliding-file-names b/tests/colliding-file-names new file mode 100755 index 0000000..964d026 --- /dev/null +++ b/tests/colliding-file-names @@ -0,0 +1,19 @@ +#!/bin/sh +# Check that diff responds well if a directory has multiple file names +# that compare equal. + +. "${srcdir=.}/init.sh"; path_prepend_ ../src + +mkdir d1 d2 || fail=1 + +for i in abc abC aBc aBC; do + echo xyz >d1/$i || fail=1 +done + +for i in ABC ABc AbC Abc; do + echo xyz >d2/$i || fail=1 +done + +diff -r --ignore-file-name-case d1 d2 || fail=1 + +Exit $fail |