app/test: convert all tests to register system
[dpdk.git] / app / test / test_tailq.c
index c9b53ee..4d32c6f 100644 (file)
@@ -153,7 +153,7 @@ test_tailq_deprecated(void)
        return 0;
 }
 
-int
+static int
 test_tailq(void)
 {
        int ret = 0;
@@ -162,3 +162,9 @@ test_tailq(void)
        ret |= test_tailq_deprecated();
        return ret;
 }
+
+static struct test_command tailq_cmd = {
+       .command = "tailq_autotest",
+       .callback = test_tailq,
+};
+REGISTER_TEST_COMMAND(tailq_cmd);