| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 set -e # bail on error | 2 set -e # bail on error |
| 3 | 3 |
| 4 function fail { | 4 function fail { |
| 5 echo -e "[31mSome tests failed[0m" | 5 echo -e "[31mSome tests failed[0m" |
| 6 return 1 | 6 return 1 |
| 7 } | 7 } |
| 8 | 8 |
| 9 # Some tests require being run from the package root | 9 # Some tests require being run from the package root |
| 10 # switch to the root directory of dev_compiler | 10 # switch to the root directory of dev_compiler |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 # code coverage. | 35 # code coverage. |
| 36 unset COVERALLS_TOKEN | 36 unset COVERALLS_TOKEN |
| 37 pub run test:test test/all_tests.dart || fail | 37 pub run test:test test/all_tests.dart || fail |
| 38 | 38 |
| 39 { | 39 { |
| 40 fc=`find test -name "*.dart" |\ | 40 fc=`find test -name "*.dart" |\ |
| 41 xargs grep "/\*\S* should be \S*\*/" | wc -l` | 41 xargs grep "/\*\S* should be \S*\*/" | wc -l` |
| 42 echo "There are" $fc "tests marked as known failures." | 42 echo "There are" $fc "tests marked as known failures." |
| 43 } | 43 } |
| 44 | 44 |
| 45 echo -e "[32mAll tests pass[0m" | 45 echo -e "[32mAll tests built - run tool/browser_test.sh to run tests[0m" |
| OLD | NEW |