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 pub get | |
16 pub build | |
17 echo "*** Pub build finished" | |
18 | |
19 expected_files=( | |
20 build/web/hello_app/web/index.html | |
21 build/web/hello_app/web/main.js | |
22 build/web/hello_dep/simple.js | |
23 build/web/hello_dep/utils.js | |
24 # This is not an exhaustive check: | |
25 build/web/dev_compiler/runtime/dart/_runtime.js | |
26 ) | |
27 | |
28 for file in "${expected_files[@]}" ; do | |
29 if [[ ! -f $file ]]; then | |
30 echo "Didn't find $file in build:" | |
31 find build | grep -v /packages/ | |
32 exit 1 | |
33 fi | |
34 done | |
OLD | NEW |