Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/decoder/inputs/test_subprocess_line_by_line.sh')
-rw-r--r--tests/decoder/inputs/test_subprocess_line_by_line.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/decoder/inputs/test_subprocess_line_by_line.sh b/tests/decoder/inputs/test_subprocess_line_by_line.sh
new file mode 100644
index 0000000..28c5fe1
--- /dev/null
+++ b/tests/decoder/inputs/test_subprocess_line_by_line.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Exit on error
+set -e
+
+# Test code goes here
+timeout 10 python subprocess_script.py $MRT_MARIAN $MRT_MODELS/wmt16_systems/marian.en-de.yml text.in > subprocess.out
+$MRT_TOOLS/diff.sh subprocess.out subprocess.expected > subprocess.diff
+
+# Exit with success code
+exit 0