app/test: convert all tests to register system
[dpdk.git] / app / test / test_logs.c
index 67daa5b..2063c74 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);