- update source.
[platform/framework/web/crosswalk.git] / src / native_client / tests / spec2k / 177.mesa / 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 ${PREFIX} $1 ${DASHDASH} -frames 1000 -meshfile mesa.in -ppmfile mesa.ppm >mesa.out 2>mesa.err
16
17 if [[ "${VERIFY}" != "no" ]] ; then
18   echo "VERIFY"
19   cmp  mesa.log  data/ref/output/mesa.log
20   ../specdiff.sh -a 6 -l 10 mesa.ppm data/ref/output/mesa.ppm
21 fi
22
23
24 echo "OK"