From a3ec215973c3653ebdeb81dcdd1274519c376a3d Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sun, 21 Aug 2016 05:23:24 +0000 Subject: diffutils-3.5 --- tests/colliding-file-names | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tests/colliding-file-names (limited to 'tests/colliding-file-names') 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 -- cgit v1.2.1