Skip to content

Commit

Permalink
test: test on fedora aswell
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Mar 19, 2024
1 parent 73aceb3 commit ea2193c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions test/incus-test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ -v EXPORT_IMAGE ]; then
mkdir -p "$IMAGES"
fi

for img in debian/12 ubuntu/22.04; do
for img in $IMGLIST; do
os=$(dirname "$img")

incus delete -f "unify-$os" || true
Expand All @@ -25,9 +25,14 @@ for img in debian/12 ubuntu/22.04; do
sleep 10s

echo "
apt update
apt dist-upgrade -y
apt install curl xz-utils openssh-server -y
if [ -e /usr/bin/apt-get ]; then
apt update
apt dist-upgrade -y
apt install curl xz-utils openssh-server -y
elif [ -e /usr/bin/dnf ]; then
dnf install openssh-server xz-static -y
fi
yes y | sh <(curl -L https://nixos.org/nix/install) --daemon
mkdir -p /root/.ssh
echo \"$(cat $SELF/id_ed25519_dev.pub)\" > /root/.ssh/authorized_keys
Expand Down
4 changes: 2 additions & 2 deletions test/oslist.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

IMGLIST="debian/12 ubuntu/22.04"
OSLIST="debian ubuntu"
IMGLIST="debian/12 ubuntu/22.04 fedora/39"
OSLIST="debian ubuntu fedora"

IMAGES="$SELF/images"

Expand Down

0 comments on commit ea2193c

Please sign in to comment.