summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-24 08:40:47 +0000
committerJim Meyering <jim@meyering.net>2000-08-24 08:40:47 +0000
commit10d2bd9fe1475bc3dcafe7ae82fda4a7cc8a1e27 (patch)
treec005d248e8f2bc285b8f3a30528ef68dfe322668
parentd5f68c636f802d31c274d5b585c65fac792c9047 (diff)
downloadcoreutils-10d2bd9fe1475bc3dcafe7ae82fda4a7cc8a1e27.tar.xz
.
-rw-r--r--tests/dd/Makefile.in4
-rw-r--r--tests/sample-test26
2 files changed, 28 insertions, 2 deletions
diff --git a/tests/dd/Makefile.in b/tests/dd/Makefile.in
index ccfd68d05..3d88451f8 100644
--- a/tests/dd/Makefile.in
+++ b/tests/dd/Makefile.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
diff --git a/tests/sample-test b/tests/sample-test
new file mode 100644
index 000000000..c633c057f
--- /dev/null
+++ b/tests/sample-test
@@ -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