diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-20 00:04:25 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-20 00:04:25 -0600 |
| commit | 9c201f119d47f0349d6fc27da88576e9306309d8 (patch) | |
| tree | 57c3186e43034fe22f76a07edfe71df90adb4f17 /scripts/sanity-test.sh | |
| parent | edd7c9a000f2c19e3a00e8ed10a53ed73fd31cbc (diff) | |
| download | archangel-9c201f119d47f0349d6fc27da88576e9306309d8.tar.gz archangel-9c201f119d47f0349d6fc27da88576e9306309d8.zip | |
Add Avahi mDNS validation to test scripts
sanity-test.sh (live ISO):
- Check avahi-daemon is enabled
- Check avahi-daemon is running
test-install.sh (installed system):
- Check avahi and nss-mdns packages installed
- Check avahi-daemon service enabled
Diffstat (limited to 'scripts/sanity-test.sh')
| -rwxr-xr-x | scripts/sanity-test.sh | 13 |
1 files changed, 11 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" |
