Home
last modified time | relevance | path

Searched +full:pylib +full:- +full:tests (Results 1 – 23 of 23) sorted by relevance

/Zephyr-Core-3.5.0/.github/workflows/
Dpylib_tests.yml2 # SPDX-License-Identifier: Apache-2.0
4 name: Misc. Pylib Scripts TestSuite
9 - main
10 - v*-branch
12 - 'scripts/pylib/build_helpers/**'
13 - '.github/workflows/pylib_tests.yml'
16 - main
17 - v*-branch
19 - 'scripts/pylib/build_helpers/**'
20 - '.github/workflows/pylib_tests.yml'
[all …]
Dtwister_tests.yml2 # SPDX-License-Identifier: Apache-2.0
9 - main
10 - v*-branch
12 - 'scripts/pylib/twister/**'
13 - 'scripts/twister'
14 - 'scripts/tests/twister/**'
15 - '.github/workflows/twister_tests.yml'
18 - main
19 - v*-branch
21 - 'scripts/pylib/twister/**'
[all …]
Dtwister_tests_blackbox.yml2 # SPDX-License-Identifier: Apache-2.0
9 - main
11 - 'scripts/pylib/twister/**'
12 - 'scripts/twister'
13 - 'scripts/tests/twister_blackbox/**'
14 - '.github/workflows/twister_tests_blackbox.yml'
17 twister-tests:
18 name: Twister Black Box Tests
19 runs-on: ${{ matrix.os }}
22 python-version: [3.8, 3.9, '3.10']
[all …]
/Zephyr-Core-3.5.0/scripts/tests/twister/
DREADME.md3 Running the tests require the environment variable ZEPHYR_BASE to be set.
5 Twister Testsuite are located in $ZEPHYR_BASE/scripts/tests directory with all the data files in $Z…
12 pip install -r $ZEPHYR_BASE/scripts/requirements-build-test.txt
20 pytest $ZEPHYR_BASE/scripts/tests/twister
25 The coverage for all the tests can be run using the command below. This will collect all the tests
28 coverage run -m pytest $ZEPHYR_BASE/scripts/tests/twister/
34 coverage report -m $ZEPHYR_BASE/scripts/pylib/twister/
40 coverage report -m $ZEPHYR_BASE/scripts/twister
49 If needed,the full coverage html report can be generated in every run of "pytest" in the tests dire…
51 ## Organization of tests
[all …]
Dconftest.py4 # SPDX-License-Identifier: Apache-2.0
15 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
29 data = ZEPHYR_BASE + "/scripts/tests/twister/test_data/"
39 return ZEPHYR_BASE + "/scripts/tests/twister/test_data/testsuites"
48 env.test_roots = [os.path.join(testsuites_dir, 'tests', testsuites_dir, 'samples')]
59 env.test_roots = [testsuites_dir + '/tests', testsuites_dir + '/samples']
Dtest_twister.py4 # SPDX-License-Identifier: Apache-2.0
16 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
23 """ Test to check if loading the non-existent files raises the errors """
30 [("testsuite_correct_schema.yaml", "testsuite-schema.yaml"),
31 ("platform_correct_schema.yaml", "platform-schema.yaml")])
42 [("testsuite_incorrect_schema.yaml", "testsuite-schema.yaml"),
43 ("platform_incorrect_schema.yaml", "platform-schema.yaml")])
54 …filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_data/testsuites/tests/test_config/test_…
55 schema = scl.yaml_load(Path(ZEPHYR_BASE) / "scripts/schemas/twister/testsuite-schema.yaml")
87 filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_twister.py"
Dtest_testinstance.py4 # SPDX-License-Identifier: Apache-2.0
5 # pylint: disable=line-too-long
7 Tests for testinstance class
15 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
38 …testsuite = class_testplan.testsuites.get('scripts/tests/twister/test_data/testsuites/tests/test_a…
78 …testcase = class_testplan.testsuites.get('scripts/tests/twister/test_data/testsuites/samples/test_…
93 …testcase = class_testplan.testsuites.get('scripts/tests/twister/test_data/testsuites/samples/test_…
103 …,stm32-flash-controller") or dt_compat_enabled("st,stm32h7-flash-controller")) and dt_label_with_p…
104-partitions")) or (CONFIG_FLASH_HAS_DRIVER_ENABLED and CONFIG_TRUSTED_EXECUTION_NONSECURE and dt_l…
Dtest_harness.py4 # SPDX-License-Identifier: Apache-2.0
15 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
24 "[00:00:00.000,000] <inf> label: [==========] Running all tests."
28 "[00:00:00.000,000] <inf> label: [==========] Done running all tests."
190 match=r"gTest error, mismatched tests. Expected id.suite_name.test0 but got None",
209 … match=r"gTest error, mismatched tests. Expected id.suite_name.test1 but got id.suite_name.test0",
Dtest_runner.py4 # SPDX-License-Identifier: Apache-2.0
6 Tests for runner.py classes
18 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
53 def project_builder(mocked_instance, mocked_env, mocked_jobserver) -> ProjectBuilder:
59 def runners(project_builder: ProjectBuilder) -> dict:
101 "-DCONFIG_t=\"test\"",
102 "-Dcmake1=foo", "-Dcmake2=bar",
103 "-Dbasearg1", "-DSNIPPET_t=test",
104 "-Dhandler_arg1", "-Dhandler_arg2",
105 "-DCONF_FILE=a.conf;b.conf;c.conf",
[all …]
Dtest_testplan_class.py4 # SPDX-License-Identifier: Apache-2.0
14 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
30 tests_rel_dir = 'scripts/tests/twister/test_data/testsuites/tests/'
183 …("run_individual_tests", ['scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1'…
216 (20, 20, -1, 0),
217 (-2, -1, 10, 20),
267 …'demo_board_1/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on boa…
268 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on boa…
272 …'demo_board_2/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_2' : 'a2 and c2…
273 …'demo_board_1/scripts/tests/twister/test_data/testsuites/tests/test_d/test_d.check_1' : 'all test_…
[all …]
Dtest_environment.py4 # SPDX-License-Identifier: Apache-2.0
6 Tests for environment.py classes' methods
24 ['--short-build-path', '-k'],
25 '--short-build-path requires Ninja to be enabled'
31 ['--device-serial-pty', 'dummy'],
32 '--device-serial-pty is not supported on Windows OS'
38 ['--west-runner=dummy'],
39 'west-runner requires west-flash to be enabled'
45 ['--west-flash=\"--board-id=dummy\"'],
46 'west-flash requires device-testing to be enabled'
[all …]
Dtest_testsuite.py4 # SPDX-License-Identifier: Apache-2.0
6 Tests for testinstance class
18 sys.path.insert(0, os.path.join(ZEPHYR_BASE, 'scripts', 'pylib', 'twister'))
102 os.path.join('testsuites', 'tests', 'test_ztest.c'),
121 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error.c'),
132 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error_1.c'),
145 'tests',
161 'tests',
177 # 'tests',
266 'Tests should reference the category and subsystem' \
[all …]
Dtest_scl.py4 # SPDX-License-Identifier: Apache-2.0
6 Tests for scl.py functions
16 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
34 ids=['C YAML', 'non-C YAML']
165 mock_file.assert_called_with('dummy/file.yaml', 'r', encoding='utf-8')
/Zephyr-Core-3.5.0/
D.gitignore15 !tests/drivers/build_all
16 !scripts/pylib/build_helpers
23 # no suitable out-of-tree directory is found.
27 outdir-*
37 doc/themes/zephyr-docs-theme
38 sanity-out*
39 twister-out*
42 tests/RunResults.xml
50 hide-defaults-note
DMAINTAINERS.yml45 # files-regex:
56 # files-exclude:
59 # files-regex-exclude:
60 # Like 'files-regex', but any matching files will be excluded from the
63 # description: >-
64 # Plain-English description. Describe what the system is about, from an
68 # All areas must have a 'files' and/or 'files-regex' key. The other keys are
72 # this would be sub-areas which add extra fields (for ex. more `collaborators`
73 # who work only in that sub-area) to other areas.
98 # Collaborators: <list of sub-maintainers>
[all …]
DCODEOWNERS3 # https://help.github.com/en/articles/about-code-owners#codeowners-syntax
19 /arch/arc/ @abrodkin @ruuddw @evgeniy-paltsev
29 /soc/arc/snps_*/ @abrodkin @ruuddw @evgeniy-paltsev
41 /soc/arm/cypress/ @ifyall @npal-cy
44 /soc/arm/infineon_cat1/ @ifyall @npal-cy
54 /soc/arm/silabs_exx32/efr32mg21/ @l-alfred
62 /soc/arm/ti_simplelink/msp432p4xx/ @Mani-Sadhasivam
68 /soc/arm64/bcm_vk/ @abhishek-brcm
75 /soc/arm64/renesas_rcar/ @lorc @xakep-amatop
77 /submanifests/* @mbolivar-ampere
[all …]
/Zephyr-Core-3.5.0/scripts/tests/twister_blackbox/
Dconftest.py4 # SPDX-License-Identifier: Apache-2.0
15 TEST_DATA = os.path.join(ZEPHYR_BASE, 'scripts', 'tests',
19 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
37 # See: https://github.com/pytest-dev/pytest/issues/5502
/Zephyr-Core-3.5.0/scripts/pylib/pytest-twister-harness/
DREADME.rst6 ------------
9 separately by pip. When Twister uses this plugin for pytest tests, it updates
11 `-p twister_harness.plugin` argument.
15 -----
19 .. code-block:: sh
24 ./scripts/twister -p native_posix -p qemu_x86 -T samples/subsys/testsuite/pytest/shell
27 …./scripts/twister -p nrf52840dk_nrf52840 --device-testing --device-serial /dev/ttyACM0 -T samples/…
31 .. code-block:: sh
33 export PYTHONPATH=${ZEPHYR_BASE}/scripts/pylib/pytest-twister-harness/src:${PYTHONPATH}
38 west build -p -b native_posix -- -DCONFIG_NATIVE_UART_0_ON_STDINOUT=y
[all …]
/Zephyr-Core-3.5.0/scripts/
Dtwister4 # SPDX-License-Identifier: Apache-2.0
13 run the tests in any available emulators or simulators on the system.
19 that testsuite meta-data. The full canonical name for each test case is <path to
28 of this script can filter the set of tests to run based on tag.
31 skip testsuite unconditionally. This can be used for broken tests.
34 Don't build or run this test case unless --enable-slow was passed
35 in on the command line. Intended for time-consuming test cases
136 if the symbol is defined to a non-empty string.
143 all comparison operators (non-associative)
171 running with -v or examining the test plan report (testplan.json)
[all …]
/Zephyr-Core-3.5.0/scripts/tests/build_helpers/
Dtest_domains.py4 # SPDX-License-Identifier: Apache-2.0
6 Tests for domains.py classes
15 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))
67 - name: some default
69 - name: another
79 - name: a domain
81 - name: default_domain
85 - default_domain
86 - a domain
166 - name: dummy
[all …]
/Zephyr-Core-3.5.0/scripts/pylib/twister/twisterlib/
Denvironment.py6 # SPDX-License-Identifier: Apache-2.0
42 …ckages = [pkg.project_name for pkg in pkg_resources.working_set] # pylint: disable=not-an-iterable
43 PYTEST_PLUGIN_INSTALLED = 'pytest-twister-harness' in installed_packages
57 $ ./scripts/twister -v \\
58 --testsuite-root tests/ztest/base \\
59 --testsuite-root tests/kernel \\
60 --test tests/ztest/base/testing.ztest.verbose_0 \\
61 --test tests/kernel/fifo/fifo_api/kernel.fifo
73 device = parser.add_mutually_exclusive_group(required="--device-testing" in sys.argv)
84 "-E",
[all …]
Dharness.py1 # SPDX-License-Identifier: Apache-2.0
27 result_re = re.compile(r".*(PASS|FAIL|SKIP) - (test_)?(\S*) in (\d*[.,]?\d*) seconds")
142 self.instance.execution_time = time.time() - start_time
146 # all tests in one Robot file are treated as a single test case,
273 '--twister-harness',
274 '-s', '-v',
275 f'--build-dir={self.running_dir}',
276 f'--junit-xml={self.report_file}',
277 '--log-file-level=DEBUG',
278 '--log-file-format=%(asctime)s.%(msecs)d:%(levelname)s:%(name)s: %(message)s',
[all …]
Dhandlers.py4 # Copyright (c) 2018-2022 Intel Corporation
6 # SPDX-License-Identifier: Apache-2.0
24 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))
30 print("Install pyserial python module with pip to use --device-testing option.")
36 pass # "--device-serial-pty" option is not supported on Windows OS
43 SUPPORTED_SIMS = ["mdb-nsim", "nsim", "renode", "qemu", "tsim", "armfvp", "xt-sim", "native", "cust…
149 # only for Ztest tests:
198 this_timeout = timeout_time - time.time()
205 line_decoded = self.line.decode('utf-8', "replace")
207 stripped_line = line_decoded[:-len(suffix)].rstrip()
[all …]