diff --git a/test/healthcheck.sh b/test/healthcheck.sh index 505b6f1..e527d33 100644 --- a/test/healthcheck.sh +++ b/test/healthcheck.sh @@ -51,6 +51,16 @@ if command -v ip >/dev/null 2>&1; then ip route fi +# nested virtualization is not available on aarch64 +if [ -r /dev/kvm ]; then + ls -l /dev/kvm + test -w /dev/kvm +fi + +if which kvm-ok > /dev/null; then + kvm-ok +fi + if command -v npm >/dev/null 2>&1; then npm ping fi diff --git a/test/setup.sh b/test/setup.sh index 48f4ada..45cbca2 100644 --- a/test/setup.sh +++ b/test/setup.sh @@ -24,7 +24,7 @@ ubuntu | debian) # install packages required by healthchecks apt-get update - apt-get install -y ca-certificates curl gnupg iproute2 iptables iputils-ping util-linux + apt-get install -y ca-certificates cpu-checker curl gnupg iproute2 iptables iputils-ping kmod util-linux # Add Docker's official GPG key install -m 0755 -d /etc/apt/keyrings @@ -53,7 +53,7 @@ ubuntu | debian) ;; alpine) # install packages required by healthchecks - apk add --no-cache bash ca-certificates curl docker iproute2 iputils-ping lsblk util-linux + apk add --no-cache bash ca-certificates curl docker iproute2 iputils-ping kmod lsblk util-linux # create nonroot user for healthchecks adduser --disabled-password --gecos "" nonroot