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-08-22 11:56:46 +0400
committerhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2011-08-22 11:56:46 +0400
commit3763b2466b11830259477f05fcdfed994c270747 (patch)
tree8efeea73b0203955f25ae4761614dc98490c5376 /regression-testing
parent1873030d248e6716ceea879e244d4a798b25d4cc (diff)
run scorer regression test from any directory
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4155 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'regression-testing')
-rwxr-xr-xregression-testing/run-test-scorer.perl9
1 files changed, 9 insertions, 0 deletions
diff --git a/regression-testing/run-test-scorer.perl b/regression-testing/run-test-scorer.perl
index e3395cfa8..22a7b9370 100755
--- a/regression-testing/run-test-scorer.perl
+++ b/regression-testing/run-test-scorer.perl
@@ -1,6 +1,15 @@
#!/usr/bin/perl -w
use strict;
+
+BEGIN {
+use Cwd qw/ abs_path /;
+use File::Basename;
+my $script_dir = dirname(abs_path($0));
+print STDERR "script_dir=$script_dir\n";
+push @INC, $script_dir;
+}
+
use FindBin qw($Bin);
use MosesRegressionTesting;
use Getopt::Long;