mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
ctdb-tests: Add shellcheck test for some test scripts and includes
These files now pass, so we might as well keep them in good shape. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
027b7ca003
commit
da33fb27ab
24
ctdb/tests/shellcheck/tests.sh
Executable file
24
ctdb/tests/shellcheck/tests.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
||||
|
||||
define_test "tests"
|
||||
|
||||
if "$CTDB_TESTS_ARE_INSTALLED" ; then
|
||||
run_tests="${CTDB_SCRIPTS_TESTS_BIN_DIR}/ctdb_run_tests"
|
||||
local_daemons="${CTDB_SCRIPTS_TESTS_BIN_DIR}/ctdb_local_daemons"
|
||||
else
|
||||
run_tests="${CTDB_TEST_DIR}/run_tests.sh"
|
||||
local_daemons="${CTDB_TEST_DIR}/local_daemons.sh"
|
||||
fi
|
||||
|
||||
# Scripts
|
||||
shellcheck_test \
|
||||
"$run_tests" \
|
||||
"$local_daemons" \
|
||||
"${TEST_SCRIPTS_DIR}/test_wrap"
|
||||
|
||||
# Includes
|
||||
shellcheck_test -s sh \
|
||||
"${TEST_SCRIPTS_DIR}/common.sh" \
|
||||
"${TEST_SCRIPTS_DIR}/script_install_paths.sh"
|
Loading…
x
Reference in New Issue
Block a user