blob: 192f75b9d312388bc084e5039b22e1245b2306b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|