app/test: rework command registration
[dpdk.git] / app / test / test_meter.c
index 215cbf8..26b0565 100644 (file)
@@ -39,8 +39,6 @@
 
 #include "test.h"
 
-#ifdef RTE_LIBRTE_METER
-
 #include <rte_cycles.h>
 #include <rte_meter.h>
 
@@ -496,9 +494,4 @@ test_meter(void)
 
 }
 
-static struct test_command meter_cmd = {
-       .command = "meter_autotest",
-       .callback = test_meter,
-};
-REGISTER_TEST_COMMAND(meter_cmd);
-#endif /* RTE_LIBRTE_METER */
+REGISTER_TEST_COMMAND(meter_autotest, test_meter);