*** empty log message ***
authorJim Meyering <jim@meyering.net>
Mon, 13 Dec 1999 15:03:51 +0000 (15:03 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 13 Dec 1999 15:03:51 +0000 (15:03 +0000)
tests/shred/Makefile.am [new file with mode: 0644]
tests/shred/remove [new file with mode: 0755]

diff --git a/tests/shred/Makefile.am b/tests/shred/Makefile.am
new file mode 100644 (file)
index 0000000..b2e83ec
--- /dev/null
@@ -0,0 +1,11 @@
+## Process this file with automake to produce Makefile.in -*-Makefile-*-.
+
+EXTRA_DIST = $(TESTS)
+
+TESTS_ENVIRONMENT = \
+  top_srcdir=$(top_srcdir) \
+  srcdir=$(srcdir) \
+  PERL="@PERL@" \
+  PATH=../../src:$$PATH
+
+TESTS = remove
diff --git a/tests/shred/remove b/tests/shred/remove
new file mode 100755 (executable)
index 0000000..4664ca4
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Test some of ls's sorting options.
+
+if test "$VERBOSE" = yes; then
+  set -x
+  shred --version
+fi
+
+tmp=t-shred.$$
+
+framework_failure=0
+mkdir $tmp || framework_failure=1
+touch $tmp/file || framework_failure=1
+chmod u-w $tmp || framework_failure=1
+
+if test $framework_failure = 1; then
+  echo 'failure in testing framework'
+  exit 1
+fi
+
+fail=0
+
+# This would infloop with the version from fileutils-4.0k.
+shred -u $tmp/file
+
+cd ..
+rm -rf $tmp
+
+exit $fail