- update source.
[platform/framework/web/crosswalk.git] / src / native_client / tests / spec2k / 300.twolf / run.test.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 rm -f *.out
15 cp  data/test/input/* .
16
17
18 LIST="test.out test.twf test.pl1 test.pl2 test.sav test.pin test.sv2"
19
20 if [[ "${EMU_HACK}" != "no" ]] ; then
21   touch  ${LIST}
22   touch  test.tmp
23   touch  test.cel
24 fi
25
26 ${PREFIX} $1 ${DASHDASH} test >stdout.out 2>stderr.out
27
28 if [[ "${VERIFY}" != "no" ]] ; then
29   echo "VERIFY"
30   #../specdiff.sh -o stdout.out data/test/output/test.stdout
31   echo "SKIP STDOUT"
32   for i in ${LIST}; do
33     ../specdiff.sh -o $i data/test/output/$i
34   done
35 fi
36 echo "OK"
37