summaryrefslogtreecommitdiff
path: root/klm/test.sh
blob: d02a3dc960dd08aaee21837d564ed07b410f3f0f (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
#Run tests.  Requires Boost.
set -e
./compile.sh
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