diff options
author | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-01 05:18:13 +0400 |
---|---|---|
committer | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-01 05:18:13 +0400 |
commit | 5f3965de12becb739df04e4b873fde76f65b888d (patch) | |
tree | c43252c0f60d3fcd61872c0552916d57c826c286 /scripts/tests | |
parent | 0ac458c841ee3abffdf0a5907512e54860a5d8aa (diff) |
various tiny bugfixes
added basic testcases
moved qsub-wrapper to generic
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@434 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'scripts/tests')
-rw-r--r-- | scripts/tests/README | 4 | ||||
-rwxr-xr-x | scripts/tests/mert-moses-parallel.test | 14 | ||||
-rwxr-xr-x | scripts/tests/mert-moses-serial.test | 14 |
3 files changed, 32 insertions, 0 deletions
diff --git a/scripts/tests/README b/scripts/tests/README new file mode 100644 index 000000000..974cc65a2 --- /dev/null +++ b/scripts/tests/README @@ -0,0 +1,4 @@ +All *.test files here are run by ../Makefile. +The tests should assume, that they are launched in a fresh directory: + +tests/TESTNAME.test.TIMESTAMP/ diff --git a/scripts/tests/mert-moses-parallel.test b/scripts/tests/mert-moses-parallel.test new file mode 100755 index 000000000..00c174eff --- /dev/null +++ b/scripts/tests/mert-moses-parallel.test @@ -0,0 +1,14 @@ +#!/bin/bash + +MOSESCMD=/export/ws06osmt/bin/moses.2006-07-29 +DATADIR=/export/ws06osmt/example/met-parallel + +[ -e $MOSESCMD ] || exit 1 + +cp $DATADIR/moses.ini ./ || exit 1 +cp $DATADIR/dev.input ./ || exit 1 +cp $DATADIR/dev.ref ./ || exit 1 + +echo "Starting moses-perl" + +$SCRIPTS_ROOTDIR/training/mert-moses.pl --jobs=10 dev.input dev.ref $MOSESCMD ./moses.ini diff --git a/scripts/tests/mert-moses-serial.test b/scripts/tests/mert-moses-serial.test new file mode 100755 index 000000000..90df1433d --- /dev/null +++ b/scripts/tests/mert-moses-serial.test @@ -0,0 +1,14 @@ +#!/bin/bash + +MOSESCMD=/export/ws06osmt/bin/moses.2006-07-29 +DATADIR=/export/ws06osmt/example/met-parallel + +[ -e $MOSESCMD ] || exit 1 + +cp $DATADIR/moses.ini ./ || exit 1 +cp $DATADIR/dev.input ./ || exit 1 +cp $DATADIR/dev.ref ./ || exit 1 + +echo "Starting moses-perl" + +$SCRIPTS_ROOTDIR/training/mert-moses.pl dev.input dev.ref $MOSESCMD ./moses.ini |