Hi,

I'm thinking about extending detokenizer.perl a bit, so I went looking
for regression tests for it...  As far as I can tell, there are pretty
much no tests for anything under the scripts directory, is that right?
 There is a scripts/tests/ subdirectory, and it contains a README that
explains that you run the tests by executing 'make tests' in the
scripts directory, but there is a comment in the relevant Makefile
saying that the 'tests' target is "applicable only at JHU environment
due to data dependencies", which would possibly explain why I get the
following error (from the scripts directory, immediately after
checking it out, under Cygwin):

$ make tests
export SCRIPTS_ROOTDIR=`pwd`; \
        cd tests; \
        ts=`date '+%Y%m%d-%H%M%N'`; \
        for test in *.test; do  \
          mkdir $test.$ts; \
          cd $test.$ts; \
          echo "Running $test  in  tests/$test.$ts"; \
          ../$test > log 2>&1 || exit 1; \
          cd ..; \
        done
Running full-train-mert-decode.test  in
tests/full-train-mert-decode.test.20110718-1413297840100
make: *** [tests] Error 1


... and in any case, the scripts/tests/ subdirectory only contains two
*.test files:

  full-train-mert-decode.test
  train-factored-test-step9.test

... so no tests specifically for scripts like detokenizer.perl,
tokenizer.perl, train-recaser.perl, etc.  (Also,
full-train-mert-decode.test seems out of place here, judging by the
name.)

To summarize, I guess my questions are:

1) Should I be able to run the existing tests under scripts/tests/,
and if so, what am I doing wrong?
2) Are there any regression tests of detokenizer.perl?  If not, and I
want to create some, are there any recommendations re how/where? (e.g.
does it make sense to add them under regression-testing/tests/ ?  I'm
guessing not really, it looks like the testing framework there assumes
that a decoder is required for each test, which wouldn't be the case
here.)

Regards,
Ben
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to