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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 # Make sure we don't run tests in code coverage mode. | 22 # Make sure we don't run tests in code coverage mode. |
23 # this will cause us to generate files that are not part of the baseline | 23 # this will cause us to generate files that are not part of the baseline |
24 # TODO(jmesserly): we should move diff into Dart code, so we don't need to | 24 # TODO(jmesserly): we should move diff into Dart code, so we don't need to |
25 # worry about this. Also if we're in code coverage mode, we should avoid running | 25 # worry about this. Also if we're in code coverage mode, we should avoid running |
26 # all_tests twice. Finally self_host_test is not currently being tracked by | 26 # all_tests twice. Finally self_host_test is not currently being tracked by |
27 # code coverage. | 27 # code coverage. |
28 unset COVERALLS_TOKEN | 28 unset COVERALLS_TOKEN |
29 pub run test:test test/all_tests.dart || fail | 29 pub run test:test test/all_tests.dart || fail |
30 | 30 |
| 31 ./tool/command_test.sh || fail |
| 32 |
31 { | 33 { |
32 fc=`find test -name "*.dart" |\ | 34 fc=`find test -name "*.dart" |\ |
33 xargs grep "/\*\S* should be \S*\*/" | wc -l` | 35 xargs grep "/\*\S* should be \S*\*/" | wc -l` |
34 echo "There are" $fc "tests marked as known failures." | 36 echo "There are" $fc "tests marked as known failures." |
35 } | 37 } |
36 | 38 |
37 echo -e "[32mAll tests pass[0m" | 39 echo -e "[32mAll tests pass[0m" |
OLD | NEW |