test/security: add inline inbound IPsec cases
[dpdk.git] / app / test / test_lpm.c
index 556f5a6..bceb9ae 100644 (file)
@@ -2,6 +2,18 @@
  * Copyright(c) 2010-2014 Intel Corporation
  */
 
+#include "test.h"
+
+#ifdef RTE_EXEC_ENV_WINDOWS
+static int
+test_lpm(void)
+{
+       printf("lpm not supported on Windows, skipping test\n");
+       return TEST_SKIPPED;
+}
+
+#else
+
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
@@ -10,7 +22,6 @@
 #include <rte_lpm.h>
 #include <rte_malloc.h>
 
-#include "test.h"
 #include "test_xmmt_ops.h"
 
 #define TEST_LPM_ASSERT(cond) do {                                            \
@@ -179,7 +190,7 @@ test3(void)
        status = rte_lpm_add(NULL, ip, depth, next_hop);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -217,7 +228,7 @@ test4(void)
        status = rte_lpm_delete(NULL, ip, depth);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -255,7 +266,7 @@ test5(void)
        status = rte_lpm_lookup(NULL, ip, &next_hop_return);
        TEST_LPM_ASSERT(status < 0);
 
-       /*Create vaild lpm to use in rest of test. */
+       /*Create valid lpm to use in rest of test. */
        lpm = rte_lpm_create(__func__, SOCKET_ID_ANY, &config);
        TEST_LPM_ASSERT(lpm != NULL);
 
@@ -1584,4 +1595,6 @@ test_lpm(void)
        return global_status;
 }
 
+#endif /* !RTE_EXEC_ENV_WINDOWS */
+
 REGISTER_TEST_COMMAND(lpm_autotest, test_lpm);