add Whitewood netRandom client library support

This commit is contained in:
Chris Conlon
2016-05-05 15:31:25 -06:00
parent ee21d33794
commit 8f3e1165a1
12 changed files with 329 additions and 7 deletions

View File

@@ -90,6 +90,13 @@ int testsuite_test(int argc, char** argv)
err_sys("Cavium OpenNitroxDevice failed");
#endif /* HAVE_CAVIUM */
#ifdef HAVE_WNR
if (wc_InitNetRandom(wnrConfig, NULL, 5000) != 0) {
err_sys("Whitewood netRandom global config failed");
return -1237;
}
#endif /* HAVE_WNR */
StartTCP();
server_args.argc = argc;
@@ -200,6 +207,12 @@ int testsuite_test(int argc, char** argv)
#ifdef HAVE_CAVIUM
CspShutdown(CAVIUM_DEV_ID);
#endif
#ifdef HAVE_WNR
if (wc_FreeNetRandom() < 0)
err_sys("Failed to free netRandom context");
#endif /* HAVE_WNR */
printf("\nAll tests passed!\n");
return EXIT_SUCCESS;
}