diff options
author | Martin Schwenke <martin@meltin.net> | 2012-04-16 14:33:37 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2012-04-16 14:57:45 +1000 |
commit | f6178fcc9db4e05bddba1af16fd5ef6c56e9a515 (patch) | |
tree | 3bb933bf2e6f1194b324932b444b7bca8f3ec332 | |
parent | 2c141e6c05b7d512dd690cba5dd9a2c9c04ba472 (diff) | |
download | samba-f6178fcc9db4e05bddba1af16fd5ef6c56e9a515.tar.gz samba-f6178fcc9db4e05bddba1af16fd5ef6c56e9a515.tar.xz samba-f6178fcc9db4e05bddba1af16fd5ef6c56e9a515.zip |
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)
-rw-r--r-- | ctdb/tests/scripts/unit.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ctdb/tests/scripts/unit.sh b/ctdb/tests/scripts/unit.sh new file mode 100644 index 0000000000..977cc9ae9c --- /dev/null +++ b/ctdb/tests/scripts/unit.sh @@ -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 |