Files
omarchycn/test/shell.d/windows-vm-test.sh

17 lines
500 B
Bash

#!/bin/bash
set -euo pipefail
source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh"
windows_vm_command="$ROOT/bin/omarchy-windows-vm"
rg -q '^ restart: "no"$' "$windows_vm_command" ||
fail "Windows VM uses manual startup by default"
pass "Windows VM uses manual startup by default"
if rg -q '^ restart: unless-stopped$' "$windows_vm_command"; then
fail "Windows VM does not restart automatically at boot"
fi
pass "Windows VM does not restart automatically at boot"