summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/stubs
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2015-03-04 11:51:20 +1100
committerAmitay Isaacs <amitay@samba.org>2015-03-04 10:42:27 +0100
commit22602f76bc1ec91e807a8f1cd45ba6fb4c05e622 (patch)
tree0e98202bb2e67661eb62b09f460d170bf67ea4a3 /ctdb/tests/eventscripts/stubs
parentd98c7ba382189161c5b8cbbebbdfbe36f1456572 (diff)
downloadsamba-22602f76bc1ec91e807a8f1cd45ba6fb4c05e622.tar.gz
samba-22602f76bc1ec91e807a8f1cd45ba6fb4c05e622.tar.xz
samba-22602f76bc1ec91e807a8f1cd45ba6fb4c05e622.zip
ctdb-tests: Unit tests for statd-callout
With improvements to unit test infrastructure to support. This includes linking the real statd-callout into etc-ctdb/ in place of the placeholder script. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests/eventscripts/stubs')
-rwxr-xr-xctdb/tests/eventscripts/stubs/id3
-rwxr-xr-xctdb/tests/eventscripts/stubs/smnotify3
2 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/tests/eventscripts/stubs/id b/ctdb/tests/eventscripts/stubs/id
new file mode 100755
index 0000000000..1ecd2f80bf
--- /dev/null
+++ b/ctdb/tests/eventscripts/stubs/id
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Make statd-callout happy
+echo 0
diff --git a/ctdb/tests/eventscripts/stubs/smnotify b/ctdb/tests/eventscripts/stubs/smnotify
new file mode 100755
index 0000000000..414fa99a89
--- /dev/null
+++ b/ctdb/tests/eventscripts/stubs/smnotify
@@ -0,0 +1,3 @@
+#!/bin/sh
+# echo args
+echo "$*"