Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: tests/spec2k/175.vpr/run.test.sh

Issue 2244023002: Fix bugs with SPEC2k for WebAssembly (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Add TODO for 175.vpr Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/spec2k/175.vpr/run.ref.sh ('k') | tests/spec2k/175.vpr/run.train.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 set -o nounset 6 set -o nounset
7 set -o errexit 7 set -o errexit
8 8
9 PREFIX=${PREFIX:-} 9 PREFIX=${PREFIX:-}
10 VERIFY=${VERIFY:-yes} 10 VERIFY=${VERIFY:-yes}
11 EMU_HACK=${EMU_HACK:-yes} 11 EMU_HACK=${EMU_HACK:-yes}
12 12
13 13
14 14
15 rm -f *.out 15 rm -f *.out
16 rm -f test* 16 rm -f test*
17 17
18 cp data/test/input/* . 18 cp data/test/input/* .
19 19
20 if [[ "${EMU_HACK}" != "no" ]] ; then 20 if [[ "${EMU_HACK}" != "no" ]] ; then
21 touch costs.out place.out route.out 21 touch costs.out place.out route.out
22 fi 22 fi
23 23
24 ARGS1="-nodisp -place_only -init_t 5 -exit_t 0.005 -alpha_t 0.9412 -inner_num 2" 24 ARGS1="-nodisp -place_only -init_t 5 -exit_t 0x1.47ae147ae147bp-8 -alpha_t \
25 ARGS2="-nodisp -route_only -route_chan_width 15 -pres_fac_mult 2 -acc_fac 1 -fir st_iter_pres_fac 4 -initial_pres_fac 8" 25 0x1.e1e4f765fd8aep-1 -inner_num 2"
26 ARGS2="-nodisp -route_only -route_chan_width 15 -pres_fac_mult 2 -acc_fac 1 \
27 -first_iter_pres_fac 4 -initial_pres_fac 8"
26 28
27 29
28 ${PREFIX} $1 ${DASHDASH} net.in arch.in place.out dum.out ${ARGS1} \ 30 ${PREFIX} $1 ${DASHDASH} net.in arch.in place.out dum.out ${ARGS1} \
29 >place_log.out 2>stderr1.out 31 >place_log.out 2>stderr1.out
30 32
31 ${PREFIX} $1 ${DASHDASH} net.in arch.in place.in route.out ${ARGS2} \ 33 ${PREFIX} $1 ${DASHDASH} net.in arch.in place.in route.out ${ARGS2} \
32 >route_log.out 2>stderr2.out 34 >route_log.out 2>stderr2.out
33 35
34 LIST="place_log.out route_log.out costs.out route.out" 36 LIST="place_log.out route_log.out costs.out route.out"
35 37
36 if [[ "${VERIFY}" != "no" ]] ; then 38 if [[ "${VERIFY}" != "no" ]] ; then
37 echo "VERIFY" 39 echo "VERIFY"
38 for i in ${LIST} ; do 40 for i in ${LIST} ; do
39 if ! diff $i data/test/output/$i ; then 41 if ! diff $i data/test/output/$i ; then
40 echo "" 42 echo ""
41 echo "Diff in $i might be within the tolerance" 43 echo "Diff in $i might be within the tolerance"
42 fi 44 fi
43 done 45 done
44 fi 46 fi
45 echo "OK" 47 echo "OK"
OLDNEW
« no previous file with comments | « tests/spec2k/175.vpr/run.ref.sh ('k') | tests/spec2k/175.vpr/run.train.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698