mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
tests - add scripts/unit.sh
This will be sourced by all unit tests. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit afdaa5f032938d56ff315d9553cb285ebc413c4c)
This commit is contained in:
parent
2c141e6c05
commit
f6178fcc9d
16
ctdb/tests/scripts/unit.sh
Normal file
16
ctdb/tests/scripts/unit.sh
Normal file
@ -0,0 +1,16 @@
|
||||
# Hey Emacs, this is a -*- shell-script -*- !!! :-)
|
||||
|
||||
. "${TEST_SCRIPTS_DIR}/common.sh"
|
||||
|
||||
# Common variables and functions for CTDB unit tests.
|
||||
|
||||
required_result ()
|
||||
{
|
||||
required_rc="${1:-0}"
|
||||
required_output=$(cat)
|
||||
}
|
||||
|
||||
local="${TEST_SUBDIR}/scripts/local.sh"
|
||||
if [ -r "$local" ] ; then
|
||||
. "$local"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user