Home
last modified time | relevance | path

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

12

/Zephyr-latest/.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
11 - collab-*
13 - 'scripts/pylib/**'
14 - 'scripts/twister'
15 - 'scripts/tests/twister/**'
16 - '.github/workflows/twister_tests.yml'
17 - 'scripts/schemas/twister/'
20 - main
[all …]
Dtwister_tests_blackbox.yml2 # SPDX-License-Identifier: Apache-2.0
9 - main
10 - collab-*
11 - v*-branch
13 - 'scripts/pylib/twister/**'
14 - 'scripts/twister'
15 - 'scripts/tests/twister_blackbox/**'
16 - '.github/workflows/twister_tests_blackbox.yml'
19 twister-tests:
20 name: Twister Black Box Tests
[all …]
Ddoc-build.yml2 # SPDX-License-Identifier: Apache-2.0
8 - cron: '0 */3 * * *'
11 - v*
22 # and each sphinx-build process may use more than 2GiB of RAM.
26 doc-file-check:
28 runs-on: ubuntu-22.04
30 github.repository_owner == 'zephyrproject-rtos'
32 file_check: ${{ steps.check-doc-files.outputs.any_modified }}
34 - name: checkout
38 fetch-depth: 0
[all …]
/Zephyr-latest/
D.ruff-excludes.toml1 # SPDX-License-Identifier: Apache-2.0
6 [lint.per-file-ignores]
8 "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
9 "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting
12 "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
13 "UP030", # https://docs.astral.sh/ruff/rules/format-literals
14 "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting
17 "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
18 "UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting
19 "UP034", # https://docs.astral.sh/ruff/rules/extraneous-parentheses
[all …]
D.gitignore17 !tests/drivers/build_all
18 !scripts/pylib/build_helpers
25 # no suitable out-of-tree directory is found.
29 outdir-*
32 coverage-report
33 doc-coverage.info
41 doc/themes/zephyr-docs-theme
42 sanity-out*
43 twister-out*
47 tests/RunResults.xml
[all …]
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 …]
/Zephyr-latest/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.py5 # SPDX-License-Identifier: Apache-2.0
18 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
25 """ Test to check if loading the non-existent files raises the errors """
32 [("testsuite_correct_schema.yaml", "testsuite-schema.yaml"),
33 ("platform_correct_schema.yaml", "platform-schema.yaml")])
44 [("testsuite_incorrect_schema.yaml", "testsuite-schema.yaml"),
45 ("platform_incorrect_schema.yaml", "platform-schema.yaml")])
56 …filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_data/test_data_with_deprecation_warning…
57 schema = scl.yaml_load(Path(ZEPHYR_BASE) / "scripts/schemas/twister/testsuite-schema.yaml")
99 filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_twister.py"
Dtest_platform.py4 # SPDX-License-Identifier: Apache-2.0
7 This test file contains tests for platform.py module of twister
15 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
39 'tier': -1,
57 - tag1
58 - tag2
60 - tag3
63 - dummy.exe
64 - dummy.bin
67 - ble
[all …]
Dtest_testinstance.py4 # SPDX-License-Identifier: Apache-2.0
5 # pylint: disable=line-too-long
7 Tests for testinstance class
17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
19 from pylib.twister.twisterlib.platform import Simulator
59 testsuite = class_testplan.testsuites.get('scripts/tests/twister/test_data/testsuites/tests/'
141 testcase = class_testplan.testsuites.get('scripts/tests/twister/test_data/testsuites/samples/'
157 testcase = class_testplan.testsuites.get('scripts/tests/twister/test_data/testsuites/samples/'
174 '(dt_compat_enabled("st,stm32-flash-controller") or' \
175 ' dt_compat_enabled("st,stm32h7-flash-controller")) and' \
[all …]
Dtest_environment.py5 # SPDX-License-Identifier: Apache-2.0
7 Tests for environment.py classes' methods
25 ['--short-build-path', '-k'],
26 '--short-build-path requires Ninja to be enabled'
32 ['--device-serial-pty', 'dummy'],
33 '--device-serial-pty is not supported on Windows OS'
39 ['--west-runner=dummy'],
40 'west-runner requires west-flash to be enabled'
46 ['--west-flash=\"--board-id=dummy\"'],
47 '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'))
103 os.path.join('testsuites', 'tests', 'test_ztest.c'),
122 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error.c'),
133 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error_1.c'),
146 'tests',
162 'tests',
178 # 'tests',
282 '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')
Dtest_testplan.py2 # Copyright (c) 2020-2024 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
35 tests_rel_dir = 'scripts/tests/twister/test_data/testsuites/tests/'
116 …(None, None, "supported_toolchains", ['gcc', 'xcc', 'xt-clang'], "Not supported by the toolchain"),
193 …("run_individual_tests", ['scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1'…
226 (20, 20, -1, 0),
227 (-2, -1, 10, 20),
277 …'demo_board_1/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on boa…
278 …'demo_board_3/scripts/tests/twister/test_data/testsuites/tests/test_a/test_a.check_1' : 'a1 on boa…
[all …]
/Zephyr-latest/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_sim -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_sim -- -DCONFIG_NATIVE_UART_0_ON_STDINOUT=y
[all …]
/Zephyr-latest/scripts/tests/twister_blackbox/
Dconftest.py4 # SPDX-License-Identifier: Apache-2.0
16 TEST_DATA = os.path.join(ZEPHYR_BASE, 'scripts', 'tests',
20 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister"))
54 # See: https://github.com/pytest-dev/pytest/issues/5502
64 # This fixture provides blackbox tests with an `out_path` parameter
65 # It should be used as the `-O` (`--out_dir`) parameter in blackbox tests
77 out_container_path = tmp_path / 'blackbox-out-container'
79 out_path = os.path.join(out_container_path, "blackbox-out")
Dtest_addon.py4 # 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
[all …]
Dtest_hardwaremap.py4 # SPDX-License-Identifier: Apache-2.0
6 Blackbox tests for twister's command line functions
17 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/twister/twisterlib"))
29 'DAPLink CMSIS-DAP',
30 'MBED CMSIS-DAP'
41 'J-Link',
42 'J-Link OB'
56 'STLINK-V3'
68 'TTL232R-3V3',
78 'DAPLink CMSIS-DAP',
[all …]
/Zephyr-latest/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
139 if the symbol is defined to a non-empty string.
146 all comparison operators (non-associative)
174 running with -v or examining the test plan report (testplan.json)
[all …]
/Zephyr-latest/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-latest/scripts/ci/
Dtest_plan.py2 # SPDX-License-Identifier: Apache-2.0
29 # however, pylint complains that it doesn't recognized them when used (used-before-assignment).
40 from pylib.twister.twisterlib.statuses import TwisterStatus
44 # Constructs a single regex that tests for matches against the globs in
70 # return search(). (?:) is a non-capturing group.
139 cmd = [f"{zephyr_base}/scripts/twister", "-c"] + options + ["--save-tests", fname ]
141 cmd += ["--no-detailed-test-id"]
144 cmd+=["-T", root]
146 cmd.append("--integration")
149 cmd += ["--quarantine-list", q]
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Denvironment.py4 # Copyright (c) 2018-2024 Intel Corporation
8 # SPDX-License-Identifier: Apache-2.0
45 def _get_installed_packages() -> Generator[str, None, None]:
63 PYTEST_PLUGIN_INSTALLED = 'pytest-twister-harness' in installed_packages
71 def add_parse_arguments(parser = None) -> argparse.ArgumentParser:
82 $ ./scripts/twister -v \\
83 --testsuite-root tests/ztest/base \\
84 --testsuite-root tests/kernel \\
85 --test tests/ztest/base/testing.ztest.verbose_0 \\
86 --test tests/kernel/fifo/fifo_api/kernel.fifo
[all …]
Dharness.py1 # SPDX-License-Identifier: Apache-2.0
71 def trace(self) -> bool:
75 def status(self) -> TwisterStatus:
79 def status(self, value : TwisterStatus) -> None:
113 def translate_record(self, record: dict) -> dict:
127 def parse_record(self, line) -> re.Match:
218 self.instance.execution_time = time.time() - start_time
222 # all tests in one Robot file are treated as a single test case,
387 '--twister-harness',
388 '-s', '-v',
[all …]

12