dart-sdk/tests/standalone/gn_py_test.dart
Ryan Macnak e8b51c7375 Reland "[build] Handle cases for dart_target_arch != target_arch and target_cpu != host_cpu."
Fix target_cpu for "arm_x64" to be "arm" not "x64".

TEST=ci
Change-Id: Ifebaee036f3dfa5ba3824f05472423a5bcf9c0c0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290360
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2023-03-22 14:57:27 +00:00

16 lines
504 B
Dart

// Copyright (c) 2023, 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 "dart:io";
import "package:path/path.dart";
main() {
var result = Process.runSync("python3", [join("tools", "gn.py"), "--test"]);
print(result.stdout);
print(result.stderr);
if (result.exitCode != 0) {
throw "tools/gn.py --test failed with ${result.exitCode}";
}
}