Skip to content

Commit 52a7269

Browse files
add auth login and logout tests
1 parent 6ad5dde commit 52a7269

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
@@ -39,6 +39,7 @@
3939
#include "wh_test_keywrap.h"
4040
#include "wh_test_multiclient.h"
4141
#include "wh_test_log.h"
42+
#include "wh_test_auth.h"
4243

4344
#if defined(WOLFHSM_CFG_CERTIFICATE_MANAGER)
4445
#include "wh_test_cert.h"
@@ -83,6 +84,9 @@ int whTest_Unit(void)
8384
WH_TEST_ASSERT(0 == whTest_Comm());
8485
WH_TEST_ASSERT(0 == whTest_ClientServer());
8586

87+
/* Auth tests */
88+
WH_TEST_ASSERT(0 == whTest_Auth());
89+
8690
#ifndef WOLFHSM_CFG_NO_CRYPTO
8791
/* Crypto Tests */
8892
WH_TEST_ASSERT(0 == whTest_Crypto());
@@ -109,7 +113,6 @@ int whTest_Unit(void)
109113
#endif
110114

111115
#endif /* !WOLFHSM_CFG_NO_CRYPTO */
112-
113116
return 0;
114117
}
115118
#endif /* WOLFHSM_CFG_ENABLE_CLIENT && WOLFHSM_CFG_ENABLE_SERVER */

0 commit comments

Comments
 (0)