Lines Matching +full:pylib +full:- +full:tests
4 # SPDX-License-Identifier: Apache-2.0
6 Blackbox tests for twister's command line functions concerning addons to normal functions
41 (['--enable-ubsan'], '1')
48 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'ubsan')
49 args = ['-i', '--outdir', out_path, '-T', test_path] + \
53 ['-p'] * len(test_platforms), test_platforms
68 (['--enable-asan', '--enable-lsan'], '1')
75 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'lsan')
76 args = ['-i', '--outdir', out_path, '-T', test_path] + \
80 ['-p'] * len(test_platforms), test_platforms
98 (['--enable-asan'], '1', True)
108 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'asan')
109 args = ['-i', '-W', '--outdir', out_path, '-T', test_path] + \
113 ['-p'] * len(test_platforms), test_platforms
132 test_path = os.path.join(TEST_DATA, 'tests', 'params', 'dummy')
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.
146 # Thus, the tests 'failed'.
163 path = os.path.join(TEST_DATA, 'tests', 'dummy', 'agnostic', 'group2')
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', []),
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
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
298 test_path = os.path.join(TEST_DATA, 'tests', 'pytest')
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')
327 test_path = os.path.join(TEST_DATA, 'tests', 'san', 'val')
328 args = ['-i', '--outdir', out_path, '-T', test_path] + \
332 ['-p'] * len(test_platforms), test_platforms