OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 set -e | 2 set -e |
3 # switch to the root directory of dev_compiler | 3 # switch to the root directory of dev_compiler |
4 cd $( dirname "${BASH_SOURCE[0]}" )/.. | 4 cd $( dirname "${BASH_SOURCE[0]}" )/.. |
5 | 5 |
6 output_dir=tmp/node | 6 output_dir=`mktemp -d /tmp/ddc_node_test.XXXXXX` |
7 [[ -d $output_dir ]] || mkdir -p $output_dir | |
8 | 7 |
9 ddc_options=( | 8 ddc_options=( |
10 --destructure-named-params | 9 --destructure-named-params |
11 --modules=node | 10 --modules=node |
12 -o $output_dir | 11 -o $output_dir |
13 ) | 12 ) |
14 node_harmony_options=( | 13 node_harmony_options=( |
15 --harmony | 14 --harmony |
16 --harmony_destructuring | 15 --harmony_destructuring |
17 --harmony_default_parameters | 16 --harmony_default_parameters |
(...skipping 12 matching lines...) Expand all Loading... |
30 echo "Compiling SDK for node to $output_dir" | 29 echo "Compiling SDK for node to $output_dir" |
31 ./tool/build_sdk.sh "${ddc_options[@]}" | 30 ./tool/build_sdk.sh "${ddc_options[@]}" |
32 | 31 |
33 echo "Now compiling hello_dart_test" | 32 echo "Now compiling hello_dart_test" |
34 compile test/codegen/language/hello_dart_test.dart | 33 compile test/codegen/language/hello_dart_test.dart |
35 run hello_dart_test | 34 run hello_dart_test |
36 | 35 |
37 echo "Now compiling DeltaBlue" | 36 echo "Now compiling DeltaBlue" |
38 compile test/codegen/DeltaBlue.dart | 37 compile test/codegen/DeltaBlue.dart |
39 run DeltaBlue | 38 run DeltaBlue |
OLD | NEW |