Skip to content

Commit 3a91704

Browse files
committed
nvm: add revocation and nvm flag tests
1 parent d6d8311 commit 3a91704

File tree

5 files changed

+828
-5
lines changed

5 files changed

+828
-5
lines changed

examples/posix/wh_posix_server/wolfhsm_cfg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#define WOLFHSM_CFG_SERVER_KEYCACHE_COUNT 9
4242
#define WOLFHSM_CFG_SERVER_KEYCACHE_SIZE 1024
4343
#define WOLFHSM_CFG_SERVER_KEYCACHE_BIG_BUFSIZE 4096
44+
#define WOLFHSM_CFG_SERVER_KEYCACHE_BIG_COUNT 5
4445

4546
#define WOLFHSM_CFG_SERVER_DMAADDR_COUNT 8
4647
#define WOLFHSM_CFG_SERVER_CUSTOMCB_COUNT 6

test/config/wolfhsm_cfg.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,7 @@
6868
/* Test log-based NVM flash backend */
6969
#define WOLFHSM_CFG_SERVER_NVM_FLASH_LOG
7070

71+
/* Allow persistent NVM artifacts in tests */
72+
#define WOLFHSM_CFG_TEST_ALLOW_PERSISTENT_NVM_ARTIFACTS
73+
7174
#endif /* WOLFHSM_CFG_H_ */

test/wh_test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ int whTest_Unit(void)
7979

8080
#endif /* WOLFHSM_CFG_CERTIFICATE_MANAGER && !WOLFHSM_CFG_NO_CRYPTO */
8181

82-
8382
/* Comm tests */
8483
WH_TEST_ASSERT(0 == whTest_Comm());
8584
WH_TEST_ASSERT(0 == whTest_ClientServer());

0 commit comments

Comments
 (0)