Commit 94d22300 authored by Boris Glimcher's avatar Boris Glimcher Committed by Jim Harris
Browse files

test/pkgdep: Remove support for rocky|centos|rhel 8



Change-Id: I43c80d4144dfcb42a6549e299e27a13ee6dfb8b9
Signed-off-by: default avatarBoris Glimcher <Boris.Glimcher@emc.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26596


Reviewed-by: default avatarTomasz Zawadzki <tomasz@tzawadzki.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarMichal Berger <michal.berger@nutanix.com>
parent 2938fae3
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -4,16 +4,6 @@ pre_install() {
		# installation failed.
		install tsocks || echo "Installation of the tsocks package failed, proxy may not be available"
	fi

	if [[ $ID == centos || $ID == rocky ]] && [[ $VERSION_ID == 8* ]]; then
		sudo "$package_manager" update -y --refresh
	elif [[ $ID == centos ]] && ((VERSION_ID == 7)); then
		install nbd || {
			install wget
			wget -O nbd.rpm https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/nbd-3.24-1.el7.x86_64.rpm
			install nbd.rpm
		}
	fi
}

# Add packages for TLS testing against kernel
+3 −14
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ packages=(
	smartmontools
	socat
	sshfs
	sshpass
	systemd-devel
	targetcli
	valgrind
@@ -76,18 +77,12 @@ elif [[ $OSID == rocky ]]; then
	packages+=(avahi-tools) # from the devel repo
elif [[ $OSID == centos ]]; then
	packages+=(avahi)
	# 8 comes with a kernel which does not support btrfs.
	# 8 does not come with any common repos that include avahi-tools.
	if [[ $OSVERSION == 7* ]]; then
		packages+=(avahi-tools)
		packages+=(btrfs-progs)
	fi
elif [[ $OSID == rhel ]]; then
	packages+=(avahi)
	if [[ $OSVERSION == 9* ]]; then
		packages+=("https://dl.rockylinux.org/pub/rocky/9/devel/x86_64/os/Packages/i/isns-utils-devel-0.101-4.el9.x86_64.rpm")
	elif [[ $OSVERSION == 8* ]]; then
		packages+=("https://dl.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/isns-utils-devel-0.99-1.el8.x86_64.rpm")
	elif [[ $OSVERSION == 10* ]]; then
		packages+=("https://dl.rockylinux.org/pub/rocky/10/devel/x86_64/os/Packages/i/isns-utils-devel-0.103-1.el10.x86_64.rpm")
	fi
	# FIXME: This does not fit here, but there's no sane alternative. Using RPMs from other sources will fail to meet
	# dependencies anyway.
@@ -99,12 +94,6 @@ if [[ $OSID != rhel ]]; then
	packages+=(python3-pandas)
fi

if [[ $OSID == centos && $OSVERSION == 8* ]]; then
	packages+=("https://rpmfind.net/linux/centos/8-stream/AppStream/x86_64/os/Packages/sshpass-1.09-4.el8.x86_64.rpm")
else
	packages+=(sshpass)
fi

if [[ $OSID == fedora ]] && ((OSVERSION == 34)); then
	packages+=(bpftrace)
fi