don't compile the timer autotests unless timer library is turned on in
the compile-time configuration.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "test.h"
+
+#ifdef RTE_LIBRTE_TIMER
/*
* Timer
* =====
#include <rte_random.h>
#include <rte_malloc.h>
-#include "test.h"
#define TEST_DURATION_S 20 /* in seconds */
#define NB_TIMER 4
return 0;
}
+
+#else
+
+int
+test_timer(void)
+{
+ return 0;
+}
+
+#endif
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "test.h"
+
+#ifdef RTE_LIBRTE_TIMER
#include <stdio.h>
#include <unistd.h>
#include <inttypes.h>
#include <rte_lcore.h>
#include <rte_random.h>
#include <rte_malloc.h>
-#include "test.h"
#define MAX_ITERATIONS 1000000
return 0;
}
+
+#else
+
+int
+test_timer_perf(void)
+{
+ return 0;
+}
+
+#endif