#!/bin/sh

cat input | $JOSHUA/bin/joshua-decoder -m 500m -config joshua.config 2> log | sort > output

if [[ $? -ne 0 ]]; then
	exit 1
fi

diff -u output output.expected > diff

if [[ $? -eq 0 ]]; then
  rm -f output log diff
  exit 0
else
  exit 1
fi

#!/bin/sh

cat input | $JOSHUA/bin/joshua-decoder -m 500m -config joshua.config 2> log > output

if [[ $? -ne 0 ]]; then
	exit 1
fi

diff -u output output.expected > diff

if [[ $? -eq 0 ]]; then
  rm -f output log diff
  exit 0
else
  exit 1
fi

Remove sorting which may rely on LOCALE of machine
Remove sorting which may rely on LOCALE of machine

Here we fixed an integration test that will fail on any machine with a console locale set to a euro-based numbering system. So for example de-DE and fr-FR locales would fail this test.
