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

Side by Side Diff: tool/node_test.sh

Issue 1633003002: Add --modules=node support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: regen sdk and expectations Created 4 years, 11 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
OLDNEW
(Empty)
1 #!/bin/bash
2 set -e
3 # switch to the root directory of dev_compiler
4 cd $( dirname "${BASH_SOURCE[0]}" )/..
5
6 output_dir=tmp/node
7 options="--modules=node -o $output_dir"
8
9 [[ -d $output_dir ]] || mkdir -p $output_dir
10
11 echo "Compiling SDK for node to $output_dir"
12
13 ./tool/build_sdk.sh $options
14
15 function compile() {
16 ./bin/dartdevc.dart $options $1
17 }
18 function run() {
19 NODE_PATH=$output_dir node --harmony \
vsm 2016/01/26 14:09:40 Do we need "--harmony"? Looks like most features
ochafik 2016/01/26 16:27:37 Rest params (used in mixins) still need --harmony_
20 -e "require('dart/_isolate_helper').startRootIsolate(require('$1').main, []);"
vsm 2016/01/26 14:09:40 nit: line len
ochafik 2016/01/26 16:27:36 Done.
21 }
22
23 # TODO(ochafik): Add full language tests (in separate Travis env/matrix config).
24
25 echo "Now compiling hello_dart_test"
26 compile test/codegen/language/hello_dart_test.dart
27 run hello_dart_test
28
29 echo "Now compiling DeltaBlue"
30 compile test/codegen/DeltaBlue.dart
31 run DeltaBlue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698