zephyr/tests
Yuval Peress fae9923ff2 unittest: update coverage library non gcc toolchains
When building with clang, the unittests were giving us an error:
```
error: undefined symbol: llvm_gcda_start_file
```

This seems to be from linking in `gcov` regardless of the toolchain.
It appears that clang doesn't need any special library for coverage.
With this change the following now produce identical coverage reports:

```
$ ZEPHYR_TOOLCHAIN_VARIANT=zephyr ./scripts/twister -p unit_testing \
  --coverage -i -T tests/unit/intmath/
$ ZEPHYR_TOOLCHAIN_VARIANT=host ./scripts/twister -p unit_testing \
  --coverage -i -T tests/unit/intmath/
$ ZEPHYR_TOOLCHAIN_VARIANT=llvm ./scripts/twister -p unit_testing \
  --coverage -i --coverage-tool lcov                              \
  --gcov-tool $(pwd)/scripts/utils/llvm-gcov.sh                   \
  -T tests/unit/intmath/
```

Signed-off-by: Yuval Peress <peress@google.com>
2022-11-21 16:09:46 -05:00
..
application_development arch/xtensa: Enable code relocation 2022-11-03 10:25:07 +01:00
arch tests/x86: Check libc partition in page permissions test 2022-11-08 10:44:36 +01:00
benchmarks tests: move to using CONFIG_MP_MAX_NUM_CPUS 2022-10-20 22:04:10 +09:00
bluetooth Bluetooth: controller: CIS Central fixes from EBQ run 2022-11-18 12:48:13 +01:00
boards tests: intel_adsp: smoke: Convert CONFIG_MP_NUM_CPUS handling 2022-10-27 09:54:22 -04:00
boot tests: boot: add mcuboot test 2022-10-04 14:06:58 -04:00
cmake build: Overlay build vars expand ${ZEPHYR_<module>_MODULE_DIR} 2022-10-13 12:04:38 +02:00
crypto tests/mbedtls: Reduce MPU partition usage for picolibc 2022-11-08 10:44:36 +01:00
drivers test: SBS gauge gets initially supported props 2022-11-19 17:56:05 -05:00
kernel tests: kernel: common: tag test correctly 2022-11-18 10:41:52 -05:00
lib tests: devicetree: add tests for DT_GPARENT/DT_INST_GPARENT 2022-11-17 10:18:11 -06:00
misc tests: misc: iterable_sections: add const specifier for ROM data 2022-10-12 18:42:28 +02:00
net tests: net: Enable CONFIG_NET_BUF_VARIABLE_DATA_SIZE in some tests 2022-11-19 07:39:32 -05:00
posix tests: posix: cond: test to ensure there is no resource leakage 2022-11-19 14:16:38 +09:00
subsys net: pkt: Introduce minimum length requirement to net_pkt_get_frag() 2022-11-19 07:39:32 -05:00
unit unittest: update coverage library non gcc toolchains 2022-11-21 16:09:46 -05:00
ztest test: update how unit tests set sources 2022-10-31 17:01:59 +01:00