mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-22 08:03:40 +08:00
28 lines
316 B
Bash
Executable File
28 lines
316 B
Bash
Executable File
#!/bin/sh
|
|
|
|
: ${RM=rm}
|
|
test=sunos-1
|
|
|
|
if test "$VERBOSE" = yes; then
|
|
set -x
|
|
$RM --version
|
|
fi
|
|
|
|
tmp=t-rm.$$
|
|
|
|
test_failure=0
|
|
mkdir $tmp || test_failure=1
|
|
|
|
if test $test_failure = 1; then
|
|
echo 'failure in testing framework'
|
|
exit 1
|
|
fi
|
|
|
|
fail=0
|
|
cd $tmp
|
|
$RM '' > /dev/null 2>&1 && fail=1
|
|
cd ..
|
|
rm -rf $tmp
|
|
|
|
exit $fail
|