zephyr/tests/unit
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
..
base64 test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
cbprintf tests/cbprintf: Use minimal libc to test cbprintf code 2022-11-08 10:44:36 +01:00
crc unittest: update coverage library non gcc toolchains 2022-11-21 16:09:46 -05:00
intmath test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
list test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
math_extras test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
net_timeout test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
rbtree test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
timeutil test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
util test: update how unit tests set sources 2022-10-31 17:01:59 +01:00
winstream test: update how unit tests set sources 2022-10-31 17:01:59 +01:00