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:
authorRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2019-03-07 14:08:44 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2019-03-07 14:08:44 +0300
commit67351b246ba05a628652c74e6889cf450415e183 (patch)
treea9ff45476b53d2552c5016cbb348a7306fe4d352 /tests/server/test_ende_with_empty_lines.sh
parent6e6487f623a04f70b88f95a119971e69a7019453 (diff)
parent1dc088813338caeafe083fab3071efe9e471cc26 (diff)
Merge branch 'some-updates-scorelm'
Diffstat (limited to 'tests/server/test_ende_with_empty_lines.sh')
-rw-r--r--tests/server/test_ende_with_empty_lines.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/server/test_ende_with_empty_lines.sh b/tests/server/test_ende_with_empty_lines.sh
new file mode 100644
index 0000000..7ac5b59
--- /dev/null
+++ b/tests/server/test_ende_with_empty_lines.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# Exit on error
+set -e
+
+clean_up() {
+ kill $SERVER_PID
+}
+trap clean_up EXIT
+
+# Test code goes here
+$MRT_MARIAN/marian-server -c $MRT_MODELS/wmt16_systems/marian.en-de.yml -p 8765 > server.log 2>&1 &
+SERVER_PID=$!
+
+sleep 20
+
+python3 $MRT_MARIAN/../scripts/server/client_example.py -p 8765 < text.someempty.in > text.someempty.out
+kill $SERVER_PID
+
+$MRT_TOOLS/diff.sh text.someempty.out text.someempty.expected > text.someempty.diff
+test -e server.log
+grep -q "listening on port 8765" server.log
+
+# Exit with success code
+exit 0