aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/sanity-test.sh13
-rwxr-xr-xscripts/test-install.sh14
2 files changed, 25 insertions, 2 deletions
diff --git a/scripts/sanity-test.sh b/scripts/sanity-test.sh
index 977f018..0b338a3 100755
--- a/scripts/sanity-test.sh
+++ b/scripts/sanity-test.sh
@@ -265,12 +265,21 @@ run_sanity_tests() {
"systemctl is-enabled NetworkManager 2>/dev/null || echo 'available'" \
""
- # Test 8: Kernel version (LTS)
+ # Test 8: Avahi mDNS for network discovery
+ run_test "Avahi daemon enabled" \
+ "systemctl is-enabled avahi-daemon" \
+ "enabled"
+
+ run_test "Avahi daemon running" \
+ "systemctl is-active avahi-daemon" \
+ "active"
+
+ # Test 9: Kernel version (LTS)
run_test "Running LTS kernel" \
"uname -r" \
"lts"
- # Test 9: archsetup directory present
+ # Test 10: archsetup directory present
run_test "archsetup directory present" \
"test -d /code/archsetup && echo 'exists'" \
"exists"
diff --git a/scripts/test-install.sh b/scripts/test-install.sh
index f9b574e..de308f2 100755
--- a/scripts/test-install.sh
+++ b/scripts/test-install.sh
@@ -268,6 +268,20 @@ verify_install() {
else
warn "Genesis snapshot not found (may not have completed)"
fi
+
+ # Check Avahi mDNS packages installed on target system
+ if ssh_cmd "arch-chroot /mnt pacman -Q avahi nss-mdns >/dev/null 2>&1"; then
+ info "Avahi packages installed"
+ else
+ warn "Avahi packages not found on installed system"
+ fi
+
+ # Check avahi-daemon enabled on target system
+ if ssh_cmd "arch-chroot /mnt systemctl is-enabled avahi-daemon >/dev/null 2>&1"; then
+ info "Avahi daemon enabled"
+ else
+ warn "Avahi daemon not enabled on installed system"
+ fi
else
# For no-SSH tests, check serial console output
if grep -q "Installation complete" "$SERIAL_LOG" 2>/dev/null; then