Modify: simplify the test script

This commit is contained in:
suxunbin 2017-11-27 12:46:02 +08:00
parent 5bb4f276ff
commit 0e400af31d
1 changed files with 4 additions and 7 deletions

View File

@ -17,7 +17,7 @@ pass=1
echo "gbuild......"
for i in 0 1 2 3
do
${op[0]} ${db[$i]} ${path}${db[$i]}"/"${db[$i]}".nt" > "1.txt"
${op[0]} ${db[$i]} ${path}${db[$i]}"/"${db[$i]}".nt" > "1.txt" 2>&1
"rm" "1.txt"
done
@ -97,13 +97,8 @@ fi
}
echo "gquery......"
gquery
if [ $pass -eq 1 ]
then
echo "Passed!"
fi
#gadd and gsub
pass=1
echo "gsub and gadd......"
for i in 0 1 2 3
do
@ -139,7 +134,9 @@ then
fi
if [ $pass -eq 1 ]
then
echo "Passed!"
echo "Test passed!"
else
echo "Test failed!"
fi