mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
.
This commit is contained in:
@@ -122,10 +122,10 @@ TESTS_ENVIRONMENT = \
|
||||
srcdir=$(srcdir) \
|
||||
PERL="@PERL@" \
|
||||
PATH=`pwd`/../../src:$$PATH \
|
||||
PROG=ls
|
||||
PROG=dd
|
||||
|
||||
|
||||
TESTS = misc
|
||||
TESTS = misc not-rewound
|
||||
subdir = tests/dd
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../../config.h
|
||||
|
||||
26
tests/sample-test
Normal file
26
tests/sample-test
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
# FIXME
|
||||
|
||||
if test "$VERBOSE" = yes; then
|
||||
set -x
|
||||
FIXME --version
|
||||
fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=FIXME.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
mkdir $tmp || framework_failure=1
|
||||
cd $tmp || framework_failure=1
|
||||
|
||||
if test $framework_failure = 1; then
|
||||
echo 'failure in testing framework'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
fail=0
|
||||
|
||||
|
||||
(exit $fail); exit
|
||||
Reference in New Issue
Block a user