Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / spec2k / 252.eon / 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 python ../prepare_input.py --config $(basename $(pwd)) ref
14
15 LIST="pixels_out.cook pixels_out.kajiya pixels_out.rushmeier"
16
17 ${PREFIX} $1 ${DASHDASH} chair.control.kajiya chair.camera chair.surfaces chair.kajiya.ppm ppm pixels_out.kajiya \
18   > stdout1.out 2> stderr1.out
19
20 ${PREFIX} $1 ${DASHDASH} chair.control.cook chair.camera chair.surfaces chair.cook.ppm ppm pixels_out.cook \
21   > stdout2.out 2> stderr2.out
22
23 ${PREFIX} $1 ${DASHDASH} chair.control.rushmeier chair.camera chair.surfaces  chair.rushmeier.ppm ppm pixels_out.rushmeier \
24   > stdout3.out 2> stderr3.out
25
26
27 if [[ "${VERIFY}" != "no" ]] ; then
28   echo "VERIFY"
29   for i in ${LIST} ; do
30     ../specdiff.sh -a 0.005  $i  data/ref/output/$i
31   done
32 fi
33
34 echo "OK"