OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env bash |
| 2 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. |
| 5 |
| 6 # Script to update the dart2js status lines for all tests running with the |
| 7 # $dart2js_with_kernel test configuration. |
| 8 |
| 9 set -e |
| 10 |
| 11 repodir=$(cd $(dirname ${BASH_SOURCE[0]})/../../../../; pwd) |
| 12 dart="out/ReleaseX64/dart" |
| 13 update_script=$(dirname ${BASH_SOURCE[0]})/update_from_log.dart |
| 14 sdk="out/ReleaseX64/dart-sdk" |
| 15 |
| 16 tmp=$(mktemp -d) |
| 17 |
| 18 function update_suite { |
| 19 local suite=$1 |
| 20 echo "running '$suite' minified tests" |
| 21 ./tools/test.py -m release -c dart2js -r d8 \ |
| 22 --use-sdk --minified --dart2js-with-kernel \ |
| 23 $suite > $tmp/$suite-minified.txt |
| 24 |
| 25 $dart $update_script minified $tmp/$suite-minified.txt |
| 26 |
| 27 echo "running '$suite' host-checked tests" |
| 28 ./tools/test.py -m release -c dart2js -r d8 --host-checked \ |
| 29 --dart2js-options="--library-root=$sdk" --dart2js-with-kernel \ |
| 30 $suite > $tmp/$suite-checked.txt |
| 31 |
| 32 $dart $update_script checked $tmp/$suite-checked.txt |
| 33 } |
| 34 |
| 35 |
| 36 pushd $repodir > /dev/null |
| 37 ./tools/build.py -m release create_sdk |
| 38 update_suite dart2js_native |
| 39 update_suite dart2js_extra |
| 40 update_suite language |
| 41 update_suite language_2 |
| 42 update_suite corelib |
| 43 update_suite corelib_2 |
| 44 |
| 45 rm -rf $tmp |
| 46 popd > /dev/null |
OLD | NEW |