• Home
  • Raw
  • Download

Lines Matching +full:options +full:-

2 # -*- coding: utf-8 -*-
4 # Copyright (c) 2023-2024 Huawei Device Co., Ltd.
9 # http://www.apache.org/licenses/LICENSE-2.0
37 parser.add_argument('--arkdir', metavar='DIR', default=arkdir_default,
39 parser.add_argument('--builddir', metavar='DIR', default=builddir_default,
41 …parser.add_argument('--timeout', metavar='SEC', type=int, default=60, help='timeout (default: %(de…
42 … parser.add_argument('-rt', '--runtime', action='store_true', dest='runtime', help='Runtime tests')
43 …parser.add_argument('-r', '--regression', action='store_true', dest='regression', help='Regression…
44 parser.add_argument('-cts', '--cts', action='store_true', dest='cts', help='CTS tests')
45 …parser.add_argument('-f', '--func', action='store_true', dest='functional', help='Functional tests…
46 … parser.add_argument('-t', '--test262', action='store_true', dest='test262', help='Test262 tests')
47 parser.add_argument('--all', action='store_true', dest='all', help='Run the listed benchmarks')
53 options = parse_options()
55 if not os.path.exists(options.arkdir):
56 logging.info("The following ark directory does not exist: {0}", options.arkdir)
59 if not os.path.exists(options.builddir):
60 logging.info("The following build directory does not exist: {0}", options.builddir)
63 testrunner = os.path.join(options.arkdir, 'tests', 'tests-u-runner', 'main.py')
69 'python', testrunner, '--build-dir', options.builddir, '--force-generate',
70 '--show-progress', '--processes', 'all', '--timeout', str(options.timeout)
73 if options.all:
74options.regression = options.runtime = options.cts = options.functional = options.test262 = True
76 if options.regression:
77 res = subprocess.call(general_cmd + ['--parser'])
78 if options.runtime:
79 res = subprocess.call(general_cmd + ['--ets-runtime'])
80 if options.functional:
81 res = subprocess.call(general_cmd + ['--ets-func-tests'])
82 if options.test262:
83 res = subprocess.call(general_cmd + ['--test262'])
84 if options.cts:
85 res = subprocess.call(general_cmd + ['--ets-cts'])