Files
sdk/tools/bots/gn_tests.py
T
William Hesse 3f7a85e068 Remove 'pkg' from the default list of test suites
Allow 'exclude-suite' option of test.dart to include a suite not on
the default list, so existing '--exclude-suite=pkg' options are
ignored. This change does not need to be reversed later.

BUG=https://github.com/dart-lang/sdk/issues/28237
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2610943002 .
2017-01-10 16:51:22 +01:00

39 lines
1.1 KiB
Python
Executable File

#!/usr/bin/env python
#
# Copyright (c) 2016, 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 os
import os.path
import shutil
import sys
import subprocess
SCRIPT_DIR = os.path.dirname(sys.argv[0])
DART_ROOT = os.path.realpath(os.path.join(SCRIPT_DIR, '..', '..'))
def main(argv):
test_py = os.path.join(DART_ROOT, 'tools', 'test.py')
build_result = subprocess.call(
['python', test_py, '--builder-tag=no_ipv6']
+ argv[1:])
if build_result != 0:
return build_result
build_result = subprocess.call(
['python', test_py, '--builder-tag=no_ipv6',
'-cdart2js', '-rd8', '--use-sdk', 'language/first']
+ argv[1:])
if build_result != 0:
return build_result
build_result = subprocess.call(
['python', test_py, '--builder-tag=no_ipv6',
'-cdart2analyzer', '-rnone', '--use-sdk', 'language/first']
+ argv[1:])
if build_result != 0:
return build_result
return 0
if __name__ == '__main__':
sys.exit(main(sys.argv))