1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

*** empty log message ***

This commit is contained in:
Jim Meyering
1999-12-13 15:03:51 +00:00
parent 0c7c8c2992
commit 5c2322aacc
2 changed files with 40 additions and 0 deletions

11
tests/shred/Makefile.am Normal file
View File

@@ -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

29
tests/shred/remove Executable file
View File

@@ -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