1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (c) 2023 Olivier Dion <odion@efficios.com>
# Augment this list incrementally when a shell script passes shellcheck.
#
# All file must be relative to the test directory.
files=(
meta/test_shellcheck
regression/tools/notification/util_event_generator.sh
run.sh
)
TESTDIR=$(dirname "$0")/..
# shellcheck source=../utils/tap/tap.sh
source "$TESTDIR/utils/tap/tap.sh"
function shellcheck_ok() {
shellcheck --external-sources "$1"
ok $? "Checking $1"
}
plan_tests "${#files[@]}"
for f in "${files[@]}";
do
shellcheck_ok "$TESTDIR/$f"
done
|