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

Side by Side Diff: tool/node_test.sh

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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 | « tool/input_sdk/private/ddc_runtime/utils.dart ('k') | tool/patch_sdk.dart » ('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=`mktemp -d /tmp/ddc_node_test.XXXXXX`
7
8 ddc_options=(
9 --destructure-named-params
10 --modules=node
11 -o $output_dir
12 )
13 node_harmony_options=(
14 --harmony
15 --harmony_destructuring
16 --harmony_default_parameters
17 )
18 function compile() {
19 ./bin/dartdevc.dart "${ddc_options[@]}" $1
20 }
21 function run() {
22 NODE_PATH=$output_dir \
23 node "${node_harmony_options[@]}" -e \
24 "require('dart/_isolate_helper').startRootIsolate(require('$1').main, []);"
25 }
26
27 # TODO(ochafik): Add full language tests (in separate Travis env/matrix config).
28
29 echo "*** Compiling SDK for node to $output_dir"
30
31 dart bin/dartdevc.dart --force-compile --no-source-maps --sdk-check \
32 -l warning --dart-sdk tool/generated_sdk -o lib/runtime/ \
33 --no-destructure-named-params \
34 "${ddc_options[@]}" \
35 dart:_runtime \
36 dart:_debugger \
37 dart:js dart:mirrors dart:html || true
38
39 echo "*** Compiling hello_dart_test"
40 compile test/codegen/language/hello_dart_test.dart
41 run hello_dart_test
42
43 echo "*** Compiling DeltaBlue"
44 compile test/codegen/DeltaBlue.dart
45 run DeltaBlue
OLDNEW
« no previous file with comments | « tool/input_sdk/private/ddc_runtime/utils.dart ('k') | tool/patch_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698