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

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: merged master Created 4 years, 10 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 | « tool/input_sdk/private/types.dart ('k') | tool/presubmit.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 [[ -d $output_dir ]] || mkdir -p $output_dir
8
9 ddc_options=(
10 --destructure-named-params
11 --modules=node
12 -o $output_dir
13 )
14 node_harmony_options=(
15 --harmony
16 --harmony_destructuring
17 --harmony_default_parameters
18 )
19 function compile() {
20 ./bin/dartdevc.dart "${ddc_options[@]}" $1
21 }
22 function run() {
23 NODE_PATH=$output_dir \
24 node "${node_harmony_options[@]}" -e \
25 "require('dart/_isolate_helper').startRootIsolate(require('$1').main, []);"
26 }
27
28 # TODO(ochafik): Add full language tests (in separate Travis env/matrix config).
29
30 echo "Compiling SDK for node to $output_dir"
31 ./tool/build_sdk.sh "${ddc_options[@]}"
32
33 echo "Now compiling hello_dart_test"
34 compile test/codegen/language/hello_dart_test.dart
35 run hello_dart_test
36
37 echo "Now compiling DeltaBlue"
38 compile test/codegen/DeltaBlue.dart
39 run DeltaBlue
OLDNEW
« no previous file with comments | « tool/input_sdk/private/types.dart ('k') | tool/presubmit.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698