zephyr/subsys
Roman Studenikin fdd81f87c2 testsuite: coverage: Add CONFIG_ZTEST_COVERAGE_RESET_BEFORE_TESTS
Add an option to reset gcov counters before running tests.
This ensures that only code lines triggered by test itself are counted in
the coverage report and all the board initialization code and pre-test
bootstrap is not counted. This is useful when, for example, you are
testing code that is also executed during bootup

Test Plan:
west build -p always -b qemu_x86_64 tests/ztest/base/ -- \
-DCONFIG_COVERAGE=y -DCONFIG_COVERAGE_GCOV=y -DCONFIG_COVERAGE_DUMP=y \
-DCONFIG_ZTEST_COVERAGE_RESET_BEFORE_TESTS=y
ninja -Cbuild run | tee log.log

Signed-off-by: Roman Studenikin <srv@meta.com>
2024-06-12 14:32:04 +03:00
..
bindesc build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
bluetooth Bluetooth: Host: Avoid processing "no change" encryption changes 2024-06-11 19:45:09 -04:00
canbus canbus: isotp: use proper CAN ID masks 2024-04-24 09:53:06 +02:00
console
debug subsys/debug: relocate symtab Kconfig 2024-06-04 22:36:51 -04:00
demand_paging kernel: mmu: abstract access to page frame flags and address 2024-05-13 16:04:40 -04:00
dfu dfu/mcuboot: Use flash_area_flatten instead of flash_area_erase 2024-06-04 08:00:46 +02:00
disk drivers: disk: add DISK_IOCTL_CTRL_DEINIT command to supported IOCTLs 2024-06-07 18:16:01 +01:00
dsp
emul treewide: drivers: espi: Adjust terms per eSPI specification 1.5 2024-05-02 13:56:46 -04:00
fb
fs fs: fat_fs: make IOCTL call to de-initialize disk in fatfs_unmount() 2024-06-07 18:16:01 +01:00
input input: utils: rename the input dump callback 2024-04-01 11:05:02 +01:00
ipc ipc: fix return code of icbmsg backend send operation. 2024-06-10 15:00:01 +03:00
jwt modules: mbedtls: remove the default enabling of features 2024-05-31 16:33:06 -05:00
llext llext: refact: move ELF loading and linking to separate files 2024-06-07 18:07:53 +01:00
logging posix: timers: deprecate CONFIG_POSIX_CLOCK and TIMER 2024-06-04 16:27:12 -05:00
lorawan lorawan: services: frag decoder: add lowmem implementation 2024-06-11 16:09:23 +03:00
mem_mgmt
mgmt mgmt: hawkbit: some Kconfig improvements 2024-06-07 18:06:45 +01:00
modbus modbus: Respect CONFIG_UART_USE_RUNTIME_CONFIGURE 2024-04-10 10:01:55 +02:00
modem modem: add modem_pipelink module 2024-06-10 15:12:34 -05:00
net net: change controlling expressions in while to Boolean 2024-06-11 20:03:16 +03:00
pm pm: Add a symbol for device power state constraints 2024-06-07 19:06:23 -04:00
portability subsys/portability/CMSIS: Do not redefine TRUE & FALSE 2024-06-11 16:29:22 +03:00
random random: enable AES support CTR_DRBG CSPRNG when it relies on Mbed TLS 2024-06-03 16:13:05 -04:00
retention
rtio sys: Add a lockfree mpsc and spsc queues 2024-06-06 00:42:29 -07:00
sd sd: sd_ops: fix DISK_IOCTL_CTRL_SYNC return code 2024-05-29 07:31:39 +02:00
sensing sensing: Fix build warning on invalid array index 2024-06-07 09:52:09 +02:00
settings storage/settings: Replace flash_area_erase with flash_area_flatten 2024-06-04 08:00:46 +02:00
shell shell: change controlling expressions in while to Boolean 2024-06-12 14:22:36 +03:00
sip_svc linker: subsys: Use Z_LINK_ITERABLE_SUBALIGN 2024-04-20 13:45:25 -04:00
stats
storage storage/stream_flash: Support for devices without explicit erase 2024-06-04 08:00:46 +02:00
task_wdt task_wdt: Feed hardware watchdog only when its started 2024-06-06 00:40:53 -07:00
testsuite testsuite: coverage: Add CONFIG_ZTEST_COVERAGE_RESET_BEFORE_TESTS 2024-06-12 14:32:04 +03:00
timing
tracing tracing: change controlling expressions in while to Boolean 2024-06-11 20:02:40 +03:00
usb usb: device: allow uneven SN to be obtained from HWINFO 2024-06-12 14:31:11 +03:00
zbus zbus: vded: msg_sub: Improve channel ref copy 2024-06-09 09:07:21 -05:00
CMakeLists.txt
Kconfig