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