diff options
Diffstat (limited to 'regression-testing')
7 files changed, 22 insertions, 1 deletions
diff --git a/regression-testing/run-test-suite.pl b/regression-testing/run-test-suite.pl index 1898c7f0c..540d4b60a 100755 --- a/regression-testing/run-test-suite.pl +++ b/regression-testing/run-test-suite.pl @@ -10,6 +10,9 @@ use Getopt::Long; ############################################################ my @tests = qw ( + score.phrase-based + score.phrase-based-with-alignment + score.hierarchical chart.target-syntax chart.hierarchical chart.target-syntax.ondisk @@ -41,6 +44,7 @@ use POSIX qw ( strftime ); my $decoderPhrase = "$Bin/../moses-cmd/src/moses"; my $decoderChart = "$Bin/../moses-chart-cmd/src/moses_chart"; +my $scoreExe = "$Bin/../scripts/training/phrase-extract/score"; my $test_dir; my $BIN_TEST = $script_dir; my $data_dir; @@ -79,17 +83,25 @@ foreach my $test (@tests) if ($model_type eq 'phrase') { $cmd .= "$test_run --decoder=$decoderPhrase"; + $cmd .= " --test=$test"; } elsif ($model_type eq 'chart.') { $cmd .= "$test_run --decoder=$decoderChart"; + $cmd .= " --test=$test"; + } + elsif ($model_type eq 'score.') + { + $cmd = "$Bin/tests/$test/run-test.pl $scoreExe"; } else { print "FAIL"; } - $cmd .= " --test=$test"; + +print STDERR "cmd = $cmd\n"; + my ($res, $output, $results_path) = do_test($cmd); format STDOUT = @<<<<<<<<<<<<<<<<<<<<<< @<<<<<<<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< diff --git a/regression-testing/tests/score.hierarchical/run-test.pl b/regression-testing/tests/score.hierarchical/run-test.pl new file mode 100644 index 000000000..9b6bdbcd5 --- /dev/null +++ b/regression-testing/tests/score.hierarchical/run-test.pl @@ -0,0 +1,3 @@ +#!/usr/bin/perl -w + + diff --git a/regression-testing/tests/score.hierarchical/truth/results.txt b/regression-testing/tests/score.hierarchical/truth/results.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/regression-testing/tests/score.hierarchical/truth/results.txt diff --git a/regression-testing/tests/score.phrase-based-with-alignment/run-test.pl b/regression-testing/tests/score.phrase-based-with-alignment/run-test.pl new file mode 100644 index 000000000..9b6bdbcd5 --- /dev/null +++ b/regression-testing/tests/score.phrase-based-with-alignment/run-test.pl @@ -0,0 +1,3 @@ +#!/usr/bin/perl -w + + diff --git a/regression-testing/tests/score.phrase-based-with-alignment/truth/results.txt b/regression-testing/tests/score.phrase-based-with-alignment/truth/results.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/regression-testing/tests/score.phrase-based-with-alignment/truth/results.txt diff --git a/regression-testing/tests/score.phrase-based/run-test.pl b/regression-testing/tests/score.phrase-based/run-test.pl new file mode 100644 index 000000000..9b6bdbcd5 --- /dev/null +++ b/regression-testing/tests/score.phrase-based/run-test.pl @@ -0,0 +1,3 @@ +#!/usr/bin/perl -w + + diff --git a/regression-testing/tests/score.phrase-based/truth/results.txt b/regression-testing/tests/score.phrase-based/truth/results.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/regression-testing/tests/score.phrase-based/truth/results.txt |