test/bonding: fix RSS test when disable RSS
[dpdk.git] / app / test / test_rib.c
index 3dc48fe..06058f8 100644 (file)
@@ -3,14 +3,31 @@
  * Copyright(c) 2019 Intel Corporation
  */
 
+#include "test.h"
+
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
 
 #include <rte_ip.h>
-#include <rte_rib.h>
 
-#include "test.h"
+#ifdef RTE_EXEC_ENV_WINDOWS
+static int
+test_rib(void)
+{
+       printf("rib not supported on Windows, skipping test\n");
+       return TEST_SKIPPED;
+}
+
+static int
+test_slow_rib(void)
+{
+       printf("slow_rib not supported on Windows, skipping test\n");
+       return TEST_SKIPPED;
+}
+#else
+
+#include <rte_rib.h>
 
 typedef int32_t (*rte_rib_test)(void);
 
@@ -363,5 +380,7 @@ test_slow_rib(void)
        return unit_test_suite_runner(&rib_slow_tests);
 }
 
+#endif /* !RTE_EXEC_ENV_WINDOWS */
+
 REGISTER_TEST_COMMAND(rib_autotest, test_rib);
 REGISTER_TEST_COMMAND(rib_slow_autotest, test_slow_rib);