1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-18 05:12:15 +02:00
Files
coreutils/tests/touch/dir-1
Jim Meyering 3c88587b2e tests: factor 350 fail=0 initializations into test-lib.sh
Run this command to remove the factored-out "fail=0" lines.
perl -ni -e '/^fail=0$/ or print' $(g grep -l '^fail=0$')
* tests/test-lib.sh: Initialize fail=0 here, not in 300+ scripts.
* tests/...: nearly all bourne shell scripts
Suggested by Eric Blake.
2009-10-30 12:50:12 +01:00

14 lines
220 B
Bash
Executable File

#!/bin/sh
# Make sure touch can operate on a directory.
# This was broken in the 4.0[efg] test releases.
if test "$VERBOSE" = yes; then
set -x
touch --version
fi
. $srcdir/test-lib.sh
touch . || fail=1
Exit $fail