- update source.
[platform/framework/web/crosswalk.git] / src / native_client / tests / spec2k / 176.gcc / 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
15 LIST="166.i 200.i expr.i integrate.i  scilab.i"
16
17 python ../prepare_input.py --config $(basename $(pwd)) ref
18
19
20 for i in ${LIST} ; do
21   out=${i%.*}.s
22   if [[ "${EMU_HACK}" != "no" ]] ; then
23     touch ${out}
24   fi
25
26
27   ${PREFIX} $1 ${DASHDASH} data/ref/input/$i -o ${out} \
28     > $i.stdout.out 2> $i.stderr.out
29 done
30
31 if [[ "${VERIFY}" != "no" ]] ; then
32   echo "VERIFY"
33   for i in ${LIST} ; do
34     out=${i%.*}.s
35     cmp  ${out}  data/ref/output/${out}
36   done
37 fi
38 echo "OK"