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

Side by Side Diff: test/test.sh

Issue 1020043002: Replace dart_core.js with actual compiled SDK (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merge Created 5 years, 9 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/generated_sdk/lib/core/list.dart ('k') | tool/build_sdk.sh » ('j') | 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 15 matching lines...) Expand all
26 26
27 # the directory of this script 27 # the directory of this script
28 TEST_DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) 28 TEST_DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
29 29
30 # Some tests require being run from the package root 30 # Some tests require being run from the package root
31 cd $TEST_DIR/.. 31 cd $TEST_DIR/..
32 32
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
37
36 # Remove packages symlinks, and old codegen output 38 # Remove packages symlinks, and old codegen output
37 find test/codegen -name packages -exec rm {} \; 39 find test/codegen -name packages -exec rm {} \;
38 rm -r test/codegen/actual 2> /dev/null || true 40 rm -r test/codegen/actual 2> /dev/null || true
39 find test/dart_codegen -name packages -exec rm {} \; 41 find test/dart_codegen -name packages -exec rm {} \;
40 rm -r test/dart_codegen/actual 2> /dev/null || true 42 rm -r test/dart_codegen/actual 2> /dev/null || true
41 dart -c test/all_tests.dart || fail 43 dart -c test/all_tests.dart || fail
42 44
43 # validate codegen_test output 45 # validate codegen_test output
44 pushd test/codegen/ &> /dev/null 46 pushd test/codegen/ &> /dev/null
45 rm -r actual/dev_compiler/ actual/server_mode/dev_compiler/ \ 47 rm -r actual/dev_compiler/ actual/server_mode/dev_compiler/ \
(...skipping 30 matching lines...) Expand all
76 # * local files that have never been added to git, 78 # * local files that have never been added to git,
77 # * subdirectories of test/ and tool/, unless explicitly added. Those dirs 79 # * subdirectories of test/ and tool/, unless explicitly added. Those dirs
78 # contain a lot of generated or external source we should not reformat. 80 # contain a lot of generated or external source we should not reformat.
79 (files=`git ls-files 'bin/*.dart' 'lib/*.dart' test/*.dart test/checker/*.dart \ 81 (files=`git ls-files 'bin/*.dart' 'lib/*.dart' test/*.dart test/checker/*.dart \
80 tool/*.dart | grep -v lib/src/js/`; git status -s $files | grep -q . \ 82 tool/*.dart | grep -v lib/src/js/`; git status -s $files | grep -q . \
81 && echo "Did not run the formatter, please commit edited files first." \ 83 && echo "Did not run the formatter, please commit edited files first." \
82 || (echo "Running dart formatter" ; pub run dart_style:format -w $files)) 84 || (echo "Running dart formatter" ; pub run dart_style:format -w $files))
83 popd &> /dev/null 85 popd &> /dev/null
84 86
85 echo -e "All tests pass" 87 echo -e "All tests pass"
OLDNEW
« no previous file with comments | « test/generated_sdk/lib/core/list.dart ('k') | tool/build_sdk.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698