From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3146345FE4; Mon, 6 Jan 2025 17:46:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1A70D40A6D; Mon, 6 Jan 2025 17:45:58 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 0A794406BB for ; Mon, 6 Jan 2025 17:45:55 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 602C2206AB92; Mon, 6 Jan 2025 08:45:54 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 602C2206AB92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1736181954; bh=kxn5yMoio7IQy80YH+fWZoW4tXtEkQhpN5G9oCccWsM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mzgdbXCznTR7zOwlVfoyKmmkKvj/b1Jb/6Ga/7kcob7xBzRGpxkIK0Asg6PxM7kF7 ndHAFE3KyEJLF+E6R7aOZniiEHUG9EL+Pd6y1J1bViKBigK1eMUmF/0TxqyQsXHTOv nOgOjIt2CSaEe8m6AcX5UPODbFDxCRQupmFayb6g= From: Andre Muezerie To: Konstantin Ananyev , Vladimir Medvedkin , Akhil Goyal , Anoob Joseph Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH 2/2] app/test: enable ipsec-related tests Date: Mon, 6 Jan 2025 08:45:48 -0800 Message-Id: <1736181948-8907-3-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1736181948-8907-1-git-send-email-andremue@linux.microsoft.com> References: <1736181948-8907-1-git-send-email-andremue@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Removed ifdefs which were bypassing the ipsec tests on Windows. Removed "return" from void function to avoid warning on MSVC. Signed-off-by: Andre Muezerie --- app/test/test_ipsec.c | 17 ++--------------- app/test/test_ipsec_perf.c | 13 ------------- app/test/test_ipsec_sad.c | 13 ------------- app/test/test_security_inline_proto.c | 26 -------------------------- 4 files changed, 2 insertions(+), 67 deletions(-) diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c index ac63c3b6d3..b0e4384d0b 100644 --- a/app/test/test_ipsec.c +++ b/app/test/test_ipsec.c @@ -17,17 +17,6 @@ #include #include #include - -#ifdef RTE_EXEC_ENV_WINDOWS -static int -test_ipsec(void) -{ - printf("ipsec not supported on Windows, skipping test\n"); - return TEST_SKIPPED; -} - -#else - #include #include #include @@ -1185,9 +1174,9 @@ destroy_session(struct ipsec_unitest_params *ut, uint8_t crypto_dev, uint32_t j) { if (ut->ss[j].type == RTE_SECURITY_ACTION_TYPE_NONE) - return destroy_crypto_session(ut, crypto_dev, j); + destroy_crypto_session(ut, crypto_dev, j); else - return destroy_dummy_sec_session(ut, j); + destroy_dummy_sec_session(ut, j); } static void @@ -2615,6 +2604,4 @@ test_ipsec(void) return unit_test_suite_runner(&ipsec_testsuite); } -#endif /* !RTE_EXEC_ENV_WINDOWS */ - REGISTER_FAST_TEST(ipsec_autotest, true, true, test_ipsec); diff --git a/app/test/test_ipsec_perf.c b/app/test/test_ipsec_perf.c index a32a2086e9..d609bae57e 100644 --- a/app/test/test_ipsec_perf.c +++ b/app/test/test_ipsec_perf.c @@ -10,17 +10,6 @@ #include #include #include - -#ifdef RTE_EXEC_ENV_WINDOWS -static int -test_libipsec_perf(void) -{ - printf("ipsec_perf not supported on Windows, skipping test\n"); - return TEST_SKIPPED; -} - -#else - #include #include @@ -629,6 +618,4 @@ test_libipsec_perf(void) return TEST_SUCCESS; } -#endif /* !RTE_EXEC_ENV_WINDOWS */ - REGISTER_PERF_TEST(ipsec_perf_autotest, test_libipsec_perf); diff --git a/app/test/test_ipsec_sad.c b/app/test/test_ipsec_sad.c index 642643eb63..378ba3f871 100644 --- a/app/test/test_ipsec_sad.c +++ b/app/test/test_ipsec_sad.c @@ -8,17 +8,6 @@ #include #include #include - -#ifdef RTE_EXEC_ENV_WINDOWS -static int -test_ipsec_sad(void) -{ - printf("ipsec_sad not supported on Windows, skipping test\n"); - return TEST_SKIPPED; -} - -#else - #include #include @@ -897,6 +886,4 @@ test_ipsec_sad(void) return unit_test_suite_runner(&ipsec_sad_tests); } -#endif /* !RTE_EXEC_ENV_WINDOWS */ - REGISTER_TEST_COMMAND(ipsec_sad_autotest, test_ipsec_sad); diff --git a/app/test/test_security_inline_proto.c b/app/test/test_security_inline_proto.c index 480469f672..f085ec716f 100644 --- a/app/test/test_security_inline_proto.c +++ b/app/test/test_security_inline_proto.c @@ -14,30 +14,6 @@ #include "test_security_inline_proto_vectors.h" #include "test_security_proto.h" -#ifdef RTE_EXEC_ENV_WINDOWS -static int -test_inline_ipsec(void) -{ - printf("Inline ipsec not supported on Windows, skipping test\n"); - return TEST_SKIPPED; -} - -static int -test_event_inline_ipsec(void) -{ - printf("Event inline ipsec not supported on Windows, skipping test\n"); - return TEST_SKIPPED; -} - -static int -test_inline_ipsec_sg(void) -{ - printf("Inline ipsec SG not supported on Windows, skipping test\n"); - return TEST_SKIPPED; -} - -#else - #include #include #include @@ -3619,8 +3595,6 @@ test_event_inline_ipsec(void) return unit_test_suite_runner(&inline_ipsec_testsuite); } -#endif /* !RTE_EXEC_ENV_WINDOWS */ - REGISTER_TEST_COMMAND(inline_ipsec_autotest, test_inline_ipsec); REGISTER_TEST_COMMAND(inline_ipsec_sg_autotest, test_inline_ipsec_sg); REGISTER_TEST_COMMAND(event_inline_ipsec_autotest, test_event_inline_ipsec); -- 2.47.0.vfs.0.3