1
0
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:
Martin Schwenke 2012-04-16 14:33:37 +10:00
parent 2c141e6c05
commit f6178fcc9d

View 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