Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-11-20 17:47:59 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-11-20 17:47:59 +0300
commit752ac68d08fe3dcede6f4a382034d2a4bebf6241 (patch)
tree529bd4324bab017467c158ebc794625c57a8adb4 /run-regtests.sh
parentc6eca2ec87d9bb88e92bebf7957333ad9d369347 (diff)
parent42c57d077b6090dff58a74023eb05e1c7161b04f (diff)
Merge branch 'moses-server-placeholder-patch' of https://github.com/ebay-hlt/mosesdecoder into ebay-hlt-moses-server-placeholder-patch
Conflicts: regression-testing/Jamfile run-regtests.sh
Diffstat (limited to 'run-regtests.sh')
-rwxr-xr-xrun-regtests.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/run-regtests.sh b/run-regtests.sh
index 15eb134a5..db4290a90 100755
--- a/run-regtests.sh
+++ b/run-regtests.sh
@@ -5,11 +5,18 @@
set -e -o pipefail -x
opt=$(pwd)/opt
-# git submodule init
-# git submodule update regtest
+git submodule init
+git submodule update regtest
+if [ "$RECOMPILE" == "NO" ] ; then
+ RECOMPILE=
+else
+ RECOMPILE="-a"
+fi
# test compilation without xmlrpc-c
-./bjam -j$(nproc) --with-irstlm=$opt --with-boost=$opt --with-cmph=$opt --no-xmlrpc-c --with-regtest=./regtest -a -q $@ || exit $?
+./bjam -j$(nproc) --with-irstlm=$opt --with-boost=$opt --with-cmph=$opt --no-xmlrpc-c --with-regtest=$(pwd)/regtest -a -q $@ || exit $?
# test compilation with xmlrpc-c
-./bjam -j$(nproc) --with-irstlm=$opt --with-boost=$opt --with-cmph=$opt --with-xmlrpc-c=$opt --with-regtest=./regtest -a -q $@
+if ./regression-testing/run-single-test.perl --server --startuptest ; then
+ ./bjam -j$(nproc) --with-irstlm=$opt --with-boost=$opt --with-cmph=$opt --with-xmlrpc-c=$opt --with-regtest=$(pwd)/regtest $RECOMPILE -q $@
+fi