Lines Matching +full:native_sim +full:- +full:testplan
4 # SPDX-License-Identifier: Apache-2.0
20 from twisterlib.testplan import TestPlan
41 (['--enable-ubsan'], '1')
45 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock)
47 test_platforms = ['native_sim']
49 args = ['-i', '--outdir', out_path, '-T', test_path] + \
53 ['-p'] * len(test_platforms), test_platforms
68 (['--enable-asan', '--enable-lsan'], '1')
72 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock)
74 test_platforms = ['native_sim']
76 args = ['-i', '--outdir', out_path, '-T', test_path] + \
80 ['-p'] * len(test_platforms), test_platforms
98 (['--enable-asan'], '1', True)
105 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock)
107 test_platforms = ['native_sim']
109 args = ['-i', '-W', '--outdir', out_path, '-T', test_path] + \
113 ['-p'] * len(test_platforms), test_platforms
129 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock)
131 test_platforms = ['native_sim']
133 args = ['-i', '--outdir', out_path, '-T', test_path] + \
135 ['-vvv'] + \
137 ['-p'] * len(test_platforms), test_platforms
139 ['--', '-list']
145 # Use of -list makes tests not run.
160 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock)
164 args = ['--outdir', out_path, '-T', path] + \
165 ['--extra-args', 'USE_CCACHE=0', '--extra-args', 'DUMMY=1'] + \
168 ['-p'] * len(test_platforms), test_platforms
180 pattern_cache = r'Calling cmake: [^\n]+ -DUSE_CCACHE=0 [^\n]+\n'
181 pattern_dummy = r'Calling cmake: [^\n]+ -DDUMMY=1 [^\n]+\n'
183 assert ' -DUSE_CCACHE=0 ' in twister_log
187 assert ' -DDUMMY=1 ' in twister_log
191 # This test is not side-effect free.
192 # It installs and uninstalls pytest-twister-harness using pip
199 ([], True, '1', ['By default Twister should work without pytest-twister-harness'
201 ' `pip uninstall pytest-twister-harness` and'
202 ' `git clean -dxf scripts/pylib/pytest-twister-harness`.']),
203 (['--allow-installed-plugin'], True, '0', ['You work with installed version'
204 ' of pytest-twister-harness plugin.']),
206 (['--allow-installed-plugin'], False, '0', []),
211 @mock.patch.object(TestPlan, 'SAMPLE_FILENAME', sample_filename_mock)
218 pth_path = os.path.join(ZEPHYR_BASE, 'scripts', 'pylib', 'pytest-twister-harness')
219 check_installed_command = [sys.executable, '-m', 'pip', 'list']
220 install_command = [sys.executable, '-m', 'pip', 'install', '--no-input', pth_path]
221 uninstall_command = [sys.executable, '-m', 'pip', 'uninstall', '--yes',
222 'pytest-twister-harness']
225 pth_path = os.path.join(ZEPHYR_BASE, 'scripts', 'pylib', 'pytest-twister-harness')
232 os.path.join(pth_path, 'src', 'pytest_twister_harness.egg-info'),
256 previously_installed = 'pytest-twister-harness' in check_installed_result.stdout
267 test_platforms = ['native_sim']
269 args = ['-i', '--outdir', out_path, '-T', test_path] + \
273 ['-p'] * len(test_platforms), test_platforms
284 # To restore previously-installed plugin as well as we can
295 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock)
297 test_platforms = ['native_sim']
299 args = ['-i', '--outdir', out_path, '-T', test_path] + \
300 ['--pytest-args=--custom-pytest-arg', '--pytest-args=foo',
301 '--pytest-args=--cmdopt', '--pytest-args=.'] + \
304 ['-p'] * len(test_platforms), test_platforms
320 (['--enable-valgrind'], '1')
324 @mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock)
326 test_platforms = ['native_sim']
328 args = ['-i', '--outdir', out_path, '-T', test_path] + \
332 ['-p'] * len(test_platforms), test_platforms