diff options
-rw-r--r-- | tests/shred/Makefile.am | 11 | ||||
-rwxr-xr-x | tests/shred/remove | 29 |
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/shred/Makefile.am b/tests/shred/Makefile.am new file mode 100644 index 000000000..b2e83ecb1 --- /dev/null +++ b/tests/shred/Makefile.am @@ -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 index 000000000..4664ca4a6 --- /dev/null +++ b/tests/shred/remove @@ -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 |