Chromium Code Reviews| Index: test/test.sh |
| diff --git a/test/test.sh b/test/test.sh |
| index 53cca8507e3d940e292c2f0327ba06357d44954a..4f1cbff951cbd5263c3952df2b7ff7cfea462cde 100755 |
| --- a/test/test.sh |
| +++ b/test/test.sh |
| @@ -6,10 +6,14 @@ function fail { |
| return 1 |
| } |
| +# Arguments passed to the diff tool. We exclude runtime JS files that are just |
| +# copied over from the sources and are not duplicated in the expected folder. |
|
Siggi Cherem (dart-lang)
2015/03/03 21:30:08
folder. =>
folder and .map files.
Or we could get
Jennifer Messerly
2015/03/03 22:08:18
Done.
|
| +DIFF_ARGS="-u -r -N --exclude=\*.map expect actual" |
| + |
| function show_diff { |
| echo "Fail: actual output did not match expected" |
| echo |
| - diff -u -r -N $1 $2 |\ |
| + diff $DIFF_ARGS |\ |
| sed -e "s/^\(+.*\)/[32m\1[0m/" |\ |
| sed -e "s/^\(-.*\)/[31m\1[0m/" |
| echo |
| @@ -36,12 +40,12 @@ dart -c test/all_tests.dart || fail |
| # validate codegen_test output |
| pushd test/codegen/ &> /dev/null |
| -diff -u -r -N expect actual > /dev/null || show_diff expect actual |
| +diff $DIFF_ARGS > /dev/null || show_diff |
| popd &> /dev/null |
| # validate dart_codegen_test output |
| pushd test/dart_codegen/ &> /dev/null |
| -diff -u -r -N expect actual > /dev/null || show_diff expect actual |
| +diff $DIFF_ARGS > /dev/null || show_diff |
| popd &> /dev/null |
| # run self host and analyzer after other tests, because they're ~seconds to run. |