summaryrefslogtreecommitdiff
path: root/tests/colliding-file-names
blob: 964d026f07b144c337c8a93a76e4fa85daa419e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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