Address feedback

pull/287/head
Lealem Amedie 2023-08-03 11:44:21 -06:00
parent 092f283ba4
commit eefcf98086
3 changed files with 7 additions and 8 deletions

View File

@ -73,12 +73,12 @@ extern ${variable.value} ${variable.name};
/* ------------------------------------------------------------------------- */
#undef WOLFTPM2_NO_WOLFCRYPT
#if defined(WOLFTPM_CONF_WOLFCRYPT) && WOLFTPM_CONF_WOLFCRYPT == 0
#define WOLFTPM2_NO_WOLFCRYPT
#define WOLFTPM2_NO_WOLFCRYPT
#endif
#undef USE_HW_SPI_CS
#if defined(WOLFTPM_CONF_HW_SPI) && WOLFTPM_CONF_HW_SPI == 1
#define USE_HW_SPI_CS
#define USE_HW_SPI_CS
#endif
/* ------------------------------------------------------------------------- */

View File

@ -44,12 +44,11 @@ void wolfTPMTest(const void* argument)
wolfSSL_Debugging_ON();
#endif
printf("Running wolfTPM Tests...\n");
printf("Running wolfTPM Wrap Test...\n");
/* Run wolfTPM unit tests */
if (unit_tests(0, NULL))
ret = -1;
/* Run wolfTPM wrap test */
ret = TPM2_Wrapper_Test(NULL);
printf("wolfTPM unit test: Return code %d\n", ret);
printf("wolfTPM wrap test: Return code %d\n", ret);
}

View File

@ -25,7 +25,7 @@
#include <config.h>
#endif
int unit_tests(int argc, char *argv[]);
int TPM2_Wrapper_Test(void* userCtx);
#ifndef SINGLE_THREADED
#include <cmsis_os.h>