autopackage: Test RPM build against RPMed DPDK

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: If7c2d2b4b09bb05ee42f78e01ef4c68a0810d2cb
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8388
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: <tomasz.rochumski@intel.com>
This commit is contained in:
Michal Berger 2021-06-16 10:43:48 +02:00 committed by Tomasz Zawadzki
parent 2e4466d0f1
commit f6ab6c09e3

View File

@ -21,7 +21,7 @@ function build_rpms() (
unset -v LD_LIBRARY_PATH
install_uninstall_rpms() {
rpms=("$builddir/rpm/x86_64/"spdk{,-devel,{,-dpdk}-libs}-$version-1.x86_64.rpm)
rpms=("$builddir/rpm/x86_64/"*.rpm)
sudo rpm -i "${rpms[@]}"
rpms=("${rpms[@]##*/}") rpms=("${rpms[@]%.rpm}")
@ -36,9 +36,16 @@ function build_rpms() (
install_uninstall_rpms
}
build_rpm_with_rpmed_dpdk() {
sudo dnf install -y dpdk-devel
build_rpm --with-shared --with-dpdk
}
version="test_shared"
builddir=$SPDK_TEST_STORAGE/test-rpm
run_test "build_shared_rpm" build_rpm --with-shared
run_test "build_shared_rpm_with_rpmed_dpdk" build_rpm_with_rpmed_dpdk
if [[ -n $SPDK_TEST_NATIVE_DPDK ]]; then
version="test_shared_native_dpdk"