OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012, 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 import subprocess |
| 7 import sys |
| 8 |
| 9 |
| 10 def Main(): |
| 11 dart = sys.argv[1] |
| 12 args = sys.argv[2:] |
| 13 if args[0].startswith("--"): |
| 14 command = [dart, "--slow-assert"] + args |
| 15 else: |
| 16 ## We are running a C++ test for the VM. |
| 17 command = [dart] + args |
| 18 exit_code = subprocess.call(command) |
| 19 return exit_code |
| 20 |
| 21 |
| 22 if __name__ == '__main__': |
| 23 sys.exit(Main()) |
OLD | NEW |