diff options
| author | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
| commit | c235cb62beefd03087e7cfc7f7f55f0c7c6601c9 (patch) | |
| tree | 2776f86d9226d55c78e3d735764fcd9ecbe5e08e /tests/static | |
| download | vmm-c235cb62beefd03087e7cfc7f7f55f0c7c6601c9.tar.gz | |
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.
Diffstat (limited to 'tests/static')
| -rw-r--r-- | tests/static | 17 |
1 files changed, 17 insertions, 0 deletions
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 |