unit-tests: Don't link files from libimcv into the test executable

This causes odr-violation errors with libasan as some symbols will be
defined twice, once in the linked libimcv and once in the test
executable itself.
This commit is contained in:
Tobias Brunner
2022-09-15 12:16:12 +02:00
parent 996f557c40
commit c9c8911478
+1 -17
View File
@@ -199,25 +199,9 @@ TESTS = imcv_tests
check_PROGRAMS = $(TESTS)
imcv_tests_SOURCES = \
ita/ita_attr_command.c \
pa_tnc/pa_tnc_attr_manager.c \
seg/seg_env.c seg/seg_contract.c \
seg/seg_contract_manager.c \
swid_gen/swid_gen.c \
swima/swima_data_model.c \
swima/swima_event.c \
swima/swima_events.c \
swima/swima_record.c \
swima/swima_inventory.c \
swima/swima_collector.c \
suites/test_imcv_seg.c \
suites/test_imcv_swima.c \
ietf/ietf_attr_pa_tnc_error.c \
ietf/swima/ietf_swima_attr_req.c \
ietf/swima/ietf_swima_attr_sw_inv.c \
ietf/swima/ietf_swima_attr_sw_ev.c \
tcg/seg/tcg_seg_attr_seg_env.c \
imcv.c imcv_tests.h imcv_tests.c
imcv_tests.h imcv_tests.c
imcv_tests_CFLAGS = \
-I$(top_srcdir)/src/libimcv \