From fe24da164ac3f4535b64d72002786ad67580fdc1 Mon Sep 17 00:00:00 2001 From: Tomasz Zawadzki Date: Fri, 9 Dec 2022 14:44:42 +0100 Subject: [PATCH] autobuild.sh: add test for DPDK PCI API with any DPDK version There is set of "*_vs_DPDK" jobs running on nightly basis, their purpose is to verify version compatibility between SPDK and DPDK. That includes latest DPDK too. This patch modifies the path passed to check_dpdk_pci_api.sh, to be any DPDK under test. Change-Id: Id059e60a0260e7dc11e61445389f2afed0f78f1f Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15865 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Konrad Sztyber --- autobuild.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/autobuild.sh b/autobuild.sh index 04da30aaa..880ac104e 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -222,6 +222,16 @@ function build_native_dpdk() { cd "$orgdir" } +function check_dpdk_pci_api() { + local dpdk_dir + + if [[ -n "$SPDK_TEST_NATIVE_DPDK" ]]; then + dpdk_dir=$(dirname "$SPDK_RUN_EXTERNAL_DPDK") + fi + + "$rootdir/scripts/env_dpdk/check_dpdk_pci_api.sh" check "$dpdk_dir" +} + function make_fail_cleanup() { if [ -d $out/scan-build-tmp ]; then scanoutput=$(ls -1 $out/scan-build-tmp/) @@ -342,7 +352,7 @@ function build_doc() { function autobuild_test_suite() { run_test "autobuild_check_format" ./scripts/check_format.sh run_test "autobuild_check_so_deps" $rootdir/test/make/check_so_deps.sh $1 - run_test "autobuild_check_dpdk_pci_api" $rootdir/scripts/env_dpdk/check_dpdk_pci_api.sh + run_test "autobuild_check_dpdk_pci_api" check_dpdk_pci_api if [[ $SPDK_TEST_AUTOBUILD == 'full' ]]; then run_test "autobuild_external_code" $rootdir/test/external_code/test_make.sh $rootdir ./configure $config_params --without-shared