1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-tests: Add some simple tests for CTDB_NFS_CALLOUT

One always passes, the other fails early.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2015-07-14 10:59:55 +10:00 committed by Amitay Isaacs
parent bb7093ab09
commit 3b32c64189
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "callout is 'true'"
setup_nfs
export CTDB_NFS_CALLOUT="true"
ok_null
simple_test

View File

@ -0,0 +1,12 @@
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "callout is 'false', causes monitor-pre to fail"
setup_nfs
export CTDB_NFS_CALLOUT="echo monitor-pre ; false"
required_result 1 "monitor-pre"
simple_test