test: improve coverall
This commit is contained in:
parent
8f88339988
commit
e2a564c46d
|
@ -228,7 +228,7 @@
|
||||||
./test.sh -f tsim/table/vgroup.sim
|
./test.sh -f tsim/table/vgroup.sim
|
||||||
|
|
||||||
# ---- stream
|
# ---- stream
|
||||||
./test.sh -f tsim/stream/basic0.sim -v
|
./test.sh -f tsim/stream/basic0.sim -g
|
||||||
./test.sh -f tsim/stream/basic1.sim
|
./test.sh -f tsim/stream/basic1.sim
|
||||||
./test.sh -f tsim/stream/basic2.sim
|
./test.sh -f tsim/stream/basic2.sim
|
||||||
./test.sh -f tsim/stream/drop_stream.sim
|
./test.sh -f tsim/stream/drop_stream.sim
|
||||||
|
|
|
@ -15,7 +15,7 @@ VALGRIND=0
|
||||||
UNIQUE=0
|
UNIQUE=0
|
||||||
UNAME_BIN=`which uname`
|
UNAME_BIN=`which uname`
|
||||||
OS_TYPE=`$UNAME_BIN`
|
OS_TYPE=`$UNAME_BIN`
|
||||||
while getopts "f:avum" arg
|
while getopts "f:agvum" arg
|
||||||
do
|
do
|
||||||
case $arg in
|
case $arg in
|
||||||
f)
|
f)
|
||||||
|
@ -27,6 +27,9 @@ do
|
||||||
u)
|
u)
|
||||||
UNIQUE=1
|
UNIQUE=1
|
||||||
;;
|
;;
|
||||||
|
g)
|
||||||
|
VALGRIND=2
|
||||||
|
;;
|
||||||
?)
|
?)
|
||||||
echo "unknow argument"
|
echo "unknow argument"
|
||||||
;;
|
;;
|
||||||
|
@ -125,6 +128,9 @@ if [ -n "$FILE_NAME" ]; then
|
||||||
FLAG="-v"
|
FLAG="-v"
|
||||||
echo valgrind --tool=memcheck --leak-check=full --show-reachable=no --track-origins=yes --child-silent-after-fork=yes --show-leak-kinds=all --num-callers=20 -v --workaround-gcc296-bugs=yes --log-file=${LOG_DIR}/valgrind-tsim.log $PROGRAM -c $CFG_DIR -f $FILE_NAME $FLAG
|
echo valgrind --tool=memcheck --leak-check=full --show-reachable=no --track-origins=yes --child-silent-after-fork=yes --show-leak-kinds=all --num-callers=20 -v --workaround-gcc296-bugs=yes --log-file=${LOG_DIR}/valgrind-tsim.log $PROGRAM -c $CFG_DIR -f $FILE_NAME $FLAG
|
||||||
valgrind --tool=memcheck --leak-check=full --show-reachable=no --track-origins=yes --child-silent-after-fork=yes --show-leak-kinds=all --num-callers=20 -v --workaround-gcc296-bugs=yes --log-file=${LOG_DIR}/valgrind-tsim.log $PROGRAM -c $CFG_DIR -f $FILE_NAME $FLAG
|
valgrind --tool=memcheck --leak-check=full --show-reachable=no --track-origins=yes --child-silent-after-fork=yes --show-leak-kinds=all --num-callers=20 -v --workaround-gcc296-bugs=yes --log-file=${LOG_DIR}/valgrind-tsim.log $PROGRAM -c $CFG_DIR -f $FILE_NAME $FLAG
|
||||||
|
elif [ $VALGRIND -eq 2 ]; then
|
||||||
|
echo "ExcuteCmd:" $PROGRAM -c $CFG_DIR -f $FILE_NAME -v
|
||||||
|
$PROGRAM -c $CFG_DIR -f $FILE_NAME -v
|
||||||
else
|
else
|
||||||
echo "ExcuteCmd:" $PROGRAM -c $CFG_DIR -f $FILE_NAME
|
echo "ExcuteCmd:" $PROGRAM -c $CFG_DIR -f $FILE_NAME
|
||||||
$PROGRAM -c $CFG_DIR -f $FILE_NAME
|
$PROGRAM -c $CFG_DIR -f $FILE_NAME
|
||||||
|
|
|
@ -50,6 +50,7 @@ print $data[1000][1000]
|
||||||
$a1 = 0
|
$a1 = 0
|
||||||
$a2 = 0
|
$a2 = 0
|
||||||
$a3 = $a1 % $a2
|
$a3 = $a1 % $a2
|
||||||
|
$a4 = $a1 / $a2
|
||||||
print $a3
|
print $a3
|
||||||
|
|
||||||
$val = \\\1
|
$val = \\\1
|
||||||
|
|
Loading…
Reference in New Issue