mosesdecoder/lm/test.sh
2011-11-17 12:49:55 +00:00

11 lines
410 B
Bash
Executable File

#!/bin/bash
#Run tests. Requires Boost.
cd "$(dirname "$0")/.."
set -e
lm/compile.sh
for i in util/{bit_packing,file_piece,joint_sort,key_value_packing,probing_hash_table,sorted_uniform,tokenize_piece}_test lm/{model,left}_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