OLD | NEW |
(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 \ |
| 20 node --harmony -e \ |
| 21 "require('dart/_isolate_helper').startRootIsolate(require('$1').main, []);" |
| 22 } |
| 23 |
| 24 # TODO(ochafik): Add full language tests (in separate Travis env/matrix config). |
| 25 |
| 26 echo "Now compiling hello_dart_test" |
| 27 compile test/codegen/language/hello_dart_test.dart |
| 28 run hello_dart_test |
| 29 |
| 30 echo "Now compiling DeltaBlue" |
| 31 compile test/codegen/DeltaBlue.dart |
| 32 run DeltaBlue |
OLD | NEW |