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

Side by Side Diff: test/test.sh

Issue 1038213003: Downward inference (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: Implement named arguments, some fixes Created 5 years, 8 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
« no previous file with comments | « test/dart_codegen/expect/typed_data/typed_data ('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 # Arguments passed to the diff tool. We exclude: 9 # Arguments passed to the diff tool. We exclude:
10 # - *.map files so they aren't compared, as the diff is not human readable. 10 # - *.map files so they aren't compared, as the diff is not human readable.
(...skipping 22 matching lines...) Expand all
33 # Check minimum SDK version 33 # Check minimum SDK version
34 ./tool/sdk_version_check.dart 1.9.0-dev.4.0 || fail 34 ./tool/sdk_version_check.dart 1.9.0-dev.4.0 || fail
35 35
36 ./tool/build_sdk.sh 36 ./tool/build_sdk.sh
37 37
38 dart -c test/all_tests.dart || fail 38 dart -c test/all_tests.dart || fail
39 39
40 # validate codegen_test output 40 # validate codegen_test output
41 pushd test/codegen/ &> /dev/null 41 pushd test/codegen/ &> /dev/null
42 rm -r actual/dev_compiler/ actual/server_mode/dev_compiler/ \ 42 rm -r actual/dev_compiler/ actual/server_mode/dev_compiler/ \
43 actual/sunflower/dev_compiler 43 actual/sunflower/dev_compiler 2> /dev/null || true
44 diff $DIFF_ARGS > /dev/null || show_diff 44 diff $DIFF_ARGS > /dev/null || show_diff
45 popd &> /dev/null 45 popd &> /dev/null
46 46
47 # validate dart_codegen_test output 47 # validate dart_codegen_test output
48 pushd test/dart_codegen/ &> /dev/null 48 pushd test/dart_codegen/ &> /dev/null
49 diff $DIFF_ARGS > /dev/null || show_diff 49 diff $DIFF_ARGS > /dev/null || show_diff
50 popd &> /dev/null 50 popd &> /dev/null
51 51
52 # run self host and analyzer after other tests, because they're ~seconds to run. 52 # run self host and analyzer after other tests, because they're ~seconds to run.
53 dart -c test/checker/self_host_test.dart || fail 53 dart -c test/checker/self_host_test.dart || fail
(...skipping 19 matching lines...) Expand all
73 # * local files that have never been added to git, 73 # * local files that have never been added to git,
74 # * subdirectories of test/ and tool/, unless explicitly added. Those dirs 74 # * subdirectories of test/ and tool/, unless explicitly added. Those dirs
75 # contain a lot of generated or external source we should not reformat. 75 # contain a lot of generated or external source we should not reformat.
76 (files=`git ls-files 'bin/*.dart' 'lib/*.dart' test/*.dart test/checker/*.dart \ 76 (files=`git ls-files 'bin/*.dart' 'lib/*.dart' test/*.dart test/checker/*.dart \
77 tool/*.dart | grep -v lib/src/js/`; git status -s $files | grep -q . \ 77 tool/*.dart | grep -v lib/src/js/`; git status -s $files | grep -q . \
78 && echo "Did not run the formatter, please commit edited files first." \ 78 && echo "Did not run the formatter, please commit edited files first." \
79 || (echo "Running dart formatter" ; pub run dart_style:format -w $files)) 79 || (echo "Running dart formatter" ; pub run dart_style:format -w $files))
80 popd &> /dev/null 80 popd &> /dev/null
81 81
82 echo -e "All tests pass" 82 echo -e "All tests pass"
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/typed_data/typed_data ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698