test/security: add more inline IPsec functional cases
[dpdk.git] / app / test / test_pie.c
index 632d4b0..a3c0f97 100644 (file)
@@ -2,6 +2,33 @@
  * Copyright(c) 2010-2014 Intel Corporation
  */
 
+#include "test.h"
+
+#ifdef RTE_EXEC_ENV_WINDOWS
+
+static int
+test_pie(void)
+{
+       printf("pie not supported on Windows, skipping test\n");
+       return TEST_SKIPPED;
+}
+
+static int
+test_pie_perf(void)
+{
+       printf("pie_perf not supported on Windows, skipping test\n");
+       return TEST_SKIPPED;
+}
+
+static int
+test_pie_all(void)
+{
+       printf("pie_all not supported on Windows, skipping test\n");
+       return TEST_SKIPPED;
+}
+
+#else
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -12,8 +39,6 @@
 #include <time.h>
 #include <math.h>
 
-#include "test.h"
-
 #include <rte_pie.h>
 
 #ifdef __INTEL_COMPILER
@@ -1060,6 +1085,8 @@ test_pie_all(void)
        return tell_the_result(num_tests, num_pass);
 }
 
+#endif /* !RTE_EXEC_ENV_WINDOWS */
+
 REGISTER_TEST_COMMAND(pie_autotest, test_pie);
 REGISTER_TEST_COMMAND(pie_perf, test_pie_perf);
 REGISTER_TEST_COMMAND(pie_all, test_pie_all);