- update source.
[platform/framework/web/crosswalk.git] / src / native_client / tests / spec2k / 179.art / run.train.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 python ../prepare_input.py --config $(basename $(pwd)) train
15
16
17 ${PREFIX} $1 ${DASHDASH} -scanfile c756hel.in\
18                          -trainfile1 a10.img\
19                          -stride 2\
20                          -startx 134\
21                          -starty 220\
22                          -endx 184\
23                          -endy 240\
24                          -objects 3 >train.out 2>stderr.out
25
26
27 if [[ "${VERIFY}" != "no" ]] ; then
28   echo "VERIFY"
29   ../specdiff.sh -r 0.01 -l 10 train.out data/train/output/train.out
30 fi
31
32 echo "OK"