aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-09-15 15:50:52 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-09-15 15:50:52 +0200
commit3dd313a7c20772ef34af4a43fb3673df1e7d00cf (patch)
treec2f4dc125209108afa04610cd1c1e31413a2577d /tests
parentba04b5b1d74c285e12fc3d24524cb8f30f108767 (diff)
Add RHEL 9
Diffstat (limited to 'tests')
-rw-r--r--tests/installer/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/installer/default.nix b/tests/installer/default.nix
index a3a7f85f9..eab103562 100644
--- a/tests/installer/default.nix
+++ b/tests/installer/default.nix
@@ -105,6 +105,17 @@ let
postBoot = disableSELinux;
};
+ "rhel-9" = {
+ image = import <nix/fetchurl.nix> {
+ url = https://app.vagrantup.com/generic/boxes/rhel9/versions/4.1.12/providers/libvirt.box;
+ hash = "sha256-vL/FbB3kK1rcSaR627nWmScYGKGk4seSmAdq6N5diMg=";
+ };
+ rootDisk = "box.img";
+ system = "x86_64-linux";
+ postBoot = disableSELinux;
+ extraQemuOpts = "-cpu Westmere-v2";
+ };
+
};
makeTest = imageName: testName:
@@ -128,7 +139,7 @@ let
qemu-img create -b ./${image.rootDisk} -F "$image_type" -f qcow2 ./disk.qcow2
- extra_qemu_opts=
+ extra_qemu_opts="${image.extraQemuOpts}"
# Add the config disk, required by the Ubuntu images.
config_drive=$(echo *configdrive.vmdk || true)