mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-27 12:04:25 +08:00
update framework
This commit is contained in:
parent
73f2d11007
commit
c175e3f6c8
@ -13,8 +13,8 @@ if test "$VERBOSE" = yes; then
|
||||
fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=`echo "$0"|sed 's,.*/,,'`.tmp
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
umask 022
|
||||
|
@ -8,12 +8,12 @@ if test "$VERBOSE" = yes; then
|
||||
fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=`echo "$0"|sed 's,.*/,,'`.tmp
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
test_failure=0
|
||||
mkdir $tmp || test_failure=1
|
||||
mkdir -p $tmp || test_failure=1
|
||||
|
||||
if test $test_failure = 1; then
|
||||
echo 'failure in testing framework'
|
||||
|
@ -11,12 +11,12 @@ if test "$VERBOSE" = yes; then
|
||||
fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=hash-$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp || exit $?; exit $status' 0
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 || exit $?; exit $status' 0
|
||||
trap 'exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
mkdir $tmp || framework_failure=1
|
||||
mkdir -p $tmp || framework_failure=1
|
||||
cd $tmp
|
||||
|
||||
# Create a hierarchy with 3*26 leaf directories, each at depth 153.
|
||||
|
@ -8,12 +8,12 @@ if test "$VERBOSE" = yes; then
|
||||
fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=`echo "$0"|sed 's,.*/,,'`.tmp
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
test_failure=0
|
||||
mkdir $tmp || test_failure=1
|
||||
mkdir -p $tmp || test_failure=1
|
||||
echo > $tmp/a || test_failure=1
|
||||
test -f $tmp/a || test_failure=1
|
||||
|
||||
|
@ -8,12 +8,12 @@ if test "$VERBOSE" = yes; then
|
||||
fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=`echo "$0"|sed 's,.*/,,'`.tmp
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
test_failure=0
|
||||
mkdir $tmp $tmp/a $tmp/b $tmp/c || test_failure=1
|
||||
mkdir -p $tmp $tmp/a $tmp/b $tmp/c || test_failure=1
|
||||
> $tmp/a/a || test_failure=1
|
||||
> $tmp/b/bb || test_failure=1
|
||||
> $tmp/c/cc || test_failure=1
|
||||
|
@ -9,12 +9,12 @@ fi
|
||||
. $srcdir/../lang-default
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=isatty.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
mkdir $tmp || framework_failure=1
|
||||
mkdir -p $tmp || framework_failure=1
|
||||
cd $tmp || framework_failure=1
|
||||
|
||||
if test $framework_failure = 1; then
|
||||
|
@ -8,12 +8,12 @@ fi
|
||||
. $srcdir/../lang-default
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=r2-$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp || exit $?; exit $status' 0
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 || exit $?; exit $status' 0
|
||||
trap 'exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
mkdir $tmp || framework_failure=1
|
||||
mkdir -p $tmp || framework_failure=1
|
||||
cd $tmp
|
||||
|
||||
mkdir t t/a t/a/b || framework_failure=1
|
||||
|
@ -9,12 +9,12 @@ if test "$VERBOSE" = yes; then
|
||||
fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=`echo "$0"|sed 's,.*/,,'`.tmp
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_fail=0
|
||||
mkdir $tmp || framework_fail=1
|
||||
mkdir -p $tmp || framework_fail=1
|
||||
cd $tmp || framework_fail=1
|
||||
|
||||
# Create 300 files (12 * 25).
|
||||
|
Loading…
Reference in New Issue
Block a user