From 3655cd1e02ce19520fce6363c6c83f7d3ea32413 Mon Sep 17 00:00:00 2001 From: Tuetuopay Date: Thu, 6 Apr 2023 16:27:04 +0200 Subject: [PATCH] tests: use fedora 38 beta with testing repo Now that bpf-linker uses llvm 16, the easiest way is to use Fedora 38 Beta with the testing repos as they have it, without resorting to Rawhide. See https://packages.fedoraproject.org/pkgs/llvm/llvm/. --- test/run.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/run.sh b/test/run.sh index 94600529..a33449eb 100755 --- a/test/run.sh +++ b/test/run.sh @@ -40,7 +40,7 @@ fi # Test Image if [ -z "${AYA_TEST_IMAGE}" ]; then - AYA_TEST_IMAGE="fedora37" + AYA_TEST_IMAGE="fedora38" fi case "${AYA_TEST_IMAGE}" in @@ -59,6 +59,14 @@ download_images() { curl -o "${AYA_IMGDIR}/fedora37.${AYA_GUEST_ARCH}.qcow2" -sSL "${IMAGE_URL}/${IMAGE}" fi ;; + fedora38) + if [ ! -f "${AYA_IMGDIR}/fedora38.${AYA_GUEST_ARCH}.qcow2" ]; then + IMAGE="Fedora-Cloud-Base-38_Beta-1.3.${AYA_GUEST_ARCH}.qcow2" + IMAGE_URL="https://fr2.rpmfind.net/linux/fedora/linux/releases/test/38_Beta/Cloud/${AYA_GUEST_ARCH}/images" + echo "Downloading: ${IMAGE}, this may take a while..." + curl -o "${AYA_IMGDIR}/fedora38.${AYA_GUEST_ARCH}.qcow2" -sSL "${IMAGE_URL}/${IMAGE}" + fi + ;; centos8) if [ ! -f "${AYA_IMGDIR}/centos8.${AYA_GUEST_ARCH}.qcow2" ]; then IMAGE="CentOS-8-GenericCloud-8.4.2105-20210603.0.${AYA_GUEST_ARCH}.qcow2" @@ -181,6 +189,9 @@ EOF echo "VM launched" exec_vm uname -a + echo "Enabling testing repositories" + exec_vm sudo dnf config-manager --set-enabled updates-testing + exec_vm sudo dnf config-manager --set-enabled updates-testing-modular echo "Installing dependencies" exec_vm sudo dnf install -qy bpftool llvm llvm-devel clang clang-devel zlib-devel exec_vm 'curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \