X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_memory.c;h=02ef3cfac0ec19b3260a2bd5fc9a11fd871524d8;hb=7b21cadfd6c374dbf33128887875f5025a5ee28a;hp=6c62de85dba9092f51969a04fe81c47d02d42fba;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git diff --git a/app/test/test_memory.c b/app/test/test_memory.c index 6c62de85db..02ef3cfac0 100644 --- a/app/test/test_memory.c +++ b/app/test/test_memory.c @@ -51,7 +51,7 @@ * - Try to read all memory; it should not segfault. */ -int +static int test_memory(void) { uint64_t s; @@ -84,3 +84,9 @@ test_memory(void) return 0; } + +static struct test_command memory_cmd = { + .command = "memory_autotest", + .callback = test_memory, +}; +REGISTER_TEST_COMMAND(memory_cmd);