#!/bin/bash # Exit on error set -e # Test code goes here $MRT_MARIAN/marian-decoder -c $MRT_MODELS/wmt16_systems/marian.en-de.yml < text.in 2> logs.raw cat logs.raw | grep "] Best translation" | sed -r "s/.*Best translation [0-9]+ : (.*)/\1/" > logs.out $MRT_TOOLS/diff.sh logs.out text.expected > logs.diff # Exit with success code exit 0