]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_logs.c
app/test: convert all tests to register system
[dpdk.git] / app / test / test_logs.c
index 67daa5b963fc93c8d1cda0d7422bc7edefb113ad..2063c74ca335056c04af66a1e5cbeb78a1ed3ebd 100644 (file)
@@ -59,7 +59,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 +90,9 @@ test_logs(void)
 
        return 0;
 }
+
+static struct test_command logs_cmd = {
+       .command = "logs_autotest",
+       .callback = test_logs,
+};
+REGISTER_TEST_COMMAND(logs_cmd);