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

Side by Side Diff: pkg/front_end/tool/fasta

Issue 2757303002: Add testing subcommand to fasta tool. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/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 set -e 6 set -e
7 7
8 REPO_DIR="$(git rev-parse --show-toplevel)" 8 REPO_DIR="$(git rev-parse --show-toplevel)"
9 9
10 # TODO(ahe): We currently rely on the Dart VM wrapper script to define 10 # TODO(ahe): We currently rely on the Dart VM wrapper script to define
(...skipping 29 matching lines...) Expand all
40 dump-ir) 40 dump-ir)
41 SCRIPT="${KERNEL_BIN}/dump.dart" 41 SCRIPT="${KERNEL_BIN}/dump.dart"
42 if [ "$#" = "2" ]; then 42 if [ "$#" = "2" ]; then
43 # Write to stdout if no target is given. 43 # Write to stdout if no target is given.
44 set -- "$@" /dev/fd/1 44 set -- "$@" /dev/fd/1
45 fi 45 fi
46 if [ "$#" != "3" ]; then 46 if [ "$#" != "3" ]; then
47 stop "Usage: $1 dillfile [output]" 47 stop "Usage: $1 dillfile [output]"
48 fi 48 fi
49 ;; 49 ;;
50 testing)
51 SCRIPT="${REPO_DIR}/pkg/testing/bin/testing.dart"
52 set -- "$@" "--config=${REPO_DIR}/pkg/front_end/test/fasta/testing.json"
53 ;;
50 *) 54 *)
51 stop "'$1' isn't a valid subcommand." 55 stop "'$1' isn't a valid subcommand."
52 ;; 56 ;;
53 esac 57 esac
54 58
55 shift 59 shift
56 60
57 exec "${DART_VM}" -c "${SCRIPT}" "$@" 61 DART_CONFIGURATION=${DART_CONFIGURATION:-ReleaseX64} exec "${DART_VM}" -c "${SCR IPT}" "$@"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698