dart-sdk/pkg/smith/bin/print_configurations.dart
Bob Nystrom a4c7cf388f First stab at a parsing library for named configurations.
Change-Id: I1a2660914715d529b0233645b109b13c2fa9171a
Reviewed-on: https://dart-review.googlesource.com/61121
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2018-06-26 22:17:08 +00:00

15 lines
554 B
Dart

// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:smith/smith.dart';
/// A rudimentary script to print the configurations in the given test matrix
/// file.
void main(List<String> arguments) {
// TODO(rnystrom): Validate args. Usage.
var matrix = TestMatrix.fromPath(arguments[0]);
for (var configuration in matrix.configurations) {
print(configuration);
}
}