app/test: convert all tests to register system
[dpdk.git] / app / test / test_pmd_ring.c
index 19ad0e9..6364495 100644 (file)
@@ -405,7 +405,7 @@ test_pmd_ring_pair_create_attach(void)
        return 0;
 }
 
-int
+static int
 test_pmd_ring(void)
 {
        mp = rte_mempool_create("mbuf_pool", NB_MBUF,
@@ -445,13 +445,10 @@ test_pmd_ring(void)
        return 0;
 }
 
-#else
-
-int
-test_pmd_ring(void)
-{
-       return 0;
-}
-
+static struct test_command ring_pmd_cmd = {
+       .command = "ring_pmd_autotest",
+       .callback = test_pmd_ring,
+};
+REGISTER_TEST_COMMAND(ring_pmd_cmd);
 #endif