app/test: rework command registration
[dpdk.git] / app / test / test_mempool.c
index 9ea9831..46ad670 100644 (file)
@@ -609,8 +609,4 @@ err:
        return -1;
 }
 
-static struct test_command mempool_cmd = {
-       .command = "mempool_autotest",
-       .callback = test_mempool,
-};
-REGISTER_TEST_COMMAND(mempool_cmd);
+REGISTER_TEST_COMMAND(mempool_autotest, test_mempool);