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:
authorhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2011-07-27 14:14:33 +0400
committerhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2011-07-27 14:14:33 +0400
commite389e9fec7a167f87e37a0f837090ed3dbb7ef70 (patch)
treeca60f4daee087b60a54dedb71807e456e8b89391 /regression-testing
parent677378774aca30c8f0d4ca57267f7ac5ef7d7cb6 (diff)
default decoders if none specified
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4094 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'regression-testing')
-rwxr-xr-xregression-testing/run-test-suite.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/regression-testing/run-test-suite.pl b/regression-testing/run-test-suite.pl
index aa42209b8..1898c7f0c 100755
--- a/regression-testing/run-test-suite.pl
+++ b/regression-testing/run-test-suite.pl
@@ -3,6 +3,8 @@
# $Id$
use strict;
+use FindBin qw($Bin);
+
my $script_dir; BEGIN { use Cwd qw/ abs_path /; use File::Basename; $script_dir = dirname(abs_path($0)); push @INC, $script_dir; }
use Getopt::Long;
@@ -37,8 +39,8 @@ use MosesRegressionTesting;
use File::Temp qw ( tempfile );
use POSIX qw ( strftime );
-my $decoderPhrase;
-my $decoderChart;
+my $decoderPhrase = "$Bin/../moses-cmd/src/moses";
+my $decoderChart = "$Bin/../moses-chart-cmd/src/moses_chart";
my $test_dir;
my $BIN_TEST = $script_dir;
my $data_dir;
@@ -48,6 +50,7 @@ GetOptions( "decoder-phrase=s" => \$decoderPhrase,
"data-dir=s" => \$data_dir,
) or exit 1;
+
$data_dir = MosesRegressionTesting::find_data_directory($BIN_TEST, $data_dir);
my $test_run = "$BIN_TEST/run-single-test.pl --data-dir=$data_dir";