6 echo "====== Testing optimization passes ======"
7 for test in `find . -iname '*.opt_test'`; do
8 echo -n "Testing $test..."
9 (cd `dirname "$test"`; .
/`basename "$test"`) > "$test.out" 2>&1
11 if .
/compare_ir
"$test.expected" "$test.out" >/dev
/null
2>&1; then
16 .
/compare_ir
"$test.expected" "$test.out"
21 echo "$pass/$total tests returned correct results"
24 if [[ $pass == $total ]]; then