summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cesar/cl/test/Config1
-rw-r--r--cesar/cl/test/src/test.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/cesar/cl/test/Config b/cesar/cl/test/Config
index 1221024089..2c7c85cbed 100644
--- a/cesar/cl/test/Config
+++ b/cesar/cl/test/Config
@@ -1 +1,2 @@
CONFIG_DEBUG_FATAL_CATCH = y
+CONFIG_TRACE = y
diff --git a/cesar/cl/test/src/test.c b/cesar/cl/test/src/test.c
index dacb7d02f3..c313dc05b2 100644
--- a/cesar/cl/test/src/test.c
+++ b/cesar/cl/test/src/test.c
@@ -12,6 +12,7 @@
*/
#include "common/std.h"
#include "lib/bitstream.h"
+#include "lib/trace.h"
#include "cl/test/test.h"
#include "cl/cl_mactotei.h"
#include "mac/common/ntb.h"
@@ -49,6 +50,14 @@ cl_test_init_data_recv (void *user, u8 *buffer, uint length)
ctx->nek_enc = false;
}
+static int
+cl_trace_buffer_dbg_dump_callback (void *user, const char *text,
+ uint text_size)
+{
+ return 0;
+}
+
+
void
cl_test_init (cl_test_t *ctx, u32 seed)
{
@@ -56,6 +65,7 @@ cl_test_init (cl_test_t *ctx, u32 seed)
dbg_assert (ctx);
ctx->mac_store = mac_store_init ();
mac_config_init (&ctx->mac_config);
+ mac_ntb_init ((phy_t *) &phy, &ctx->mac_config);
ctx->mac_config.authenticated = true;
ctx->mac_config.tei = 0xfe;
ctx->mac_config.sta_mac_address = 0xfeffffd71300ull;
@@ -73,6 +83,7 @@ void
cl_test_uninit (cl_test_t *ctx)
{
dbg_assert (ctx);
+ trace_bundle_dump_all ("dbg", cl_trace_buffer_dbg_dump_callback, NULL);
cl_uninit (ctx->cl);
mac_store_uninit (ctx->mac_store);
}