tile: fix build
[dpdk.git] / app / test / test_meter.c
index 226b231..26b0565 100644 (file)
@@ -39,8 +39,6 @@
 
 #include "test.h"
 
-#ifdef RTE_LIBRTE_METER
-
 #include <rte_cycles.h>
 #include <rte_meter.h>
 
@@ -471,7 +469,7 @@ tm_test_trtcm_color_aware_check(void)
 /**
  * test main entrance for library meter
  */
-int
+static int
 test_meter(void)
 {
        if(tm_test_srtcm_config() != 0 )
@@ -496,12 +494,4 @@ test_meter(void)
 
 }
 
-#else /* RTE_LIBRTE_METER */
-
-int
-test_meter(void)
-{
-       printf("The meter library is not included in this build\n");
-       return 0;
-}
-#endif /* RTE_LIBRTE_METER */
+REGISTER_TEST_COMMAND(meter_autotest, test_meter);