diffutils/tests/colliding-file-names
Stefano Lattarini 366adeb73d tests: make test runner a script, not a shell function
All the test scripts in the diffutils testsuite are shell scripts,
so the current definition of TESTS_ENVIRONMENT, which adaptively
run tests using either perl or the shell depending on their kind,
is an overkill.

Moreover, this change is required in order for the testsuite to
continue to work with the new testsuite harness that is planned
to be introduced in Automake 1.12 (which, as of the writing date,
is still under development and in late alpha state).

See also related discussion on bug-coreutils:
 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8887>

* tests/Makefile.am (TESTS_ENVIRONMENT): Remove definition of the
`shell_or_perl_' shell function, which is not required anymore.
(LOG_COMPILER): New, define to `$(SHELL)'.
* tests/binary: Make executable.
* tests/colliding-file-names: Likewise.
* tests/excess-slash: Likewise.
* tests/no-newline-at-eof: Likewise.
2011-10-11 16:40:12 +02:00

20 lines
358 B
Bash
Executable File

#!/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