app/test: convert all tests to register system
[dpdk.git] / app / test / test_ring.c
index be588f2..2cd8e77 100644 (file)
@@ -1322,7 +1322,7 @@ fail_test:
        return ret;
 }
 
-int
+static int
 test_ring(void)
 {
        /* some more basic operations */
@@ -1392,3 +1392,9 @@ test_ring(void)
 
        return 0;
 }
+
+static struct test_command ring_cmd = {
+       .command = "ring_autotest",
+       .callback = test_ring,
+};
+REGISTER_TEST_COMMAND(ring_cmd);