Skip to content

Commit

Permalink
UNIT Test: Remove all unit tests except io.
Browse files Browse the repository at this point in the history
Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Mar 18, 2024
1 parent 189881d commit acb7713
Showing 1 changed file with 1 addition and 97 deletions.
98 changes: 1 addition & 97 deletions Makefile-test.am
Original file line number Diff line number Diff line change
Expand Up @@ -82,102 +82,7 @@ $(FAPI_TEST_BINS) : %.bin : %.b64
$(AM_V_GEN)$(call make_bin,$@,$<)

if UNIT
TESTS_UNIT = \
test/unit/CommonPreparePrologue \
test/unit/CopyCommandHeader \
test/unit/io \
test/unit/key-value-parse \
test/unit/log \
test/unit/tctildr \
test/unit/tctildr-dl \
test/unit/tctildr-nodl \
test/unit/tctildr-tcti \
test/unit/tctildr-getinfo \
test/unit/dlopen-fail \
test/unit/dlopen-UINT8-marshal \
test/unit/dlopen-TPM2B-marshal \
test/unit/dlopen-TPMU-marshal \
test/unit/UINT8-marshal \
test/unit/UINT16-marshal \
test/unit/UINT32-marshal \
test/unit/UINT64-marshal \
test/unit/TPMA-marshal \
test/unit/TPM2B-marshal \
test/unit/TPMS-marshal \
test/unit/TPML-marshal \
test/unit/TPMT-marshal \
test/unit/TPMU-marshal \
test/unit/sys-execute \
test/unit/dlopen_tss2_rc \
test/unit/tss2_rc
if ENABLE_TCTI_MSSIM
TESTS_UNIT += test/unit/tcti-mssim
endif
if ENABLE_TCTI_SWTPM
TESTS_UNIT += test/unit/tcti-swtpm
endif
if ENABLE_TCTI_LIBTPMS
TESTS_UNIT += test/unit/tcti-libtpms
endif
if ENABLE_TCTI_DEVICE
TESTS_UNIT += test/unit/tcti-device
endif
if ENABLE_TCTI_PCAP
TESTS_UNIT += test/unit/tcti-pcap
endif
if ENABLE_TCTI_CMD
TESTS_UNIT += test/unit/tcti-cmd
endif
if ENABLE_TCTI_SPI_HELPER
TESTS_UNIT += test/unit/tcti-spi-helper
endif
if ENABLE_TCTI_SPI_LTT2GO
TESTS_UNIT += test/unit/tcti-spi-ltt2go
endif
if ENABLE_TCTI_SPIDEV
TESTS_UNIT += test/unit/tcti-spidev
endif
if ENABLE_TCTI_SPI_FTDI
TESTS_UNIT += test/unit/tcti-spi-ftdi
endif
if ENABLE_TCTI_I2C_HELPER
TESTS_UNIT += test/unit/tcti-i2c-helper
endif
if ENABLE_TCTI_I2C_FTDI
TESTS_UNIT += test/unit/tcti-i2c-ftdi
endif
if ESYS
TESTS_UNIT += \
test/unit/esys-context-null \
test/unit/esys-resubmissions \
test/unit/esys-sequence-finish \
test/unit/esys-tcti-rcs \
test/unit/esys-tpm-rcs \
test/unit/esys-getpollhandles \
test/unit/esys-ac-getcapability \
test/unit/esys-ac-send \
test/unit/esys-policy-ac-sendselect \
test/unit/esys-nulltcti \
test/unit/esys-crypto
if VENDOR
TESTS_UNIT += test/unit/esys-vendor
endif # VENDOR

endif ESYS
if FAPI
TESTS_CFLAGS += -DTOP_SOURCEDIR"=\"$(top_srcdir)\""
TESTS_UNIT += \
test/unit/fapi-json \
test/unit/fapi-helpers \
test/unit/fapi-io \
test/unit/fapi-profiles \
test/unit/fapi-config \
test/unit/fapi-get-web-cert \
test/unit/fapi-eventlog \
test/unit/fapi-ima-eventlog \
test/unit/fapi-check-ima-log

endif FAPI
TESTS_UNIT = test/unit/io
endif #UNIT

if ENABLE_INTEGRATION
Expand Down Expand Up @@ -1068,7 +973,6 @@ noinst_PROGRAMS += test/unit/fapi-system-fuzzing
endif # FAPI

if POLICY
TESTS_UNIT += test/unit/tss2_policy

test_unit_tss2_policy_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
test_unit_tss2_policy_LDADD = $(CMOCKA_LIBS) $(libtss2_policy) $(libtss2_esys)
Expand Down

0 comments on commit acb7713

Please sign in to comment.