summaryrefslogtreecommitdiffstats
path: root/hw3/alltest.sh.in
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-12-15 21:50:21 +0800
committerLAN-TW <lantw44@gmail.com>2013-12-15 21:50:21 +0800
commitce98c591bdb7008313c976f1e7dbcc3e82ac9d67 (patch)
treed231f9a90dc3354e8f83ec006b79362b97af751c /hw3/alltest.sh.in
parentf7f3fa8bf9bce5872558e20eb4be5c4ecf5db5a5 (diff)
downloadsp2013-HW3.tar.gz
sp2013-HW3.tar.zst
sp2013-HW3.zip
HW3: 加入 README.txt 並修正 merger 計算重複數量的問題HW3
Diffstat (limited to 'hw3/alltest.sh.in')
-rw-r--r--hw3/alltest.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw3/alltest.sh.in b/hw3/alltest.sh.in
index 24c0c82..17ebdca 100644
--- a/hw3/alltest.sh.in
+++ b/hw3/alltest.sh.in
@@ -11,7 +11,7 @@ runtest () {
SI="${3}/test-${1}-ss.in"
SO="${3}/test-${1}-ss.out"
- if [ -z "$MERGE_NOCHECK" ]; then
+ if [ -z "$MERGER_NOCHECK" ]; then
O="${3}/test-${1}-ss-${2}.out"
else
O="/dev/null"
@@ -25,7 +25,7 @@ runtest () {
printf " ... " > /dev/tty
time -p sh -c "${B}/merger \"$2\" < \"${SI}\" | tail -n 1 > \"${O}\"" 2>&1 \
| head -n 2 | tr "\n" " " > /dev/tty
- if [ -z "$MERGE_NOCHECK" ]; then
+ if [ -z "$MERGER_NOCHECK" ]; then
cmp "${SO}" "${O}"
return $?
fi
@@ -46,6 +46,6 @@ for len in 100 10000 1000000 10000000; do
done
done
-if [ -z "$MERGE_NOCHECK" ]; then
+if [ -z "$MERGER_NOCHECK" ]; then
rm -rf "${T}"
fi