From c235cb62beefd03087e7cfc7f7f55f0c7c6601c9 Mon Sep 17 00:00:00 2001 From: Lena Date: Sat, 1 Aug 2026 00:00:00 +0000 Subject: Enter vmm A QEMU/KVM virtual machine manager in one POSIX shell script. Each VM is a directory of plain files under $VMMDIR, configured by a hand-edited KEY=VALUE file that is parsed rather than sourced, so nothing in it can inject a raw QEMU argument. Control is a QMP FIFO pair inside that directory, guarded by its permissions alone; nothing binds a TCP port. The tests are TAP without a framework and boot real guests where the host allows. --- tests/static | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/static (limited to 'tests/static') diff --git a/tests/static b/tests/static new file mode 100644 index 0000000..192f75b --- /dev/null +++ b/tests/static @@ -0,0 +1,17 @@ +# Static checks on the script itself. + +if syn=$(sh -n "$VMM" 2>&1); then + ok "sh -n is clean" +else + notok "sh -n is clean" "$syn" +fi + +if command -v shellcheck >/dev/null 2>&1; then + if sc=$(shellcheck -s sh "$VMM" "$ROOT/test" "$ROOT"/tests/* 2>&1); then + ok "shellcheck is clean" + else + notok "shellcheck is clean" "$sc" + fi +else + skip 1 "shellcheck not installed" +fi -- cgit v1.2.3