Add configuration for excluding unit tests from SAM analysis 69/288769/2
authorTomasz Swierczek <t.swierczek@samsung.com>
Wed, 22 Feb 2023 12:49:24 +0000 (13:49 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Wed, 22 Feb 2023 14:06:52 +0000 (15:06 +0100)
SAM & analysis hub treats the fact that unit tests direclty
link to src/ folder as cycle dependency between various modules,
lowering its score.

Since unit tests are not part of release image and unit tests should, actually,
link with implemenation, not client library, to enable code coverage measurement,
their implementation will be removed from SAM check.

Change-Id: If0185b07526cd83cb0b9847d082254d5e367e6df

.ahub/sam/exclude.txt [new file with mode: 0644]

diff --git a/.ahub/sam/exclude.txt b/.ahub/sam/exclude.txt
new file mode 100644 (file)
index 0000000..432ef46
--- /dev/null
@@ -0,0 +1,8 @@
+/device-certificate-manager/tests/api_test.cpp
+/device-certificate-manager/tests/colour_log_formatter.cpp
+/device-certificate-manager/tests/colour_log_formatter.h
+/device-certificate-manager/tests/device_certificate_manager_tests.cpp
+/device-certificate-manager/tests/shared_test.cpp
+/device-certificate-manager/tests/test_macros.h
+/device-certificate-manager/tests/dcm_support.pb.cc
+/device-certificate-manager/tests/dcm_support.pb.h