1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

Convert tests/misc/ to use test-lib.sh, too.

This commit is contained in:
Jim Meyering
2007-09-08 12:26:55 +02:00
parent 28f1844cef
commit 03a08a4cd0
38 changed files with 148 additions and 605 deletions

View File

@@ -27,26 +27,14 @@ if test "$VERBOSE" = yes; then
arch --version
fi
pwd=`pwd`
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
trap '(exit $?); exit $?' 1 2 13 15
. $srcdir/../test-lib.sh
framework_failure=0
mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
if test $framework_failure = 1; then
echo "$0: failure in testing framework" 1>&2
(exit 1); exit 1
fi
fail=0
arch > out || fail=1
uname -m > exp || fail=1
cmp out exp || fail=1
test $fail = 1 && diff out exp 2> /dev/null
compare out exp || fail=1
(exit $fail); exit $fail