| 1 |
#!/bin/sh |
| 2 |
# Test ignoring case |
| 3 |
|
| 4 |
. "${srcdir=.}/init.sh"; path_prepend_ ../src |
| 5 |
|
| 6 |
fail=0 |
| 7 |
|
| 8 |
printf 'Funky Stuff\n' >a |
| 9 |
printf 'fUNKy stuFf\n' >b |
| 10 |
|
| 11 |
diff -i a b >out || fail=1 |
| 12 |
compare /dev/null out || fail=1 |
| 13 |
|
| 14 |
require_utf8_locale_ |
| 15 |
|
| 16 |
echo 'AĀȀΆΑАӐḀἈA𐐀-Δ' >a |
| 17 |
echo 'aāȁάαаӑḁἀa𐐨-δ' >b |
| 18 |
|
| 19 |
diff -i a b >out || fail=1 |
| 20 |
compare /dev/null out || fail=1 |
| 21 |
|
| 22 |
mkdir d || framework_failure_ |
| 23 |
touch f d/F || framework_failure_ |
| 24 |
diff --ignore-file-name-case f d || fail=1 |
| 25 |
|
| 26 |
Exit $fail |