From 456ed79355426a483646e6d48a75104644954710 Mon Sep 17 00:00:00 2001 From: Tyler Retzlaff Date: Fri, 20 May 2022 03:12:05 -0700 Subject: [PATCH] test/crypto: remove Windows conditional compilation Build the test/crypto harnesses on Windows to allow them to be listed as tests to run. Signed-off-by: Tyler Retzlaff --- app/test/test_cryptodev.c | 4 ---- app/test/test_cryptodev_asym.c | 4 ---- app/test/test_cryptodev_blockcipher.c | 4 ---- app/test/test_cryptodev_security_ipsec.c | 8 ++++---- app/test/test_cryptodev_security_pdcp.c | 4 ---- 5 files changed, 4 insertions(+), 20 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 524019ce0e..38c8ea3d3c 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -3,8 +3,6 @@ * Copyright 2020 NXP */ -#ifndef RTE_EXEC_ENV_WINDOWS - #include #include @@ -16654,5 +16652,3 @@ REGISTER_TEST_COMMAND(cryptodev_nitrox_autotest, test_cryptodev_nitrox); REGISTER_TEST_COMMAND(cryptodev_bcmfs_autotest, test_cryptodev_bcmfs); REGISTER_TEST_COMMAND(cryptodev_cn9k_autotest, test_cryptodev_cn9k); REGISTER_TEST_COMMAND(cryptodev_cn10k_autotest, test_cryptodev_cn10k); - -#endif /* !RTE_EXEC_ENV_WINDOWS */ diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c index 7bd7cde16e..41e9e58346 100644 --- a/app/test/test_cryptodev_asym.c +++ b/app/test/test_cryptodev_asym.c @@ -3,8 +3,6 @@ * Copyright (c) 2019 Intel Corporation */ -#ifndef RTE_EXEC_ENV_WINDOWS - #include #include #include @@ -2268,5 +2266,3 @@ REGISTER_TEST_COMMAND(cryptodev_octeontx_asym_autotest, test_cryptodev_octeontx_asym); REGISTER_TEST_COMMAND(cryptodev_cn9k_asym_autotest, test_cryptodev_cn9k_asym); REGISTER_TEST_COMMAND(cryptodev_cn10k_asym_autotest, test_cryptodev_cn10k_asym); - -#endif /* !RTE_EXEC_ENV_WINDOWS */ diff --git a/app/test/test_cryptodev_blockcipher.c b/app/test/test_cryptodev_blockcipher.c index 494459195c..127e2a53d3 100644 --- a/app/test/test_cryptodev_blockcipher.c +++ b/app/test/test_cryptodev_blockcipher.c @@ -2,8 +2,6 @@ * Copyright(c) 2015-2017 Intel Corporation */ -#ifndef RTE_EXEC_ENV_WINDOWS - #include #include #include @@ -1219,5 +1217,3 @@ free_blockcipher_test_suite(struct unit_test_suite *ts) { free(ts); } - -#endif /* !RTE_EXEC_ENV_WINDOWS */ diff --git a/app/test/test_cryptodev_security_ipsec.c b/app/test/test_cryptodev_security_ipsec.c index 408bd0bc82..6086055af1 100644 --- a/app/test/test_cryptodev_security_ipsec.c +++ b/app/test/test_cryptodev_security_ipsec.c @@ -2,8 +2,6 @@ * Copyright(C) 2021 Marvell. */ -#ifndef RTE_EXEC_ENV_WINDOWS - #include #include #include @@ -17,6 +15,10 @@ #define IV_LEN_MAX 16 +#ifndef IPVERSION +#define IPVERSION 4 +#endif + struct crypto_param_comb alg_list[RTE_DIM(aead_list) + (RTE_DIM(cipher_list) * RTE_DIM(auth_list))]; @@ -1231,5 +1233,3 @@ test_ipsec_pkt_update(uint8_t *pkt, const struct ipsec_test_flags *flags) return 0; } - -#endif /* !RTE_EXEC_ENV_WINDOWS */ diff --git a/app/test/test_cryptodev_security_pdcp.c b/app/test/test_cryptodev_security_pdcp.c index 30d86fb28e..a7641bab7a 100644 --- a/app/test/test_cryptodev_security_pdcp.c +++ b/app/test/test_cryptodev_security_pdcp.c @@ -4,8 +4,6 @@ * Copyright 2018-2019 NXP */ -#ifndef RTE_EXEC_ENV_WINDOWS - #include #include @@ -589,5 +587,3 @@ test_PDCP_PROTO_uplane_decap_all(void) return n - i; }; - -#endif /* !RTE_EXEC_ENV_WINDOWS */ -- 2.39.5