summaryrefslogtreecommitdiff
path: root/tests/colliding-file-names
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-06 22:51:15 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-06 22:51:15 -0800
commit20c6d7ec2c817aa561410130efc8c8254fbef2b2 (patch)
tree7fedf733ccf6f9ff3ee00913c4fc07110f4a7ba9 /tests/colliding-file-names
downloaddiffutils-20c6d7ec2c817aa561410130efc8c8254fbef2b2.tar.gz
diffutils-20c6d7ec2c817aa561410130efc8c8254fbef2b2.tar.bz2
diffutils-20c6d7ec2c817aa561410130efc8c8254fbef2b2.zip
Imported Upstream version 3.2upstream/3.2
Diffstat (limited to 'tests/colliding-file-names')
-rw-r--r--tests/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 100644
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