Skip to content

Commit b95956d

Browse files
add auth login and logout tests
1 parent aa13be1 commit b95956d

3 files changed

Lines changed: 887 additions & 47 deletions

File tree

test/wh_test.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include "wh_test_keywrap.h"
4141
#include "wh_test_multiclient.h"
4242
#include "wh_test_log.h"
43+
#include "wh_test_auth.h"
4344

4445
#if defined(WOLFHSM_CFG_CERTIFICATE_MANAGER)
4546
#include "wh_test_cert.h"
@@ -87,6 +88,9 @@ int whTest_Unit(void)
8788
WH_TEST_ASSERT(0 == whTest_Comm());
8889
WH_TEST_ASSERT(0 == whTest_ClientServer());
8990

91+
/* Auth tests */
92+
WH_TEST_ASSERT(0 == whTest_Auth());
93+
9094
#ifndef WOLFHSM_CFG_NO_CRYPTO
9195
/* Crypto Tests */
9296
WH_TEST_ASSERT(0 == whTest_Crypto());
@@ -113,7 +117,6 @@ int whTest_Unit(void)
113117
#endif
114118

115119
#endif /* !WOLFHSM_CFG_NO_CRYPTO */
116-
117120
return 0;
118121
}
119122
#endif /* WOLFHSM_CFG_ENABLE_CLIENT && WOLFHSM_CFG_ENABLE_SERVER */

0 commit comments

Comments
 (0)