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