| OLD | NEW |
| 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 0x1.47ae147ae147bp-8 -alpha_t \ | 24 ARGS1="-nodisp -place_only -init_t 5 -exit_t 0.005 -alpha_t 0.9412 -inner_num 2" |
| 25 0x1.e1e4f765fd8aep-1 -inner_num 2" | 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" |
| 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" | |
| 28 | 26 |
| 29 | 27 |
| 30 ${PREFIX} $1 ${DASHDASH} net.in arch.in place.out dum.out ${ARGS1} \ | 28 ${PREFIX} $1 ${DASHDASH} net.in arch.in place.out dum.out ${ARGS1} \ |
| 31 >place_log.out 2>stderr1.out | 29 >place_log.out 2>stderr1.out |
| 32 | 30 |
| 33 ${PREFIX} $1 ${DASHDASH} net.in arch.in place.in route.out ${ARGS2} \ | 31 ${PREFIX} $1 ${DASHDASH} net.in arch.in place.in route.out ${ARGS2} \ |
| 34 >route_log.out 2>stderr2.out | 32 >route_log.out 2>stderr2.out |
| 35 | 33 |
| 36 LIST="place_log.out route_log.out costs.out route.out" | 34 LIST="place_log.out route_log.out costs.out route.out" |
| 37 | 35 |
| 38 if [[ "${VERIFY}" != "no" ]] ; then | 36 if [[ "${VERIFY}" != "no" ]] ; then |
| 39 echo "VERIFY" | 37 echo "VERIFY" |
| 40 for i in ${LIST} ; do | 38 for i in ${LIST} ; do |
| 41 if ! diff $i data/test/output/$i ; then | 39 if ! diff $i data/test/output/$i ; then |
| 42 echo "" | 40 echo "" |
| 43 echo "Diff in $i might be within the tolerance" | 41 echo "Diff in $i might be within the tolerance" |
| 44 fi | 42 fi |
| 45 done | 43 done |
| 46 fi | 44 fi |
| 47 echo "OK" | 45 echo "OK" |
| OLD | NEW |