app/test: rework command registration
[dpdk.git] / app / test / test_timer_perf.c
index da92473..fa77efb 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "test.h"
 
-#ifdef RTE_LIBRTE_TIMER
 #include <stdio.h>
 #include <unistd.h>
 #include <inttypes.h>
@@ -159,9 +158,4 @@ test_timer_perf(void)
        return 0;
 }
 
-static struct test_command timer_perf_cmd = {
-       .command = "timer_perf_autotest",
-       .callback = test_timer_perf,
-};
-REGISTER_TEST_COMMAND(timer_perf_cmd);
-#endif
+REGISTER_TEST_COMMAND(timer_perf_autotest, test_timer_perf);