]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_memcpy.c
app/test: convert all tests to register system
[dpdk.git] / app / test / test_memcpy.c
index ee0b0da92a9ca0081588239dc6631e172bd47ff0..56b8e1e8e2f27a0f71130bbf7f0f76a38e3d9375 100644 (file)
@@ -210,7 +210,7 @@ func_test(void)
        return 0;
 }
 
-int
+static int
 test_memcpy(void)
 {
        int ret;
@@ -223,3 +223,9 @@ test_memcpy(void)
                return -1;
        return 0;
 }
+
+static struct test_command memcpy_cmd = {
+       .command = "memcpy_autotest",
+       .callback = test_memcpy,
+};
+REGISTER_TEST_COMMAND(memcpy_cmd);