Skip to content

Commit e54dde5

Browse files
Peter Markiyichoi
authored andcommitted
Add tests for the es5.1 profile to tools/run-tests.py (#2217)
JerryScript-DCO-1.0-Signed-off-by: Peter Marki [email protected]
1 parent 15f6ca9 commit e54dde5

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

tools/run-tests.py

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,19 @@ def get_binary_path(bin_dir_path):
4444
'--snapshot-exec=on', '--vm-exec-stop=on', '--profile=es2015-subset']),
4545
Options('doctests-debug',
4646
['--doctests', '--jerry-cmdline=off', '--debug', '--error-messages=on',
47-
'--snapshot-save=on', '--snapshot-exec=on', '--vm-exec-stop=on', '--profile=es2015-subset'])
47+
'--snapshot-save=on', '--snapshot-exec=on', '--vm-exec-stop=on', '--profile=es2015-subset']),
48+
Options('unittests-es5.1',
49+
['--unittests', '--jerry-cmdline=off', '--error-messages=on', '--snapshot-save=on',
50+
'--snapshot-exec=on', '--vm-exec-stop=on', '--profile=es5.1', '--mem-stats=on']),
51+
Options('unittests-es5.1-debug',
52+
['--unittests', '--jerry-cmdline=off', '--debug', '--error-messages=on', '--snapshot-save=on',
53+
'--snapshot-exec=on', '--vm-exec-stop=on', '--profile=es5.1', '--mem-stats=on']),
54+
Options('doctests-es5.1',
55+
['--doctests', '--jerry-cmdline=off', '--error-messages=on', '--snapshot-save=on',
56+
'--snapshot-exec=on', '--vm-exec-stop=on', '--profile=es5.1']),
57+
Options('doctests-es5.1-debug',
58+
['--doctests', '--jerry-cmdline=off', '--debug', '--error-messages=on',
59+
'--snapshot-save=on', '--snapshot-exec=on', '--vm-exec-stop=on', '--profile=es5.1'])
4860
]
4961

5062
# Test options for jerry-tests
@@ -62,6 +74,8 @@ def get_binary_path(bin_dir_path):
6274
['--snapshot']),
6375
Options('jerry_tests-es2015_subset-debug',
6476
['--debug', '--profile=es2015-subset']),
77+
Options('jerry_tests-es5.1-debug',
78+
['--debug', '--profile=es5.1']),
6579
Options('jerry_tests-debug-external_context',
6680
['--debug', '--jerry-libc=off', '--external-context=on'])
6781
]
@@ -77,7 +91,8 @@ def get_binary_path(bin_dir_path):
7791
Options('jerry_test_suite-minimal-debug',
7892
['--debug', '--profile=minimal']),
7993
Options('jerry_test_suite-minimal-debug-snapshot',
80-
['--debug', '--profile=minimal', '--snapshot-save=on', '--snapshot-exec=on', '--jerry-cmdline-snapshot=on'],
94+
['--debug', '--profile=minimal', '--snapshot-save=on', '--snapshot-exec=on',
95+
'--jerry-cmdline-snapshot=on'],
8196
['--snapshot']),
8297
Options('jerry_test_suite-es2015_subset',
8398
['--profile=es2015-subset']),
@@ -87,6 +102,15 @@ def get_binary_path(bin_dir_path):
87102
Options('jerry_test_suite-es2015_subset-debug-snapshot',
88103
['--debug', '--profile=es2015-subset', '--snapshot-save=on', '--snapshot-exec=on',
89104
'--jerry-cmdline-snapshot=on'],
105+
['--snapshot']),
106+
Options('jerry_test_suite_es5.1',
107+
['--profile=es5.1']),
108+
Options('jerry_test_suite-es5.1-snapshot',
109+
['--profile=es5.1', '--snapshot-save=on', '--snapshot-exec=on', '--jerry-cmdline-snapshot=on'],
110+
['--snapshot']),
111+
Options('jerry_test_suite-es5.1-debug-snapshot',
112+
['--debug', '--profile=es5.1', '--snapshot-save=on', '--snapshot-exec=on',
113+
'--jerry-cmdline-snapshot=on'],
90114
['--snapshot'])
91115
])
92116

0 commit comments

Comments
 (0)