Home
last modified time | relevance | path

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

1234567

/Zephyr-latest/.github/workflows/
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 …]
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_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 …]
Dscripts_tests.yml2 # SPDX-License-Identifier: Apache-2.0
4 name: Scripts tests
9 - main
10 - v*-branch
12 - 'scripts/build/**'
13 - '.github/workflows/scripts_tests.yml'
16 - main
17 - v*-branch
19 - 'scripts/build/**'
20 - '.github/workflows/scripts_tests.yml'
[all …]
Dwest_cmds.yml2 # SPDX-License-Identifier: Apache-2.0
4 name: Zephyr West Command Tests
9 - main
10 - v*-branch
11 - collab-*
13 - 'scripts/west-commands.yml'
14 - 'scripts/west_commands/**'
15 - '.github/workflows/west_cmds.yml'
18 - main
19 - v*-branch
[all …]
Dtwister.yaml1 name: Run tests with twister
6 - main
7 - v*-branch
8 - collab-*
11 - main
12 - v*-branch
13 - collab-*
16 - cron: '0 3 * * 0'
19 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
20 cancel-in-progress: true
[all …]
Ddevicetree_checks.yml3 # SPDX-License-Identifier: Apache-2.0
5 name: Devicetree script tests
10 - main
11 - v*-branch
13 - 'scripts/dts/**'
14 - '.github/workflows/devicetree_checks.yml'
17 - main
18 - v*-branch
20 - 'scripts/dts/**'
21 - '.github/workflows/devicetree_checks.yml'
[all …]
/Zephyr-latest/scripts/tests/twister/
DREADME.md3 Running the tests require the environment variable ZEPHYR_BASE to be set.
5 …er Testsuite are located in $ZEPHYR_BASE/scripts/tests directory with all the data files in $ZEPHY…
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"))
16 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts"))
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")])
37 schema = scl.yaml_load(ZEPHYR_BASE +'/scripts/schemas/twister//' + schema)
44 [("testsuite_incorrect_schema.yaml", "testsuite-schema.yaml"),
45 ("platform_incorrect_schema.yaml", "platform-schema.yaml")])
49 schema = scl.yaml_load(ZEPHYR_BASE +'/scripts/schemas/twister//' + schema)
56 …filename = Path(ZEPHYR_BASE) / "scripts/tests/twister/test_data/test_data_with_deprecation_warning…
[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_config_parser.py5 # SPDX-License-Identifier: Apache-2.0
7 Tests for config_parser.py
52 tests:
56 - '--CONF_FILE=file1.conf'
57 - '--OVERLAY_CONFIG=config1.conf'
64 os.path.join(zephyr_base, 'scripts', 'schemas','twister', 'testsuite-schema.yaml')
75 … assert scenario_data['extra_args'] == ['--CONF_FILE=file1.conf', '--OVERLAY_CONFIG=config1.conf']
83 tests:
90 os.path.join(zephyr_base, 'scripts', 'schemas', 'twister','testsuite-schema.yaml')
140 ('True', 'bool', 'True', None), # do-nothing cast
[all …]
/Zephyr-latest/
D.ruff-excludes.toml1 # SPDX-License-Identifier: Apache-2.0
3 # This list is generated, it contains all python scripts that existed before ruff was introduced,
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
[all …]
D.gitignore16 !scripts/build
17 !tests/drivers/build_all
18 !scripts/pylib/build_helpers
25 # no suitable out-of-tree directory is found.
29 outdir-*
30 scripts/basic/fixdep
31 scripts/gen_idt/gen_idt
32 coverage-report
33 doc-coverage.info
41 doc/themes/zephyr-docs-theme
[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/doc/develop/test/
Dbsim.rst29 Types of tests
32 Tests without radio activity: bsim tests with twister argument
38 to run all standard Zephyr twister tests, but with models of a real SOC HW, and their drivers.
40 Tests with radio activity
43 When there is radio activity, BabbleSim tests require at the very least a physical layer simulation
44 running, and most, more than 1 simulated device. Due to this, these tests are not build and run
45 with twister, but with a dedicated set of tests scripts.
47 These tests are kept in the :code:`tests/bsim/` folder. The ``compile.sh`` and ``run_parallel.sh``
48 scripts contained in that folder are used by the CI system to build the needed images and execute
49 these tests in batch.
[all …]
/Zephyr-latest/tests/bsim/
Dci.uart.sh3 # SPDX-License-Identifier: Apache-2.0
5 # This script runs the Babblesim CI UART tests.
9 export ZEPHYR_BASE="${ZEPHYR_BASE:-${PWD}}"
12 set -uex
14 echo "UART: Single device tests"
16 ${ZEPHYR_BASE}/scripts/twister -T tests/drivers/uart/ --force-color --inline-logs -v -M \
17 -p nrf52_bsim -p nrf5340bsim/nrf5340/cpuapp --fixture gpio_loopback \
18 -- -uart0_loopback -uart1_loopback
21 ${ZEPHYR_BASE}/scripts/twister -T tests/drivers/uart/ --force-color --inline-logs -v -M \
22 -p nrf54l15bsim/nrf54l15/cpuapp --fixture gpio_loopback \
[all …]
/Zephyr-latest/scripts/ci/
Dtwister_ignore.txt6 # run on changed tests or boards.
10 .clang-format
23 .github/workflows/stale-workflow-queue-cleanup.yml
25 .github/workflows/issues-report-config.json
39 scripts/ci/test_plan.py
40 scripts/ci/twister_ignore.txt
41 scripts/ci/check_compliance.py
42 scripts/ci/errno.py
43 scripts/ci/upload_test_results_es.py
44 scripts/ci/what_changed.py
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/
DREADME.rst1 Bluetooth Mesh BabbleSim tests
4 This directory contains a set of high level system tests for the Bluetooth Mesh
5 subsystem. The tests run on the BabbleSim simulator, using the BabbleSim test
8 Tests are organized into bash scripts under the test_scripts folder. Each
9 subfolder of test_scripts contains tests for a specific module in the Bluetooth
11 src/ directory containing the necessary test harnesses to execute the tests.
14 tests. The test application is built from this directory, and includes all test
16 to use at runtime, using the test identifiers passed in the test scripts.
18 Running the tests
21 The Bluetooth Mesh tests have no extra requirements, and can be run using the
[all …]
/Zephyr-latest/tests/boot/with_mcumgr/
DREADME.rst5 using **sysbuild**. Tests are automated with pytest, a new harness of Twister
13 To run tests with Twister on ``nrf52840dk/nrf52840`` platform,
16 .. code-block:: console
18 ./zephyr/scripts/twister -vv --west-flash --enable-slow -T zephyr/tests/boot/with_mcumgr \
19 -p nrf52840dk/nrf52840 --device-testing --device-serial /dev/ttyACM0
22 Twister requires ``--west-flash`` flag enabled (without additional parameters
25 Test scripts can be found in ``pytest`` directory. To list available
28 .. code-block:: console
30 pytest zephyr/tests/boot/with_mcumgr/pytest --collect-only -v
/Zephyr-latest/scripts/net/
DREADME.txt1 The shell script run-sample-tests.sh runs selected Zephyr samples against
2 the network test applications Docker container provided by the 'net-tools'
3 Zephyr project, https://github.com/zephyrproject-rtos/net-tools.
10 'net-tools' Docker container has been created, see the first bullet point
11 at the net-tools Docker README file
12 https://github.com/zephyrproject-rtos/net-tools/blob/master/README.docker.
17 * Check out the net-tools project from github or update it with west
18 * Change working directory to the net-tools repository
20 * Run 'docker build -t net-tools .'
22 This creates a Docker image called 'net-tools' which the script will need as
[all …]
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/
DREADME.txt4 This is the embedded side of the BLE conformance tests which are part of the
15 tests to switch between theses.
17 The first application is used for LL and HCI conformance tests of the
19 The second application for GATT tests.
43 To run these sets of tests you need to compile both of these applications as any
48 To run the tests you can either run one of the provided scripts, or run by
50 The shortest path is to use the provided scripts.
54 cd ${ZEPHYR_BASE} && source zephyr-env.sh
56 WORK_DIR=${ZEPHYR_BASE}/bsim_out tests/bsim/bluetooth/ll/compile.sh
58 #run all tests
[all …]
/Zephyr-latest/scripts/ci/es_upload/
DREADME.md17 For other command line options and more details run the upload script with `--help`,
24 It is recommended to try the upload script with `--dry-run` option first
36 python3 ./scripts/ci/upload_test_results_es.py --create-index \
37 --index YOUR_INDEX_NAME \
38 --map-file YOUR_INDEX_MAP.json
47 (see `--help` for more details):
49 * `--exclude` removes excess testsuite properties not needed to store them
52 * `--transform` applies regexp group parsing rules to string properties extracting
55 * `--flatten` changes testsuite data structure in regard of one of its list components:
63 * Other command line options: `--flatten-dict-name`, `--flatten-list-names`,
[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"))
21 sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts"))
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")
/Zephyr-latest/doc/develop/test/twister/
Dtwister_blackbox.rst3 Twister blackbox tests
7 to understand existing files and create their own. All developers should fix any tests
14 Twister blackbox tests are written in python, using the ``pytest`` library.
17 Tests and data are wholly contained in the :zephyr_file:`scripts/tests/twister_blackbox`
20 Blackbox tests should not be aware of the internal twister code. Instead, they should
35 .. code-block:: console
37 twister -i --outdir $OUTDIR -T $TEST_DATA/tests -y --level $LEVEL
38 --test-config $TEST_DATA/test_config.yaml -p qemu_x86 -p frdm_k64f
40 It presumes a CLI with the ``zephyr-env.sh`` or ``zephyr-env.cmd`` already run.
48 ``twister-out`` directories. Most of the time, we will use the ``out_path`` fixture in conjunction
[all …]

1234567