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 <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15865
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
Tomasz Zawadzki 2022-12-09 14:44:42 +01:00
parent 32e6ffb55c
commit fe24da164a

View File

@ -222,6 +222,16 @@ function build_native_dpdk() {
cd "$orgdir" 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() { function make_fail_cleanup() {
if [ -d $out/scan-build-tmp ]; then if [ -d $out/scan-build-tmp ]; then
scanoutput=$(ls -1 $out/scan-build-tmp/) scanoutput=$(ls -1 $out/scan-build-tmp/)
@ -342,7 +352,7 @@ function build_doc() {
function autobuild_test_suite() { function autobuild_test_suite() {
run_test "autobuild_check_format" ./scripts/check_format.sh 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_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 if [[ $SPDK_TEST_AUTOBUILD == 'full' ]]; then
run_test "autobuild_external_code" $rootdir/test/external_code/test_make.sh $rootdir run_test "autobuild_external_code" $rootdir/test/external_code/test_make.sh $rootdir
./configure $config_params --without-shared ./configure $config_params --without-shared