Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: tool/test.sh

Issue 2234343003: fix #620, infer the input files from sources (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« lib/src/compiler/compiler.dart ('K') | « tool/sdk_expected_errors.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "Some tests failed" 5 echo -e "Some tests failed"
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
11 cd $( dirname "${BASH_SOURCE[0]}" )/.. 11 cd $( dirname "${BASH_SOURCE[0]}" )/..
12 12
13 # Check minimum SDK version 13 # Check minimum SDK version
14 ./tool/sdk_version_check.dart 1.9.0-dev.4.0 || fail 14 ./tool/sdk_version_check.dart 1.9.0-dev.4.0 || fail
15 15
16 # Delete codegen expectation files to be sure that if a test fails to compile 16 # Delete codegen expectation files to be sure that if a test fails to compile
17 # we don't erroneously pick up the old version. 17 # we don't erroneously pick up the old version.
18 if [ -d test/codegen/expect ]; then 18 if [ -d test/codegen/expect ]; then
19 rm -r test/codegen/expect || fail 19 rm -r test/codegen/expect || fail
20 fi 20 fi
21 21
22 if [ -d gen/codegen_input ]; then 22 if [ -d gen/codegen_input ]; then
23 rm -r gen/codegen_input || fail 23 rm -r gen/codegen_input || fail
24 fi 24 fi
25 25
26 if [ -d gen/codegen_output ]; then 26 if [ -d gen/codegen_output ]; then
27 rm -r gen/codegen_output || fail 27 rm -r gen/codegen_output || fail
28 fi 28 fi
29 29
30 ./tool/build_test_pkgs.sh
31
30 # Make sure we don't run tests in code coverage mode. 32 # Make sure we don't run tests in code coverage mode.
31 # this will cause us to generate files that are not part of the baseline 33 # this will cause us to generate files that are not part of the baseline
32 # TODO(jmesserly): we should move diff into Dart code, so we don't need to 34 # TODO(jmesserly): we should move diff into Dart code, so we don't need to
33 # worry about this. Also if we're in code coverage mode, we should avoid running 35 # worry about this. Also if we're in code coverage mode, we should avoid running
34 # all_tests twice. Finally self_host_test is not currently being tracked by 36 # all_tests twice. Finally self_host_test is not currently being tracked by
35 # code coverage. 37 # code coverage.
36 unset COVERALLS_TOKEN 38 unset COVERALLS_TOKEN
37 pub run test:test test/all_tests.dart || fail 39 pub run test:test test/all_tests.dart || fail
38 40
39 { 41 {
40 fc=`find test -name "*.dart" |\ 42 fc=`find test -name "*.dart" |\
41 xargs grep "/\*\S* should be \S*\*/" | wc -l` 43 xargs grep "/\*\S* should be \S*\*/" | wc -l`
42 echo "There are" $fc "tests marked as known failures." 44 echo "There are" $fc "tests marked as known failures."
43 } 45 }
44 46
45 echo -e "All tests built - run tool/browser_test.sh to run tests" 47 echo -e "All tests built - run tool/browser_test.sh to run tests"
OLDNEW
« lib/src/compiler/compiler.dart ('K') | « tool/sdk_expected_errors.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698