git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c141e6
)
tests - add scripts/unit.sh
author
Martin Schwenke
<martin@meltin.net>
Mon, 16 Apr 2012 04:33:37 +0000
(14:33 +1000)
committer
Martin Schwenke
<martin@meltin.net>
Mon, 16 Apr 2012 04:57:45 +0000
(14:57 +1000)
This will be sourced by all unit tests.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit
afdaa5f032938d56ff315d9553cb285ebc413c4c
)
ctdb/tests/scripts/unit.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/ctdb/tests/scripts/unit.sh
b/ctdb/tests/scripts/unit.sh
new file mode 100644
(file)
index 0000000..
977cc9a
--- /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