Home
last modified time | relevance | path

Searched +full:twister +full:- +full:build (Results 1 – 25 of 108) sorted by relevance

12345

/Zephyr-latest/scripts/pylib/pytest-twister-harness/
DREADME.rst2 Pytest Twister harness
6 ------------
8 If you plan to use this plugin with Twister, then you don't need to install it
9 separately by pip. When Twister uses this plugin for pytest tests, it updates
11 ``-p twister_harness.plugin`` argument.
15 -----
17 Run exemplary test shell application by Twister:
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/…
[all …]
/Zephyr-latest/.github/workflows/
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 …]
Dhello_world_multiplatform.yaml6 - main
7 - v*-branch
8 - collab-*
11 - main
12 - v*-branch
13 - collab-*
15 - 'scripts/**'
16 - '.github/workflows/hello_world_multiplatform.yaml'
17 - 'SDK_VERSION'
20 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
[all …]
Dclang.yaml1 name: Build with Clang/LLVM
6 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
7 cancel-in-progress: true
10 clang-build:
11 if: github.repository_owner == 'zephyrproject-rtos'
12 runs-on:
13 group: zephyr-runner-v2-linux-x64-4xlarge
15 image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.27.4.20241026
16 options: '--entrypoint /bin/bash'
18 fail-fast: false
[all …]
Dtwister_tests.yml2 # SPDX-License-Identifier: Apache-2.0
4 name: Twister TestSuite
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/'
[all …]
Dtwister_tests_blackbox.yml2 # SPDX-License-Identifier: Apache-2.0
4 name: Twister BlackBox TestSuite
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:
[all …]
/Zephyr-latest/scripts/
Drequirements-build-test.txt1 # BUILD-TEST: required to do build tests of zephyr
3 # things used by twister or other things like code coverage or python
6 # used by twister for ansi color
9 # python lex/yex used by twister
16 # used for west-command testing
Dwest-commands.yml2 west-commands:
3 - file: scripts/west_commands/completion.py
5 - name: completion
8 - file: scripts/west_commands/boards.py
10 - name: boards
13 - file: scripts/west_commands/shields.py
15 - name: shields
18 - file: scripts/west_commands/build.py
20 - name: build
21 class: Build
[all …]
Dtwister4 # SPDX-License-Identifier: Apache-2.0
5 """Zephyr Test Runner (twister)
11 build each test case on one platform per architecture, using a precedence
19 that testsuite meta-data. The full canonical name for each test case is <path to
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
51 If true, build the sample using the sysbuild infrastructure. Filtering
60 If true, attempt to build test on all available platforms.
67 minimum amount of RAM needed for this test to build and run. This is
71 minimum amount of ROM needed for this test to build and run. This is
[all …]
Drequirements-extras.txt3 # used by twister for --test-tree option
9 # helper for developers - check git commit messages
15 # Script used to build firmware images for NXP LPC MCUs.
18 # used by scripts/build/gen_cfb_font_header.py - helper script for user
/Zephyr-latest/scripts/tests/twister/
DREADME.md1 # Twister Testing
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
23 ## Twister Coverage
28 coverage run -m pytest $ZEPHYR_BASE/scripts/tests/twister/
31 Then we can generate the coverage report for just twister script using
34 coverage report -m $ZEPHYR_BASE/scripts/pylib/twister/
37 To generate the coverage report for twister script use below command
40 coverage report -m $ZEPHYR_BASE/scripts/twister
[all …]
/Zephyr-latest/doc/develop/west/
Dzephyr-cmds.rst1 .. _west-zephyr-ext-cmds:
6 This page documents miscellaneous :ref:`west-zephyr-extensions`.
8 .. _west-boards:
21 specify the display format yourself you can use the ``--format`` (or ``-f``)
24 west boards -f "{arch}:{name}"
28 west boards -h
30 .. _west-completion:
40 - bash
41 - zsh
42 - fish
[all …]
/Zephyr-latest/doc/develop/test/
Dcoverage.rst49 1. Build the code with CONFIG_COVERAGE=y.
51 .. zephyr-app-commands::
53 :gen-args: -DCONFIG_COVERAGE=y -DCONFIG_COVERAGE_DUMP=y
54 :goals: build
58 the emulator with :kbd:`Ctrl-A X` for this to complete after the coverage dump
61 .. code-block:: console
63 ninja -Cbuild run | tee log.log
67 .. code-block:: console
69 ninja -Cbuild run | tee log.log
74 $ python3 scripts/gen_gcov_files.py -i log.log
[all …]
Dtwister.rst3 Test Runner (Twister)
6 Twister scans for the set of test applications in the git repository
7 and attempts to execute them. By default, it tries to build each test
10 The default options will build the majority of the test applications on a
14 Because of the limited test execution coverage, twister
15 cannot guarantee local changes will succeed in the full build
20 When using (at least) one ``-v`` option, twister's console output
24 of a test is likewise reported in the ``twister.json`` and other report files.
25 There are a few reasons why twister only builds a test and doesn't run it:
27 - The test is marked as ``build_only: true`` in its ``.yaml``
[all …]
Dbsim.rst15 When we build Zephyr targeting a :ref:`bsim board<bsim boards>` we produce a Linux
23 `build <https://babblesim.github.io/building.html>`_ the simulator.
26 you can find more information about how to build Zephyr targeting these particular boards,
32 Tests without radio activity: bsim tests with twister
37 be used just like :ref:`native_sim<native_sim>` with :ref:`twister <twister_script>`,
38 to run all standard Zephyr twister tests, but with models of a real SOC HW, and their drivers.
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.
48 scripts contained in that folder are used by the CI system to build the needed images and execute
51 See sections below for more information about how to build and run them, as well as the conventions
[all …]
/Zephyr-latest/soc/intel/intel_adsp/tools/
Dcavstwist.sh2 # Copyright (c) 2022-2024 Intel Corporation
3 # SPDX-License-Identifier: Apache-2.0
4 set -e
6 # Twister integration tool for a remote ssh-accessible cAVS audio DSP
8 # hook for both --device-serial-pty and --west-flash, for example:
15 # twister -p intel_adsp/cavs25 --device-testing \
16 # --device-serial-pty=$ZEPHYR_BASE/soc/intel/intel_adsp/tools/cavstwist.sh \
17 # --west-flash=$ZEPHYR_BASE/soc/intel/intel_adsp/tools/cavstwist.sh
19 # The CAVS_OLD_FLASHER is necessary because now the client-server-based
20 # cavstool works by default. This is to tell the build system to use
[all …]
/Zephyr-latest/doc/develop/test/twister/
Dsample_blackbox_test.py4 # SPDX-License-Identifier: Apache-2.0
25 apath = os.path.join(ZEPHYR_BASE, "scripts", "twister")
45 # Set flags for our Twister command as a list of strs
51 # * Control whether to only build or build and run aforementioned tests
52 ["-i", "--outdir", out_path, "-T", path, "-y"]
54 + ["--level", level]
56 + ["--test-config", config_path]
60 for pair in zip(["-p"] * len(test_platforms), test_platforms, strict=False)
65 # First, provide the args variable as our Twister command line arguments.
70 # Execute the Twister call itself.
[all …]
Dtwister_blackbox.rst3 Twister blackbox tests
9 important for any Twister developer.
14 Twister blackbox tests are written in python, using the ``pytest`` library.
20 Blackbox tests should not be aware of the internal twister code. Instead, they should
21 call twister as user would and check the results.
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.
42 Such a test provides us with all the outputs we typically expect of a Twister run thanks to
[all …]
/Zephyr-latest/tests/benchmarks/wait_queues/
DREADME.rst18 be displayed. The following will build this project with verbose support:
20 .. code-block:: shell
22 EXTRA_CONF_FILE="prj.verbose.conf" west build -p -b <board> <path to project>
25 summary statistics as records to allow Twister parse the log and save that data
26 into ``recording.csv`` files and ``twister.json`` report.
/Zephyr-latest/tests/benchmarks/sched_queues/
DREADME.rst19 times will be displayed. The following will build this project with verbose
22 .. code-block:: shell
24 EXTRA_CONF_FILE="prj.verbose.conf" west build -p -b <board> <path to project>
27 summary statistics as records to allow Twister parse the log and save that data
28 into ``recording.csv`` files and ``twister.json`` report.
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/
Dplugin.py3 # SPDX-License-Identifier: Apache-2.0
22 twister_harness_group = parser.getgroup('Twister harness')
24 '--twister-harness',
27 help='Activate Twister harness plugin.'
31 'Activate Twister harness plugin',
35 '--base-timeout',
42 '--flash-timeout',
48 '--build-dir',
53 '--device-type',
58 '--platform',
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dplatform.py4 # Copyright (c) 2018-2022 Intel Corporation
7 # SPDX-License-Identifier: Apache-2.0
17 logger = logging.getLogger('twister')
30 def is_runnable(self) -> bool:
49 os.path.join(ZEPHYR_BASE, "scripts", "schemas", "twister", "platform-schema.yaml")
62 self.twister = True
76 self.tier = -1
90 board: the board object as per the zephyr build system
91 target: the target name of the board as per the zephyr build system
93 data: the data from the twister.yaml file for the target
[all …]
Denvironment.py4 # Copyright (c) 2018-2024 Intel Corporation
8 # SPDX-License-Identifier: Apache-2.0
29 logger = logging.getLogger('twister')
37 # for. Don't use it when invoking other components of the build system
45 def _get_installed_packages() -> Generator[str, None, None]:
57 print(f"Currently, Twister requires at least Python {min_ver_str}.")
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 \\
[all …]
/Zephyr-latest/boards/intel/adsp/doc/
Dintel_adsp_generic.rst8 the Audio and Context Engine (ACE). These Xtensa-based ADSPs can be integrated
12 +----------+-----------------------------+
16 +----------+-----------------------------+
18 +----------+-----------------------------+
20 +----------+-----------------------------+
22 +----------+-----------------------------+
24 Intel open-sources firmware for its ADSP hardware under the Sound Open Firmware
26 Xtensa OS (XTOS) and run on a variety of Intel and non-Intel platforms.
30 `UP Xtreme i11-0001 series`_ (:ref:`intel_adsp_cavs25`) board as an example.
39 -----------------------
[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 …]

12345