summaryrefslogtreecommitdiff
path: root/tests/colliding-file-names
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-08-21 05:23:24 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-08-21 05:23:24 +0000
commita3ec215973c3653ebdeb81dcdd1274519c376a3d (patch)
treedc0edc2133786db0565f19d51c4a9957dd69e2ac /tests/colliding-file-names
downloaddiffutils-tarball-a3ec215973c3653ebdeb81dcdd1274519c376a3d.tar.gz
Diffstat (limited to 'tests/colliding-file-names')
-rwxr-xr-xtests/colliding-file-names19
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