test scripts fixes
This commit is contained in:
parent
53f94f8ed4
commit
5086f1b2a1
2 changed files with 5 additions and 4 deletions
5
test/run
5
test/run
|
@ -44,10 +44,11 @@ do
|
||||||
total=`expr $total + 1`
|
total=`expr $total + 1`
|
||||||
FAIL=0
|
FAIL=0
|
||||||
unset ARG
|
unset ARG
|
||||||
ARG=`eval echo "\\${ARGS_$i}"`
|
testid="`echo $i | sed 's/\..*//'`"
|
||||||
|
ARG=`eval echo "\\${ARGS_$testid}"`
|
||||||
if [ "$USER" = root ]
|
if [ "$USER" = root ]
|
||||||
then su - bin -c "cd `pwd`; ./test$i" || FAIL=1
|
then su - bin -c "cd `pwd`; ./test$i" || FAIL=1
|
||||||
else echo ./test$i $ARG || FAIL=1
|
else ./test$i $ARG || FAIL=1
|
||||||
fi
|
fi
|
||||||
if [ $FAIL -eq 0 ]
|
if [ $FAIL -eq 0 ]
|
||||||
then passed=`expr $passed + 1`
|
then passed=`expr $passed + 1`
|
||||||
|
|
|
@ -81,7 +81,7 @@ g/c/s//!!!!!/g
|
||||||
w
|
w
|
||||||
q
|
q
|
||||||
END
|
END
|
||||||
ed x <y >/dev/null
|
ed 2>/dev/null x <y >/dev/null
|
||||||
cat >y <<END
|
cat >y <<END
|
||||||
g/#####/s//a/g
|
g/#####/s//a/g
|
||||||
g/@@@@@/s//b/g
|
g/@@@@@/s//b/g
|
||||||
|
@ -89,7 +89,7 @@ g/!!!!!/s//c/g
|
||||||
w
|
w
|
||||||
q
|
q
|
||||||
END
|
END
|
||||||
ed x <y >/dev/null
|
ed 2>/dev/null x <y >/dev/null
|
||||||
if cmp -s x $f; then : ; else echo Error in ed test 1; fi
|
if cmp -s x $f; then : ; else echo Error in ed test 1; fi
|
||||||
rm x y
|
rm x y
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue