]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_ring_perf.c
app/test: convert all tests to register system
[dpdk.git] / app / test / test_ring_perf.c
index 9ec69329e351499a43fbd7daa661a014ee9c20ee..44dda4dbf6d182d74bfe1813d71a8da91839886e 100644 (file)
@@ -381,7 +381,7 @@ test_bulk_enqueue_dequeue(void)
        }
 }
 
-int
+static int
 test_ring_perf(void)
 {
        struct lcore_pair cores;
@@ -413,3 +413,9 @@ test_ring_perf(void)
        }
        return 0;
 }
+
+static struct test_command ring_perf_cmd = {
+       .command = "ring_perf_autotest",
+       .callback = test_ring_perf,
+};
+REGISTER_TEST_COMMAND(ring_perf_cmd);