3 if [ ! -z "$srcdir" ]; then
4 compare_ir
=`pwd`/tests
/compare_ir
6 compare_ir
=.
/compare_ir
12 echo "====== Testing optimization passes ======"
13 for test in `find . -iname '*.opt_test'`; do
14 echo -n "Testing $test..."
15 (cd `dirname "$test"`; .
/`basename "$test"`) > "$test.out" 2>&1
17 if $PYTHON2 $PYTHON_FLAGS $compare_ir "$test.expected" "$test.out" >/dev
/null
2>&1; then
22 $PYTHON2 $PYTHON_FLAGS $compare_ir "$test.expected" "$test.out"
27 echo "$pass/$total tests returned correct results"
30 if [[ $pass == $total ]]; then