|
#!/bin/sh |
|
|
|
|
|
|
|
|
|
extractor=../extractor |
|
mert=../mert |
|
|
|
|
|
size=15 |
|
|
|
|
|
for f in $extractor $mert; do |
|
if ! [ -f $f ]; then |
|
echo "Error: no such file or directory: $f" |
|
echo "You should run `bjam` first!" |
|
exit 1 |
|
fi |
|
done |
|
|
|
|
|
for f in NBEST REF.0 REF.1 REF.2 init.opt; do |
|
if ! [ -f $f ]; then |
|
echo "Error: no such file or directory: $f" |
|
exit 1 |
|
fi |
|
done |
|
|
|
|
|
|
|
echo "Running tests for reading text files ..." |
|
./normal_test.sh $extractor $mert $size |
|
|
|
|
|
|
|
echo "Running tests for reading gzipped files ..." |
|
./gzipped_test.sh $extractor $mert $size |
|
|
|
echo "Smoke tests done." |
|
|