X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest%2Ftest_memory.c;h=02ef3cfac0ec19b3260a2bd5fc9a11fd871524d8;hb=942405f9e2f2c22aa817be374ccfe939a72df2ce;hp=6c62de85dba9092f51969a04fe81c47d02d42fba;hpb=727909c5923147d0c7c0091a0f791432fa954431;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);