app/test: rework command registration
[dpdk.git] / app / test / test_cycles.c
index d8fa517..f6c043a 100644 (file)
@@ -89,8 +89,4 @@ test_cycles(void)
        return 0;
 }
 
-static struct test_command cycles_cmd = {
-       .command = "cycles_autotest",
-       .callback = test_cycles,
-};
-REGISTER_TEST_COMMAND(cycles_cmd);
+REGISTER_TEST_COMMAND(cycles_autotest, test_cycles);