X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest%2Ftest_logs.c;h=18a3b6aa386c8959aa8ae8c0343db75fe92c5eda;hb=43a942393d1795fa303b490a81bd943970fe9a71;hp=67daa5b963fc93c8d1cda0d7422bc7edefb113ad;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git diff --git a/app/test/test_logs.c b/app/test/test_logs.c index 67daa5b963..18a3b6aa38 100644 --- a/app/test/test_logs.c +++ b/app/test/test_logs.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include #include @@ -59,7 +58,7 @@ * - Send logs with different types and levels, some should not be displayed. */ -int +static int test_logs(void) { /* enable these logs type */ @@ -90,3 +89,9 @@ test_logs(void) return 0; } + +static struct test_command logs_cmd = { + .command = "logs_autotest", + .callback = test_logs, +}; +REGISTER_TEST_COMMAND(logs_cmd);