From 3e81a578e8283c559c42ce844138d8a9fbb17d16 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Thu, 4 Apr 2024 23:55:22 +0100 Subject: [PATCH] Add dev/easyrsa-tools.lib to unit-test as a shellcheck target Signed-off-by: Richard T Bonhomme --- op-test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/op-test.sh b/op-test.sh index 7f6cada9a..9ca4e4a04 100644 --- a/op-test.sh +++ b/op-test.sh @@ -240,6 +240,17 @@ run_shellcheck () { log "easyrsa binary not present, not using shellcheck" fi + # shell-check dev/easyrsa-tools.lib + if [ -e dev/easyrsa-tools.lib ]; then + if "${sc_bin}" -s sh -S warning -x dev/easyrsa-tools.lib; then + log "shellcheck dev/easyrsa-tools.lib completed - ok" + else + log "shellcheck dev/easyrsa-tools.lib completed - FAILED" + fi + else + log "dev/easyrsa-tools.lib not present, not using shellcheck" + fi + # shell-check easyrsa-unit-tests.sh if [ -e easyrsa-unit-tests.sh ]; then if "${sc_bin}" -s sh -S warning -x easyrsa-unit-tests.sh; then