summaryrefslogtreecommitdiff
path: root/klm/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'klm/test.sh')
-rwxr-xr-xklm/test.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/klm/test.sh b/klm/test.sh
new file mode 100755
index 00000000..b741cdf0
--- /dev/null
+++ b/klm/test.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+#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
+done