OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 set -eu | 2 set -eu |
3 cd $( dirname "${BASH_SOURCE[0]}" )/.. | 3 cd $( dirname "${BASH_SOURCE[0]}" )/.. |
4 | 4 |
5 export CHROME_CANARY_BIN=`./tool/get_chrome_canary.sh` | 5 export CHROME_CANARY_BIN=`./tool/get_chrome_canary.sh` |
6 | 6 |
7 # TODO(vsm): Re-enable when this is addressed: | 7 # TODO(vsm): Re-enable when this is addressed: |
8 # https://github.com/dart-lang/dev_compiler/issues/467 | 8 # https://github.com/dart-lang/dev_compiler/issues/467 |
9 # echo "*** Testing pub serve + DDC transformer" | 9 # echo "*** Testing pub serve + DDC transformer" |
10 # pub run test --timeout 120s test/transformer_e2e_test.dart | 10 # pub run test --timeout 120s test/transformer_e2e_test.dart |
11 # echo "*** Pub serve e2e test finished" | 11 # echo "*** Pub serve e2e test finished" |
12 | 12 |
13 echo "*** Testing pub build + DDC transformer" | 13 echo "*** Testing pub build + DDC transformer" |
14 cd test/transformer/hello_app | 14 cd test/transformer/hello_app |
| 15 rm -f pubspec.lock |
15 pub get | 16 pub get |
16 pub build | 17 pub build |
17 echo "*** Pub build finished" | 18 echo "*** Pub build finished" |
18 | 19 |
19 expected_files=( | 20 expected_files=( |
20 build/web/hello_app/web/index.html | 21 build/web/hello_app/web/index.html |
21 build/web/hello_app/web/main.js | 22 build/web/hello_app/web/main.js |
22 build/web/hello_dep/simple.js | 23 build/web/hello_dep/simple.js |
23 build/web/hello_dep/utils.js | 24 build/web/hello_dep/utils.js |
24 # This is not an exhaustive check: | 25 # This is not an exhaustive check: |
25 build/web/dev_compiler/runtime/dart/_runtime.js | 26 build/web/dev_compiler/runtime/dart/_runtime.js |
26 ) | 27 ) |
27 | 28 |
28 for file in "${expected_files[@]}" ; do | 29 for file in "${expected_files[@]}" ; do |
29 if [[ ! -f $file ]]; then | 30 if [[ ! -f $file ]]; then |
30 echo "Didn't find $file in build:" | 31 echo "Didn't find $file in build:" |
31 find build | grep -v /packages/ | 32 find build | grep -v /packages/ |
32 exit 1 | 33 exit 1 |
33 fi | 34 fi |
34 done | 35 done |
OLD | NEW |