| OLD | NEW |
| (Empty) |
| 1 #!/bin/sh | |
| 2 | |
| 3 set -e | |
| 4 | |
| 5 export DART_SDK=`which dart | sed -e 's/\/dart\-sdk\/.*$/\/dart-sdk/'` | |
| 6 | |
| 7 # OS-specific Dartium path defaults | |
| 8 case $( uname -s ) in | |
| 9 Darwin) | |
| 10 CHROME_CANARY_BIN=${CHROME_CANARY_BIN:-"/Applications/dart/chromium/Chromium
.app/Contents/MacOS/Chromium"};; | |
| 11 esac | |
| 12 if [ ! -x "$CHROME_CANARY_BIN" ]; then | |
| 13 echo "Unable to determine path to Dartium browser. To correct:" | |
| 14 echo "export CHROME_CANARY_BIN=path/to/dartium" | |
| 15 exit 1; | |
| 16 fi | |
| 17 export CHROME_CANARY_BIN | |
| 18 export DART_FLAGS="--enable-type-checks --enable-asserts" | |
| 19 | |
| 20 # Check for node | |
| 21 if [ -z "$(which node)" ]; then | |
| 22 echo "node.js does not appear to be on the path." | |
| 23 echo "You can obtain it from http://nodejs.org" | |
| 24 exit 1; | |
| 25 fi | |
| 26 | |
| 27 # Run npm install so we are up-to-date | |
| 28 npm install karma karma-dart karma-chrome-launcher \ | |
| 29 karma-script-launcher karma-junit-reporter jasmine-node; | |
| 30 | |
| 31 # Print the dart VM version to the logs | |
| 32 dart --version | |
| 33 | |
| 34 # run io tests | |
| 35 dart --checked test/io/all.dart | |
| 36 | |
| 37 # run expression extractor tests | |
| 38 scripts/test-expression-extractor.sh | |
| 39 | |
| 40 ./scripts/analyze.sh && | |
| 41 node_modules/jasmine-node/bin/jasmine-node playback_middleware/spec/ && | |
| 42 node "node_modules/karma/bin/karma" start karma.conf \ | |
| 43 --reporters=junit,dots --port=8765 --runner-port=8766 \ | |
| 44 --browsers=ChromeCanary,Chrome --single-run --no-colors | |
| 45 | |
| OLD | NEW |