summaryrefslogtreecommitdiff
path: root/klm/test.sh
diff options
context:
space:
mode:
authorKenneth Heafield <kheafiel@cluster10.lti.ece.cmu.local>2011-04-06 17:19:05 -0400
committerKenneth Heafield <kheafiel@cluster10.lti.ece.cmu.local>2011-04-06 17:19:05 -0400
commitbca7c502d92150af9cd7a7fea389eb21e8852ab0 (patch)
treeaad0b83891d42ca2e9b24a593d9f3fdadd841fa1 /klm/test.sh
parent302c5a9de27469e7b6fe44f7093619e04314e719 (diff)
Update build scripts and minor string_piece header changes
Diffstat (limited to 'klm/test.sh')
-rwxr-xr-xklm/test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/klm/test.sh b/klm/test.sh
index b741cdf0..d02a3dc9 100755
--- a/klm/test.sh
+++ b/klm/test.sh
@@ -2,7 +2,7 @@
#Run tests. Requires Boost.
set -e
./compile.sh
-for i in util/{file_piece,joint_sort,key_value_packing,probing_hash_table,sorted_uniform}_test lm/ngram_test; do
- g++ -I. -O3 $i.cc {lm,util}/*.o -lboost_test_exec_monitor -o $i
- pushd $(dirname $i) && ./$(basename $i); popd
+for i in util/{bit_packing,file_piece,joint_sort,key_value_packing,probing_hash_table,sorted_uniform}_test lm/model_test; do
+ g++ -I. -O3 $CXXFLAGS $i.cc {lm,util}/*.o -lboost_test_exec_monitor -lz -o $i
+ pushd $(dirname $i) >/dev/null && ./$(basename $i) || echo "$i failed"; popd >/dev/null
done