Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: pkg/compiler/tool/status_files/update_all.sh

Issue 2996533002: Add utility tool to update .status files automatically (Closed)
Patch Set: remove editbuffer Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « pkg/compiler/tool/status_files/record.dart ('k') | pkg/compiler/tool/status_files/update_from_log.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698