app/test: convert all tests to register system
[dpdk.git] / app / test / test_common.c
index 628201b..4b71e7b 100644 (file)
@@ -158,7 +158,7 @@ test_align(void)
        return 0;
 }
 
-int
+static int
 test_common(void)
 {
        int ret = 0;
@@ -168,3 +168,9 @@ test_common(void)
 
        return ret;
 }
+
+static struct test_command common_cmd = {
+       .command = "common_autotest",
+       .callback = test_common,
+};
+REGISTER_TEST_COMMAND(common_cmd);