Home
last modified time | relevance | path

Searched +full:coverage +full:- +full:report +full:- (Results 1 – 25 of 42) sorted by relevance

12

/Zephyr-latest/scripts/tests/twister/
DREADME.md12 pip install -r $ZEPHYR_BASE/scripts/requirements-build-test.txt
23 ## Twister Coverage
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/
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
43 The html coverage report for twister can be generated using
46 coverage html twister
[all …]
Dtest_environment.py5 # SPDX-License-Identifier: Apache-2.0
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'
56 ['--enable-valgrind'],
[all …]
/Zephyr-latest/tests/bsim/
Dgenerate_coverage_report.sh3 # SPDX-License-Identifier: Apache-2.0
5 set -eu
9 _generate_coverage_report.sh [-help]
10 Generate an html coverage report for BabbleSim tests
15 Coverage files will be searched for in the folder pointed by
22 By default it takes all coverage information generated by all run tests
25 You can also merge in the twister coverage report by setting
27 TWISTER_COVERAGE_FILE=\${ZEPHYR_BASE}/twister-out/coverage.info
29 twister -p nrf52_bsim -T tests/bluetooth/ --coverage
31 Note: Generating a coverage report for many tests is a lengthy process
[all …]
/Zephyr-latest/.github/workflows/
Dcodecov.yaml1 name: Code Coverage with codecov
5 - cron: '25 06,18 * * *'
8 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
9 cancel-in-progress: true
13 if: github.repository_owner == 'zephyrproject-rtos'
14 runs-on:
15 group: zephyr-runner-v2-linux-x64-4xlarge
17 image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.27.4.20241026
18 options: '--entrypoint /bin/bash'
20 fail-fast: false
[all …]
Ddoc-publish.yml3 # SPDX-License-Identifier: Apache-2.0
11 - main
12 - v*
14 - completed
17 doc-publish:
19 runs-on: ubuntu-22.04
23 github.repository == 'zephyrproject-rtos/zephyr'
26 - name: Download artifacts
27 uses: dawidd6/action-download-artifact@v6
29 workflow: doc-build.yml
[all …]
Ddoc-publish-pr.yml3 # SPDX-License-Identifier: Apache-2.0
11 - completed
14 doc-publish:
16 runs-on: ubuntu-22.04
20 github.repository == 'zephyrproject-rtos/zephyr'
23 - name: Download artifacts
24 id: download-artifacts
25 uses: dawidd6/action-download-artifact@v6
27 workflow: doc-build.yml
31 - name: Load PR number
[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/doc/develop/test/
Dcoverage.rst3 Generating coverage reports
6 With Zephyr, you can generate code coverage reports to analyze which parts of
15 Test coverage reports in embedded devices or QEMU
20 `GCC GCOV <gcov_>`_ is a test coverage program
21 used together with the GCC compiler to analyze and create test coverage reports
25 In Zephyr, gcov collects coverage profiling data in RAM (and not to a file
32 There are 2 parts to enable this feature. The first is to enable the coverage for the
34 code coverage with gcov is a function of RAM available. Therefore ensure that the
35 device has enough RAM when enabling the coverage for it. For example a small device
37 cases which consume more RAM will crash when coverage is enabled.
[all …]
Dbsim.rst58 applications tests use the :ref:`bs_tests<bsim_boards_bs_tests>` system to report the pass or
68 Test coverage and BabbleSim
73 test coverage information.
76 coverage report from tests.
78 Check :ref:`the page on coverage generation <coverage_posix>` for more info.
94 .. code-block:: bash
106 .. code-block:: bash
124 .. code-block:: bash
130 .. code-block:: bash
138 ---------
[all …]
Dtwister.rst14 Because of the limited test execution coverage, twister
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.
27 - The test is marked as ``build_only: true`` in its ``.yaml``
29 - The test configuration has defined a ``harness`` but you don't have
31 - The target device is not connected and not available for flashing
32 - You or some higher level automation invoked twister with
33 ``--build-only``.
39 .. group-tab:: Linux
41 .. code-block:: bash
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dcoverage.py3 # Copyright (c) 2018-2022 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
27 """ Base class for every supported coverage tool
42 logger.error(f"Unsupported coverage tool specified: {tool}")
45 logger.debug(f"Select {tool} as the coverage tool...")
63 # Loop until the coverage data is found.
72 hex_dump = sp[1][:-1]
100 # Iteratively call gcov-tool (not gcov) to merge the files
101 merge_tool = self.gcov_tool + '-tool'
102 for d1, d2 in zip(dirs[:-1], dirs[1:], strict=False):
[all …]
Dtwister_main.py4 # SPDX-License-Identifier: Apache-2.0
15 from twisterlib.coverage import run_coverage
43 formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
45 formatter = logging.Formatter("%(levelname)-7s - %(message)s")
48 "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
100 sys.exit(f"Too many '{options.outdir}.*' directories. Run either with --no-clean, "
101 "or --clobber-output, or delete these directories manually.")
129 if tplan.report() == 0:
153 report = Reporting(tplan, env)
156 report.json_report(plan_file, env.version)
[all …]
Denvironment.py4 # Copyright (c) 2018-2024 Intel Corporation
8 # SPDX-License-Identifier: Apache-2.0
25 from twisterlib.coverage import supported_coverage_formats
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 \\
[all …]
Drunner.py3 # Copyright (c) 2018-2024 Intel Corporation
5 # SPDX-License-Identifier: Apache-2.0
74 completed = done - filtered_static
77 pass rate = passed / (total - filtered_configs)
78 case pass rate = passed_cases / (cases - filtered_cases - skipped_cases)
147 length = int(log10(-n))+2
151 selected_cases = self.cases - self.filtered_cases
152 selected_configs = self.done - self.filtered_static - self.filtered_runtime
507 config_re = re.compile('(CONFIG_[A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
508 dt_re = re.compile('([A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
[all …]
/Zephyr-latest/subsys/testsuite/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
30 The code coverage report generation is only available on boards
31 with enough spare RAM to buffer the coverage data, or on boards
34 config COVERAGE config
35 bool "Create coverage data"
38 This option will build your application with the -coverage option
39 which will generate data that can be used to create coverage reports.
41 https://docs.zephyrproject.org/latest/guides/coverage.html
44 prompt "Coverage mode"
47 depends on COVERAGE
[all …]
/Zephyr-latest/
D.gitignore25 # 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*
55 hide-defaults-note
/Zephyr-latest/subsys/testsuite/ztest/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
43 value. Please be aware that increasing it for long-running test cases
64 default -2 if !PREEMPT_ENABLED
65 default -1
67 Set priority of the testing thread. Default is -1 (cooperative).
87 bool "Using a pre-defined fatal handler and hook function"
89 Use the pre-defined common fatal error handler and a post hook to
95 bool "Using a pre-defined assert handler and hook function"
97 Use the pre-defined common assert fail handler and a post hook to
112 default y if !(ARCH_POSIX || COVERAGE)
[all …]
/Zephyr-latest/tests/drivers/watchdog/wdt_error_cases/
DREADME.txt9 Since, main goal is to detect (and report) invalid use of the driver,
15 These tests were written to increase test coverage for the Watchdog driver.
16 Since, coverage data is stored in the RAM, it is lost when watchdog fires.
42 - WDT_FLAG_RESET_NONE - when watchdog expires, it's callback is serviced but
44 - WDT_FLAG_RESET_CPU_CORE - when watchdog expires, only one core is reset, while
46 - WDT_FLAG_RESET_SOC - when watchdog expires, target as "a whole" is reset.
68 - WDT_OPT_PAUSE_IN_SLEEP;
69 - WDT_OPT_PAUSE_HALTED_BY_DBG.
/Zephyr-latest/scripts/west_commands/completion/
Dwest-completion.bash1 # Bash auto-completion for west subcommands and flags. To initialize, run
3 # source west-completion.bash
7 __west_previous_extglob_setting=$(shopt -p extglob)
8 shopt -s extglob
12 # bash_completion - programmable completion functions for bash 3.2+
14 # Copyright © 2006-2008, Ian Macdonald <ian@caliban.org>
15 # © 2009-2010, Bash Completion Maintainers
16 # <bash-completion-devel@lists.alioth.debian.org>
33 # http://bash-completion.alioth.debian.org/
41 # if test "${words_[cword_-1]}" = -w
[all …]
/Zephyr-latest/scripts/ci/coverage/
Dcoverage_analysis.py1 # SPDX-License-Identifier: Apache-2.0
29 self.report_json = self.generate_json_report( args.coverage)
231 def generate_json_report(self, coverage): argument
236 with open(coverage, 'r') as file:
261 "Coverage": file_coverage,
305 return -1
306 return len(path) - len(sep[-1]) - len(str)
357 worksheet.write(row,col+7,"Coverage [%]",header_format)
374 coverage = 0.0
384 coverage = (hit/lines)*100
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-2.0.rst12 * The kernel now supports both 32- and 64-bit architectures.
17 * We added support for :ref:`Point-to-Point Protocol (PPP) <ppp>`. PPP is a
20 * We added support for UpdateHub, an end-to-end solution for large scale
21 over-the-air device updates.
22 * We added support for ARM Cortex-R Architecture (Experimental).
32 * Fixes CVE-2019-9506: The Bluetooth BR/EDR specification up to and
35 negotiation. This allows practical brute-force attacks (aka "KNOB")
42 * New kernel API for per-thread disabling of Floating Point Services for
43 ARC, ARM Cortex-M, and x86 architectures.
45 * Additional support for compatibility with 64-bit architectures.
[all …]
Drelease-notes-1.14.rst17 * CVE-2020-10066
18 * CVE-2020-10069
19 * CVE-2020-13601
20 * CVE-2020-13602
32 * :github:`issuenumber` - issue title
34 * :github:`18334` - DNS resolution is broken for some addresses in master/2.0-pre
35 * :github:`19917` - Bluetooth: Controller: Missing LL_ENC_RSP after HCI LTK Negative Reply
36 * :github:`21107` - LL_ASSERT and 'Imprecise data bus error' in LL Controller
37 * :github:`21257` - tests/net/net_pkt failed on mimxrt1050_evk board.
38 * :github:`21299` - bluetooth: Controller does not release buffer on central side after peripheral …
[all …]
/Zephyr-latest/scripts/native_simulator/common/src/
Dnce.c5 * SPDX-License-Identifier: Apache-2.0
14 * Its mode of operation is that it step-locks the HW
65 this->cpu_halted = true; in nce_init()
66 this->terminate = false; in nce_init()
68 NSI_SAFE_CALL(pthread_cond_init(&this->cond_cpu, NULL)); in nce_init()
69 NSI_SAFE_CALL(pthread_mutex_init(&this->mtx_cpu, NULL)); in nce_init()
94 if (this == NULL || this->cpu_halted) { in nce_terminate()
100 * If you got here due to valgrind's leak report, please use the in nce_terminate()
104 } else if (this->terminate == false) { in nce_terminate()
106 this->terminate = true; in nce_terminate()
[all …]
Dnct.c5 * SPDX-License-Identifier: Apache-2.0
26 * For SOCs with several micro-controllers (AMP) one instance of this module
140 tt_el->thead_cnt, in abort_tail()
144 tt_el->running = false; in abort_tail()
145 tt_el->state = ABORTED; in abort_tail()
161 tt_el->running = false; in nct_wait_until_allowed()
164 tt_el->thead_cnt, in nct_wait_until_allowed()
168 while (this_th_nbr != this->currently_allowed_thread) { in nct_wait_until_allowed()
169 pthread_cond_wait(&this->cond_threads, &this->mtx_threads); in nct_wait_until_allowed()
171 if (tt_el->state == ABORTING) { in nct_wait_until_allowed()
[all …]
/Zephyr-latest/kernel/
Dinit.c2 * Copyright (c) 2010-2014 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
27 #include <zephyr/linker/linker-defs.h>
68 thread_data->init_thread, in z_init_static_threads()
69 thread_data->init_stack, in z_init_static_threads()
70 thread_data->init_stack_size, in z_init_static_threads()
71 thread_data->init_entry, in z_init_static_threads()
72 thread_data->init_p1, in z_init_static_threads()
73 thread_data->init_p2, in z_init_static_threads()
74 thread_data->init_p3, in z_init_static_threads()
[all …]

12