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:
11
tests/shred/Makefile.am
Normal file
11
tests/shred/Makefile.am
Normal 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
29
tests/shred/remove
Executable 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
|
||||
Reference in New Issue
Block a user