test/security: add inline IPsec reassembly cases
[dpdk.git] / app / test / test_rawdev.c
index 7e2fb2c..3c780e3 100644 (file)
@@ -1,16 +1,27 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  * Copyright 2017 NXP
  */
+
+#include "test.h"
+
 #include <rte_common.h>
 #include <rte_mbuf.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_dev.h>
+
+#ifdef RTE_EXEC_ENV_WINDOWS
+static int
+test_rawdev_selftests(void)
+{
+       printf("rawdev not supported on Windows, skipping test\n");
+       return TEST_SKIPPED;
+}
+#else
+
 #include <rte_rawdev.h>
 #include <rte_bus_vdev.h>
 
-#include "test.h"
-
 static int
 test_rawdev_selftest_impl(const char *pmd, const char *opts)
 {
@@ -54,24 +65,6 @@ test_rawdev_selftests(void)
        return ret;
 }
 
-REGISTER_TEST_COMMAND(rawdev_autotest, test_rawdev_selftests);
+#endif /* !RTE_EXEC_ENV_WINDOWS */
 
-static int
-test_rawdev_selftest_ioat(void)
-{
-       const int count = rte_rawdev_count();
-       int i;
-
-       for (i = 0; i < count; i++) {
-               struct rte_rawdev_info info = { .dev_private = NULL };
-               if (rte_rawdev_info_get(i, &info, 0) == 0 &&
-                               strstr(info.driver_name, "ioat") != NULL)
-                       return rte_rawdev_selftest(i) == 0 ?
-                                       TEST_SUCCESS : TEST_FAILED;
-       }
-
-       printf("No IOAT rawdev found, skipping tests\n");
-       return TEST_SKIPPED;
-}
-
-REGISTER_TEST_COMMAND(ioat_rawdev_autotest, test_rawdev_selftest_ioat);
+REGISTER_TEST_COMMAND(rawdev_autotest, test_rawdev_selftests);