Skip to content

Commit 34bcd1a

Browse files
committed
update integrate tests
1 parent 0189b6c commit 34bcd1a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/integrate/general_info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
EXEC /xxx/abacus
2-
CHECKACCURACY 1.0e-2
3-
NUMBEROFPROCESS 1
2+
CHECKACCURACY 2
3+
NUMBEROFPROCESS 4

tests/integrate/tools/run_check.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ check_out(){
66
outfile=$1
77
worddir=`awk '{print $1}' $outfile`
88
for word in $worddir; do
9+
# serach result.out and get information
910
cal=`grep "$word" $outfile | awk '{printf "%.'$CA'f\n",$2}'`
11+
# search result.ref and get information
1012
ref=`grep "$word" result.ref | awk '{printf "%.'$CA'f\n",$2}'`
13+
# compute the error between 'cal' and 'ref'
1114
error=`awk 'BEGIN {x='$ref';y='$cal';printf "%.'$CA'f\n",x-y}'`
15+
# compare the total time
1216
if [ $word == "totaltimeref" ]; then
1317
echo "$word this-test: $cal ref-1core-test: $ref"
1418
break
1519
fi
20+
# except the total time, other comparison may lead to 'wrong' results
1621
if [ $(echo "$error == 0"|bc) = 0 ]; then
1722
echo "----------Wrong!----------"
1823
echo "word cal ref error"

0 commit comments

Comments
 (0)