diff options
author | Jim Meyering <jim@meyering.net> | 1999-12-13 15:03:51 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-12-13 15:03:51 +0000 |
commit | 5c2322aaccbceddf7fbd8e17b570b101d1eec186 (patch) | |
tree | be6756399ab993364574c2498bbf1400e4944c47 /tests | |
parent | 0c7c8c2992f0408ef3a1d977744bbd847f5c33ca (diff) | |
download | coreutils-5c2322aaccbceddf7fbd8e17b570b101d1eec186.tar.xz |
*** empty log message ***
Diffstat (limited to 'tests')
-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 |