1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/tests/scripts/unit.sh
Martin Schwenke f6178fcc9d 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)
2012-04-16 14:57:45 +10:00

17 lines
305 B
Bash

# 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