1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb/tests/UNIT/shellcheck/tests.sh
Martin Schwenke 653b35764a ctdb-tests: Add cluster.bash include file
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2019-10-04 09:41:28 +00:00

30 lines
722 B
Bash
Executable File

#!/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"
shellcheck_test -s bash \
"${TEST_SCRIPTS_DIR}/cluster.bash" \
"${TEST_SCRIPTS_DIR}/integration_local_daemons.bash" \
"${TEST_SCRIPTS_DIR}/integration_real_cluster.bash"