- update source.
[platform/framework/web/crosswalk.git] / src / native_client / tests / spec2k / 186.crafty / run.ref.sh
1 #!/bin/bash
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 set -o nounset
7 set -o errexit
8
9 PREFIX=${PREFIX:-}
10 VERIFY=${VERIFY:-yes}
11 EMU_HACK=${EMU_HACK:-yes}
12
13
14 if [[ "${EMU_HACK}" != "no" ]] ; then
15   touch game.001
16 fi
17
18 python ../prepare_input.py --config $(basename $(pwd)) ref
19
20 ${PREFIX} $1 <data/ref/input/crafty.in >stdout.out 2>stderr.out
21
22 if [[ "${VERIFY}" != "no" ]] ; then
23   echo "VERIFY"
24   cmp stdout.out data/ref/output/crafty.out
25 fi
26
27
28 echo "OK"