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