Lines Matching +full:test +full:- +full:suite +full:- +full:vm
9 # http://www.apache.org/licenses/LICENSE-2.0
36 OPTIONS_COMMON = ['--lto=off']
37 OPTIONS_PROFILE_MIN = ['--profile=minimal']
38 OPTIONS_PROFILE_ES51 = [] # NOTE: same as ['--profile=es5.1']
39 OPTIONS_PROFILE_ES2015 = ['--profile=es2015-subset']
40 OPTIONS_STACK_LIMIT = ['--stack-limit=96']
41 OPTIONS_GC_MARK_LIMIT = ['--gc-mark-limit=16']
42 OPTIONS_DEBUG = ['--debug']
43 OPTIONS_SNAPSHOT = ['--snapshot-save=on', '--snapshot-exec=on', '--jerry-cmdline-snapshot=on']
44 OPTIONS_UNITTESTS = ['--unittests=on', '--jerry-cmdline=off', '--error-messages=on',
45 '--snapshot-save=on', '--snapshot-exec=on', '--vm-exec-stop=on',
46 '--line-info=on', '--mem-stats=on']
47 OPTIONS_DOCTESTS = ['--doctests=on', '--jerry-cmdline=off', '--error-messages=on',
48 '--snapshot-save=on', '--snapshot-exec=on', '--vm-exec-stop=on']
50 # Test options for unittests
52 Options('unittests-es2015_subset',
54 Options('unittests-es2015_subset-debug',
56 Options('doctests-es2015_subset',
58 Options('doctests-es2015_subset-debug',
60 Options('unittests-es5.1',
62 Options('unittests-es5.1-debug',
64 Options('doctests-es5.1',
66 Options('doctests-es5.1-debug',
68 Options('unittests-es5.1-debug-init-fini',
70 + ['--cmake-param=-DFEATURE_INIT_FINI=ON'],
76 # Test options for jerry-tests
78 Options('jerry_tests-es2015_subset-debug',
80 Options('jerry_tests-es5.1',
82 Options('jerry_tests-es5.1-snapshot',
84 ['--snapshot']),
85 Options('jerry_tests-es5.1-debug',
87 Options('jerry_tests-es5.1-debug-snapshot',
89 + OPTIONS_GC_MARK_LIMIT, ['--snapshot']),
90 Options('jerry_tests-es5.1-debug-cpointer_32bit',
92 + ['--cpointer-32bit=on', '--mem-heap=1024']),
93 Options('jerry_tests-es5.1-debug-external_context',
95 + ['--external-context=on']),
98 # Test options for jerry-test-suite
101 Options('jerry_test_suite-minimal',
103 Options('jerry_test_suite-minimal-snapshot',
105 ['--snapshot']),
106 Options('jerry_test_suite-minimal-debug',
108 Options('jerry_test_suite-minimal-debug-snapshot',
110 ['--snapshot']),
111 Options('jerry_test_suite-es2015_subset',
113 Options('jerry_test_suite-es2015_subset-snapshot',
115 ['--snapshot']),
116 Options('jerry_test_suite-es2015_subset-debug-snapshot',
118 ['--snapshot']),
121 # Test options for test262
124 Options('test262_tests-debug', OPTIONS_DEBUG)
127 # Test options for test262-es2015
129 …Options('test262_tests_es2015', OPTIONS_PROFILE_ES2015 + ['--line-info=on', '--error-messages=on']…
132 # Test options for jerry-debugger
135 OPTIONS_DEBUG + ['--jerry-debugger=on'])
138 # Test options for buildoption-test
140 Options('buildoption_test-lto',
141 ['--lto=on']),
142 Options('buildoption_test-error_messages',
143 ['--error-messages=on']),
144 Options('buildoption_test-logging',
145 ['--logging=on']),
146 Options('buildoption_test-all_in_one',
147 ['--all-in-one=on']),
148 Options('buildoption_test-valgrind',
149 ['--valgrind=on']),
150 Options('buildoption_test-mem_stats',
151 ['--mem-stats=on']),
152 Options('buildoption_test-show_opcodes',
153 ['--show-opcodes=on']),
154 Options('buildoption_test-show_regexp_opcodes',
155 ['--show-regexp-opcodes=on']),
156 Options('buildoption_test-cpointer_32bit',
157 ['--compile-flag=-m32', '--cpointer-32bit=on', '--system-allocator=on'],
160 '-m32 is only supported on x86[-64]-linux')
162 Options('buildoption_test-no_jerry_libm',
163 ['--jerry-libm=off', '--link-lib=m'],
165 Options('buildoption_test-no_lcache_prophashmap',
166 ['--compile-flag=-DJERRY_LCACHE=0', '--compile-flag=-DJERRY_PROPRETY_HASHMAP=0']),
167 Options('buildoption_test-external_context',
168 ['--external-context=on']),
169 Options('buildoption_test-shared_libs',
170 ['--shared-libs=on'],
172 Options('buildoption_test-cmdline_test',
173 ['--jerry-cmdline-test=on'],
175 Options('buildoption_test-cmdline_snapshot',
176 ['--jerry-cmdline-snapshot=on']),
177 Options('buildoption_test-recursion_limit',
179 Options('buildoption_test-gc-mark_limit',
181 Options('buildoption_test-single-source',
182 ['--cmake-param=-DENABLE_ALL_IN_ONE_SOURCE=ON']),
183 Options('buildoption_test-jerry-debugger',
184 ['--jerry-debugger=on']),
189 parser.add_argument('--toolchain', metavar='FILE',
191 parser.add_argument('-q', '--quiet', action='store_true',
193 parser.add_argument('--buildoptions', metavar='LIST',
194 help='Add a comma separated list of extra build options to each test')
195 parser.add_argument('--skip-list', metavar='LIST',
196 help='Add a comma separated list of patterns of the excluded JS-tests')
197 parser.add_argument('--outdir', metavar='DIR', default=OUTPUT_DIR,
199 parser.add_argument('--check-signed-off', metavar='TYPE', nargs='?',
201 … help='Run signed-off check (%(choices)s; default type if not given: %(const)s)')
202 parser.add_argument('--check-cppcheck', action='store_true',
204 parser.add_argument('--check-doxygen', action='store_true',
206 parser.add_argument('--check-pylint', action='store_true',
208 parser.add_argument('--check-vera', action='store_true',
210 parser.add_argument('--check-license', action='store_true',
212 parser.add_argument('--check-magic-strings', action='store_true',
214 parser.add_argument('--jerry-debugger', action='store_true',
215 help='Run jerry-debugger tests')
216 parser.add_argument('--jerry-tests', action='store_true',
217 help='Run jerry-tests')
218 parser.add_argument('--jerry-test-suite', action='store_true',
219 help='Run jerry-test-suite')
220 parser.add_argument('--test262', action='store_true',
221 help='Run test262 - ES5.1')
222 parser.add_argument('--test262-es2015', action='store_true',
223 help='Run test262 - ES2015')
224 parser.add_argument('--unittests', action='store_true',
226 parser.add_argument('--buildoption-test', action='store_true',
227 help='Run buildoption-test')
228 parser.add_argument('--all', '--precommit', action='store_true',
276 build_cmd.append('--builddir=%s' % build_dir_path)
279 build_cmd.append('--install=%s' % install_dir_path)
282 build_cmd.append('--toolchain=%s' % options.toolchain)
341 test_cmd.extend([settings.TEST_RUNNER_SCRIPT, '--engine', bin_path])
346 report_command('Test command:', runnable, env=env)
391 test_cmd.append('--test-dir')
395 test_cmd.append("-q")
399 if '--profile=es2015-subset' in job.build_args:
408 test_cmd.append("--skip-list=" + ",".join(skip_list))
425 if '--profile=minimal' in job.build_args:
426 test_cmd.append('--test-list')
429 test_cmd.append('--test-dir')
431 if '--profile=es2015-subset' in job.build_args:
437 test_cmd.append("-q")
443 test_cmd.append("--skip-list=" + ",".join(skip_list))
469 '--engine', get_binary_path(build_dir_path),
470 '--test-dir', settings.TEST262_TEST_SUITE_DIR
473 if '--profile=es2015-subset' in job.build_args:
474 test_cmd.append('--es2015')
476 test_cmd.append('--es51')
497 if "--debug" in job.build_args:
509 (["-q"] if options.quiet else [])
532 … + {'tolerant': ['--tolerant'], 'travis': ['--travis']}.get(options.check_signed_off, [])),