diff options
author | Martin Schwenke <martin@meltin.net> | 2012-04-16 16:24:12 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2012-04-16 16:24:12 +1000 |
commit | df39a671db2a88de7e6b1e9a9ce4885f2b9bb393 (patch) | |
tree | 35577f88651301bbc8f66de5f12096496ca19861 /ctdb | |
parent | a35eca8bdad298a823d9ca01957dfa501ef503a5 (diff) | |
download | samba-df39a671db2a88de7e6b1e9a9ce4885f2b9bb393.tar.gz samba-df39a671db2a88de7e6b1e9a9ce4885f2b9bb393.tar.xz samba-df39a671db2a88de7e6b1e9a9ce4885f2b9bb393.zip |
tests/eventscripts - Restructure according to new convention
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit eb13507713ba6732271b7c3024bfddbda6da5ffc)
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.init.001.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.init.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.init.002.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.init.002.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.001.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.002.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.002.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.003.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.003.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.004.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.004.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.005.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.005.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.006.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.006.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.007.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.007.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.008.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.008.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.009.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.009.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.010.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.010.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.011.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.011.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.012.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.012.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.013.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.013.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.014.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.014.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.monitor.015.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.monitor.015.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.multi.001.sh (renamed from ctdb/tests/eventscripts/multievent/10.interface.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.releaseip.001.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.releaseip.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.releaseip.002.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.releaseip.002.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.startup.001.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.startup.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.startup.002.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.startup.002.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.takeip.001.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.takeip.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.takeip.002.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.takeip.002.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/10.interface.takeip.003.sh (renamed from ctdb/tests/eventscripts/simple/10.interface.takeip.003.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.001.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.002.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.002.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.003.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.003.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.004.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.004.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.005.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.005.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.006.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.006.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.007.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.007.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.008.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.008.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.009.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.009.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.010.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.010.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.011.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.011.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/13.per_ip_routing.012.sh (renamed from ctdb/tests/eventscripts/multievent/13.per_ip_routing.012.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/40.vsftpd.monitor.001.sh (renamed from ctdb/tests/eventscripts/simple/40.vsftpd.monitor.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/41.httpd.monitor.001.sh (renamed from ctdb/tests/eventscripts/simple/41.httpd.monitor.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.001.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.050.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.050.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.051.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.051.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.101.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.101.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.102.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.102.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.103.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.103.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.104.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.104.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.105.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.105.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.106.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.106.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.107.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.107.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.108.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.108.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.109.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.109.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.110.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.110.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/50.samba.monitor.111.sh (renamed from ctdb/tests/eventscripts/simple/50.samba.monitor.111.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.001.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.100.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.100.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.101.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.101.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.111.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.111.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.112.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.112.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.121.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.121.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.122.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.122.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.131.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.131.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.132.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.132.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.141.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.141.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.142.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.142.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.151.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.151.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.152.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.152.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.153.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.153.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.161.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.161.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.monitor.162.sh (renamed from ctdb/tests/eventscripts/simple/60.nfs.monitor.162.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.multi.001.sh (renamed from ctdb/tests/eventscripts/multievent/60.nfs.001.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.multi.002.sh (renamed from ctdb/tests/eventscripts/multievent/60.nfs.002.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.multi.003.sh (renamed from ctdb/tests/eventscripts/multievent/60.nfs.003.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.multi.004.sh (renamed from ctdb/tests/eventscripts/multievent/60.nfs.004.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.multi.005.sh (renamed from ctdb/tests/eventscripts/multievent/60.nfs.005.sh) | 2 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/60.nfs.multi.006.sh (renamed from ctdb/tests/eventscripts/multievent/60.nfs.006.sh) | 2 | ||||
-rw-r--r-- | ctdb/tests/eventscripts/scripts/local.sh (renamed from ctdb/tests/eventscripts/common.sh) | 44 | ||||
-rwxr-xr-x | ctdb/tests/eventscripts/stubs/ctdb | 2 |
77 files changed, 86 insertions, 110 deletions
diff --git a/ctdb/tests/eventscripts/simple/10.interface.init.001.sh b/ctdb/tests/eventscripts/10.interface.init.001.sh index 5a61ab3efd..fae1a78d50 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.init.001.sh +++ b/ctdb/tests/eventscripts/10.interface.init.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "no public addresses" diff --git a/ctdb/tests/eventscripts/simple/10.interface.init.002.sh b/ctdb/tests/eventscripts/10.interface.init.002.sh index 43bacd5231..ba33f927c3 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.init.002.sh +++ b/ctdb/tests/eventscripts/10.interface.init.002.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "all interfaces up" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.001.sh b/ctdb/tests/eventscripts/10.interface.monitor.001.sh index 411355f105..42ef42d81b 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.001.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "no public addresses" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.002.sh b/ctdb/tests/eventscripts/10.interface.monitor.002.sh index 43bacd5231..ba33f927c3 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.002.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.002.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "all interfaces up" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.003.sh b/ctdb/tests/eventscripts/10.interface.monitor.003.sh index 5dd432816b..1eb7916b93 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.003.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.003.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "1 interface down" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.004.sh b/ctdb/tests/eventscripts/10.interface.monitor.004.sh index d215c40019..69ffbd00cd 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.004.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.004.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "all interfaces up, 1 is a bond" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.005.sh b/ctdb/tests/eventscripts/10.interface.monitor.005.sh index 00db01fe63..8cf7bbc9c0 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.005.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.005.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "1 bond, no active slaves" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.006.sh b/ctdb/tests/eventscripts/10.interface.monitor.006.sh index 862a972373..3c483a3516 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.006.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.006.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "1 bond, active slaves, link down" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.007.sh b/ctdb/tests/eventscripts/10.interface.monitor.007.sh index 004247ef67..c45900e3b2 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.007.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.007.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "unknown interface, up" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.008.sh b/ctdb/tests/eventscripts/10.interface.monitor.008.sh index aa59151c2a..f73302b30d 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.008.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.008.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "unknown interface, down, up" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.009.sh b/ctdb/tests/eventscripts/10.interface.monitor.009.sh index ab890f3442..1b785ffdc8 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.009.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.009.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "CTDB_PARTIALLY_ONLINE_INTERFACES, 1 down" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.010.sh b/ctdb/tests/eventscripts/10.interface.monitor.010.sh index 476d2c9f69..4d233193fb 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.010.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.010.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "CTDB_PARTIALLY_ONLINE_INTERFACES, all down" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.011.sh b/ctdb/tests/eventscripts/10.interface.monitor.011.sh index 3e5ba34ace..21775d41ce 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.011.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.011.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "CTDB_PARTIALLY_ONLINE_INTERFACES, 1 bond down" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.012.sh b/ctdb/tests/eventscripts/10.interface.monitor.012.sh index d27c423e44..dbe84b7729 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.012.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.012.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "CTDB_PARTIALLY_ONLINE_INTERFACES, 1 bond down" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.013.sh b/ctdb/tests/eventscripts/10.interface.monitor.013.sh index 88e884dc84..0fcdcd8d15 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.013.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.013.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "1 bond, active slaves, link down" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.014.sh b/ctdb/tests/eventscripts/10.interface.monitor.014.sh index 97cf253c3b..ab23d307c2 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.014.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.014.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "spurious addresses on interface, no action" diff --git a/ctdb/tests/eventscripts/simple/10.interface.monitor.015.sh b/ctdb/tests/eventscripts/10.interface.monitor.015.sh index 6810733b54..ff54b69d9b 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.monitor.015.sh +++ b/ctdb/tests/eventscripts/10.interface.monitor.015.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "spurious addresses on interface, delete them" diff --git a/ctdb/tests/eventscripts/multievent/10.interface.001.sh b/ctdb/tests/eventscripts/10.interface.multi.001.sh index 5ef254c536..da8dcf188d 100755 --- a/ctdb/tests/eventscripts/multievent/10.interface.001.sh +++ b/ctdb/tests/eventscripts/10.interface.multi.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "takeip, removeip" diff --git a/ctdb/tests/eventscripts/simple/10.interface.releaseip.001.sh b/ctdb/tests/eventscripts/10.interface.releaseip.001.sh index cd38cff67c..934b3dc30e 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.releaseip.001.sh +++ b/ctdb/tests/eventscripts/10.interface.releaseip.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "error - no args given" diff --git a/ctdb/tests/eventscripts/simple/10.interface.releaseip.002.sh b/ctdb/tests/eventscripts/10.interface.releaseip.002.sh index d08d27c7e0..9bcb7f11d6 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.releaseip.002.sh +++ b/ctdb/tests/eventscripts/10.interface.releaseip.002.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "error - remove a non-existent ip" diff --git a/ctdb/tests/eventscripts/simple/10.interface.startup.001.sh b/ctdb/tests/eventscripts/10.interface.startup.001.sh index 411355f105..42ef42d81b 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.startup.001.sh +++ b/ctdb/tests/eventscripts/10.interface.startup.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "no public addresses" diff --git a/ctdb/tests/eventscripts/simple/10.interface.startup.002.sh b/ctdb/tests/eventscripts/10.interface.startup.002.sh index 43bacd5231..ba33f927c3 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.startup.002.sh +++ b/ctdb/tests/eventscripts/10.interface.startup.002.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "all interfaces up" diff --git a/ctdb/tests/eventscripts/simple/10.interface.takeip.001.sh b/ctdb/tests/eventscripts/10.interface.takeip.001.sh index cd38cff67c..934b3dc30e 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.takeip.001.sh +++ b/ctdb/tests/eventscripts/10.interface.takeip.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "error - no args given" diff --git a/ctdb/tests/eventscripts/simple/10.interface.takeip.002.sh b/ctdb/tests/eventscripts/10.interface.takeip.002.sh index 9ee361a326..8960b08997 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.takeip.002.sh +++ b/ctdb/tests/eventscripts/10.interface.takeip.002.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "add an ip" diff --git a/ctdb/tests/eventscripts/simple/10.interface.takeip.003.sh b/ctdb/tests/eventscripts/10.interface.takeip.003.sh index ce78be90b0..203cff05be 100755 --- a/ctdb/tests/eventscripts/simple/10.interface.takeip.003.sh +++ b/ctdb/tests/eventscripts/10.interface.takeip.003.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "error - add same IP twice" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.001.sh b/ctdb/tests/eventscripts/13.per_ip_routing.001.sh index 0bcf8e3055..3d22864edf 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.001.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "not configured" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.002.sh b/ctdb/tests/eventscripts/13.per_ip_routing.002.sh index 9a32df09f1..c54691fafc 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.002.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.002.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "missing config, no takeip, ipreallocated" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.003.sh b/ctdb/tests/eventscripts/13.per_ip_routing.003.sh index 832101f91d..c1e0d01294 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.003.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.003.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "empty config, ipreallocated" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.004.sh b/ctdb/tests/eventscripts/13.per_ip_routing.004.sh index 49d2b4efa1..88ffac369c 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.004.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.004.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "empty config, takeip" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.005.sh b/ctdb/tests/eventscripts/13.per_ip_routing.005.sh index 3ebacbedbb..822f39f044 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.005.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.005.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "1 IP configured, takeip" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.006.sh b/ctdb/tests/eventscripts/13.per_ip_routing.006.sh index d458556372..ed9df846fe 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.006.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.006.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "1 IP configured, takeip, releaseip" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.007.sh b/ctdb/tests/eventscripts/13.per_ip_routing.007.sh index 53e9d3866a..f7332ac50b 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.007.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.007.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "1 IP configured, ipreallocated" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.008.sh b/ctdb/tests/eventscripts/13.per_ip_routing.008.sh index 282ec07364..db37cbb241 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.008.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.008.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "1 IP configured, takeip twice" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.009.sh b/ctdb/tests/eventscripts/13.per_ip_routing.009.sh index 771651e94a..3e33e903c2 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.009.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.009.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "All IPs configured, takeip" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.010.sh b/ctdb/tests/eventscripts/13.per_ip_routing.010.sh index f7caf1c98d..4704b9f04c 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.010.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.010.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "All IPs configured, takeip all on node" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.011.sh b/ctdb/tests/eventscripts/13.per_ip_routing.011.sh index 18b51d4b78..65adbb5d5a 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.011.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.011.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "__auto_link_local__, takeip all on node" diff --git a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.012.sh b/ctdb/tests/eventscripts/13.per_ip_routing.012.sh index c2720646d6..198551f877 100755 --- a/ctdb/tests/eventscripts/multievent/13.per_ip_routing.012.sh +++ b/ctdb/tests/eventscripts/13.per_ip_routing.012.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "1 IP configured, takeip, releaseip, ipreallocated" diff --git a/ctdb/tests/eventscripts/simple/40.vsftpd.monitor.001.sh b/ctdb/tests/eventscripts/40.vsftpd.monitor.001.sh index 0f8b1a53c6..fdad12ae9a 100755 --- a/ctdb/tests/eventscripts/simple/40.vsftpd.monitor.001.sh +++ b/ctdb/tests/eventscripts/40.vsftpd.monitor.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "not managed, check no-op" diff --git a/ctdb/tests/eventscripts/simple/41.httpd.monitor.001.sh b/ctdb/tests/eventscripts/41.httpd.monitor.001.sh index 0a9ceac428..f400eaa89b 100755 --- a/ctdb/tests/eventscripts/simple/41.httpd.monitor.001.sh +++ b/ctdb/tests/eventscripts/41.httpd.monitor.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "not managed, check no-op" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.001.sh b/ctdb/tests/eventscripts/50.samba.monitor.001.sh index 77fc2eb852..ac3708f5fd 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.001.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "not managed, check no-op" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.050.sh b/ctdb/tests/eventscripts/50.samba.monitor.050.sh index 7a1b422bd2..f4b00bb857 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.050.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.050.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "auto-start, simple" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.051.sh b/ctdb/tests/eventscripts/50.samba.monitor.051.sh index 3a53ac8aaa..c9f1a96bc0 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.051.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.051.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "auto-stop, simple" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.101.sh b/ctdb/tests/eventscripts/50.samba.monitor.101.sh index d4b80bbf8f..cf3b53a8f1 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.101.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.101.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "all OK" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.102.sh b/ctdb/tests/eventscripts/50.samba.monitor.102.sh index 2f1f446fe8..a2263f3c60 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.102.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.102.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "winbind down" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.103.sh b/ctdb/tests/eventscripts/50.samba.monitor.103.sh index 8854780cad..6f71a96760 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.103.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.103.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "port 445 down" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.104.sh b/ctdb/tests/eventscripts/50.samba.monitor.104.sh index a29e7838b3..9de022376b 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.104.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.104.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "port 139 down" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.105.sh b/ctdb/tests/eventscripts/50.samba.monitor.105.sh index 624c4a502c..9936eff806 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.105.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.105.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "non-existent share path" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.106.sh b/ctdb/tests/eventscripts/50.samba.monitor.106.sh index f54cc06c68..8fabfb33b6 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.106.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.106.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "non-existent share - not checked" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.107.sh b/ctdb/tests/eventscripts/50.samba.monitor.107.sh index e4151f3743..4c776ac8aa 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.107.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.107.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "port 139 down, default tcp checker, debug" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.108.sh b/ctdb/tests/eventscripts/50.samba.monitor.108.sh index d06a16f90a..fcd5d27960 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.108.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.108.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "port 139 down, ctdb checktcpport not implemented" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.109.sh b/ctdb/tests/eventscripts/50.samba.monitor.109.sh index 4bc854b623..f90ba629db 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.109.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.109.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "port 139 down, ctdb checktcpport not implemented, debug" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.110.sh b/ctdb/tests/eventscripts/50.samba.monitor.110.sh index 80264cc24e..639cc515fe 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.110.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.110.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "port 139 down, ctdb checktcpport/nmap not implemented, debug" diff --git a/ctdb/tests/eventscripts/simple/50.samba.monitor.111.sh b/ctdb/tests/eventscripts/50.samba.monitor.111.sh index 4651290663..c7f924cd7f 100755 --- a/ctdb/tests/eventscripts/simple/50.samba.monitor.111.sh +++ b/ctdb/tests/eventscripts/50.samba.monitor.111.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "port 139 down, ctdb checktcpport/nmap/netstat not implemented" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.001.sh b/ctdb/tests/eventscripts/60.nfs.monitor.001.sh index 5b260ac6fb..c62e5cf878 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.001.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "not managed, check no-op" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.100.sh b/ctdb/tests/eventscripts/60.nfs.monitor.100.sh index 95f4dc6fb6..e846d82735 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.100.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.100.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "get RPC service fail limits/actions" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.101.sh b/ctdb/tests/eventscripts/60.nfs.monitor.101.sh index 657db97a07..1a68927810 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.101.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.101.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "all services available" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.111.sh b/ctdb/tests/eventscripts/60.nfs.monitor.111.sh index 8dcde029dd..414fcc8066 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.111.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.111.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "knfsd down, 1 iteration" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.112.sh b/ctdb/tests/eventscripts/60.nfs.monitor.112.sh index de796ebd07..666a38aaaf 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.112.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.112.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "knfsd down, 6 iterations" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.121.sh b/ctdb/tests/eventscripts/60.nfs.monitor.121.sh index 062c3f6f5c..6d27f60b27 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.121.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.121.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "lockd down, 15 iterations" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.122.sh b/ctdb/tests/eventscripts/60.nfs.monitor.122.sh index b93dba7b97..fc5cea87c7 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.122.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.122.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "lockd down, 15 iterations, back up after 10" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.131.sh b/ctdb/tests/eventscripts/60.nfs.monitor.131.sh index 84d20b761c..1cf72a9284 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.131.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.131.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "rquotad down, 5 iterations" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.132.sh b/ctdb/tests/eventscripts/60.nfs.monitor.132.sh index fad9a4c590..b8f3f2b041 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.132.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.132.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "rquotad down, 5 iterations, back up after 1" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.141.sh b/ctdb/tests/eventscripts/60.nfs.monitor.141.sh index 377de6e229..c77b1a7b05 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.141.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.141.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "statd down, 6 iterations" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.142.sh b/ctdb/tests/eventscripts/60.nfs.monitor.142.sh index 3ca3cf64a7..4373d8d642 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.142.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.142.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "statd down, 8 iterations, back up after 2" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.151.sh b/ctdb/tests/eventscripts/60.nfs.monitor.151.sh index af2dd26f5d..ea9aa7830e 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.151.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.151.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "mountd down, 1 iteration" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.152.sh b/ctdb/tests/eventscripts/60.nfs.monitor.152.sh index 9aad819b74..c4eb4194ae 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.152.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.152.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "mountd down, 10 iterations" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.153.sh b/ctdb/tests/eventscripts/60.nfs.monitor.153.sh index 6b2750c82c..cf33e39bbc 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.153.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.153.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "mountd down, 10 iterations, back up after 5" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.161.sh b/ctdb/tests/eventscripts/60.nfs.monitor.161.sh index 4abe68eaba..1e07c181c2 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.161.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.161.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "2nd share missing" diff --git a/ctdb/tests/eventscripts/simple/60.nfs.monitor.162.sh b/ctdb/tests/eventscripts/60.nfs.monitor.162.sh index 865b1c635a..ccd4ca84ea 100755 --- a/ctdb/tests/eventscripts/simple/60.nfs.monitor.162.sh +++ b/ctdb/tests/eventscripts/60.nfs.monitor.162.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "2nd share missing, skipping share checks" diff --git a/ctdb/tests/eventscripts/multievent/60.nfs.001.sh b/ctdb/tests/eventscripts/60.nfs.multi.001.sh index a6608db83e..e578c56c32 100755 --- a/ctdb/tests/eventscripts/multievent/60.nfs.001.sh +++ b/ctdb/tests/eventscripts/60.nfs.multi.001.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "takeip, ipreallocated -> reconfigure" diff --git a/ctdb/tests/eventscripts/multievent/60.nfs.002.sh b/ctdb/tests/eventscripts/60.nfs.multi.002.sh index 93f645a618..0c203cdf25 100755 --- a/ctdb/tests/eventscripts/multievent/60.nfs.002.sh +++ b/ctdb/tests/eventscripts/60.nfs.multi.002.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "takeip, monitor -> reconfigure" diff --git a/ctdb/tests/eventscripts/multievent/60.nfs.003.sh b/ctdb/tests/eventscripts/60.nfs.multi.003.sh index 929eaf2ae5..31867b2789 100755 --- a/ctdb/tests/eventscripts/multievent/60.nfs.003.sh +++ b/ctdb/tests/eventscripts/60.nfs.multi.003.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "takeip, monitor -> reconfigure, replay error" diff --git a/ctdb/tests/eventscripts/multievent/60.nfs.004.sh b/ctdb/tests/eventscripts/60.nfs.multi.004.sh index addbf44c9c..6220ad346c 100755 --- a/ctdb/tests/eventscripts/multievent/60.nfs.004.sh +++ b/ctdb/tests/eventscripts/60.nfs.multi.004.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "takeip, monitor -> reconfigure, replay timedout" diff --git a/ctdb/tests/eventscripts/multievent/60.nfs.005.sh b/ctdb/tests/eventscripts/60.nfs.multi.005.sh index 9e652013ca..1a8200c9fc 100755 --- a/ctdb/tests/eventscripts/multievent/60.nfs.005.sh +++ b/ctdb/tests/eventscripts/60.nfs.multi.005.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "takeip, monitor -> reconfigure, replay disabled" diff --git a/ctdb/tests/eventscripts/multievent/60.nfs.006.sh b/ctdb/tests/eventscripts/60.nfs.multi.006.sh index 35f8b836e1..21beaadcea 100755 --- a/ctdb/tests/eventscripts/multievent/60.nfs.006.sh +++ b/ctdb/tests/eventscripts/60.nfs.multi.006.sh @@ -1,6 +1,6 @@ #!/bin/sh -. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" +. "${TEST_SCRIPTS_DIR}/unit.sh" define_test "reconfigure (synthetic), twice" # This checks that the lock is released... diff --git a/ctdb/tests/eventscripts/common.sh b/ctdb/tests/eventscripts/scripts/local.sh index 44c975e034..cba552e92f 100644 --- a/ctdb/tests/eventscripts/common.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -1,8 +1,5 @@ # Hey Emacs, this is a -*- shell-script -*- !!! :-) -# Print a message and exit. -die () { echo "$@" >&2 ; exit 1 ; } - # Augment PATH with relevant stubs/ directories. We do this by actually # setting PATH, and also by setting $EVENTSCRIPTS_PATH and then # prepending that to $PATH in rc.local to avoid the PATH reset in @@ -10,45 +7,29 @@ die () { echo "$@" >&2 ; exit 1 ; } EVENTSCRIPTS_PATH="" -if [ -d "${EVENTSCRIPTS_TESTS_DIR}/stubs" ] ; then - EVENTSCRIPTS_PATH="${EVENTSCRIPTS_TESTS_DIR}/stubs" -fi - -export EVENTSCRIPTS_TESTCASE_DIR=$(dirname "$0") -if [ $(basename "$EVENTSCRIPTS_TESTCASE_DIR") = "eventscripts" ] ; then - # Just a test script, no testcase subdirectory. - EVENTSCRIPTS_TESTCASE_DIR="$EVENTSCRIPTS_TESTS_DIR" -else - if [ -d "${EVENTSCRIPTS_TESTCASE_DIR}/stubs" ] ; then - EVENTSCRIPTS_PATH="${EVENTSCRIPTS_TESTCASE_DIR}/stubs:${EVENTSCRIPTS_PATH}" - fi +if [ -d "${TEST_SUBDIR}/stubs" ] ; then + EVENTSCRIPTS_PATH="${TEST_SUBDIR}/stubs" fi export EVENTSCRIPTS_PATH PATH="${EVENTSCRIPTS_PATH}:${PATH}" -if [ -d "${EVENTSCRIPTS_TESTCASE_DIR}/etc" ] ; then - CTDB_ETCDIR="${EVENTSCRIPTS_TESTCASE_DIR}/etc" -elif [ -d "${EVENTSCRIPTS_TESTS_DIR}/etc" ] ; then - CTDB_ETCDIR="${EVENTSCRIPTS_TESTS_DIR}/etc" +if [ -d "${TEST_SUBDIR}/etc" ] ; then + CTDB_ETCDIR="${TEST_SUBDIR}/etc" else die "Unable to set \$CTDB_ETCDIR" fi export CTDB_ETCDIR -if [ -d "${EVENTSCRIPTS_TESTCASE_DIR}/etc-ctdb" ] ; then - CTDB_BASE="${EVENTSCRIPTS_TESTCASE_DIR}/etc-ctdb" -elif [ -d "${EVENTSCRIPTS_TESTCASE_DIR}/etc/ctdb" ] ; then - CTDB_BASE="${EVENTSCRIPTS_TESTCASE_DIR}/etc/ctdb" -elif [ -d "${EVENTSCRIPTS_TESTS_DIR}/etc-ctdb" ] ; then - CTDB_BASE="${EVENTSCRIPTS_TESTS_DIR}/etc-ctdb" +if [ -d "${TEST_SUBDIR}/etc-ctdb" ] ; then + CTDB_BASE="${TEST_SUBDIR}/etc-ctdb" else die "Unable to set \$CTDB_BASE" fi export CTDB_BASE -export EVENTSCRIPTS_TESTS_VAR_DIR="${EVENTSCRIPTS_TESTS_DIR}/var" +export EVENTSCRIPTS_TESTS_VAR_DIR="${TEST_SUBDIR}/var" if [ "$EVENTSCRIPTS_TESTS_VAR_DIR" != "/var" ] ; then rm -r "$EVENTSCRIPTS_TESTS_VAR_DIR" fi @@ -57,7 +38,7 @@ export CTDB_VARDIR="$EVENTSCRIPTS_TESTS_VAR_DIR/ctdb" ###################################################################### -if [ "$EVENTSCRIPT_TESTS_VERBOSE" = "yes" ] ; then +if [ "$TEST_VERBOSE" = "yes" ] ; then debug () { echo "$@" ; } else debug () { : ; } @@ -665,12 +646,7 @@ define_test () { desc="$1" - _f="$0" - _f="${_f#./}" # strip leading ./ - _f="${_f#simple/}" # strip leading simple/ - _f="${_f#multievent/}" # strip leading multievent/ - _f="${_f%%/*}" # if subdir, strip off file - _f="${_f%.sh}" # strip off .sh suffix if any + _f=$(basename "$0" ".sh") # Remaining format should be NN.service.event.NNN or NN.service.NNN: _num="${_f##*.}" @@ -779,7 +755,7 @@ result_footer () { _passed="$1" - if [ "$EVENTSCRIPT_TESTS_VERBOSE" = "yes" ] || ! $_passed ; then + if [ "$TEST_VERBOSE" = "yes" ] || ! $_passed ; then cat <<EOF -------------------------------------------------- diff --git a/ctdb/tests/eventscripts/stubs/ctdb b/ctdb/tests/eventscripts/stubs/ctdb index 81d275af70..e43784e3bb 100755 --- a/ctdb/tests/eventscripts/stubs/ctdb +++ b/ctdb/tests/eventscripts/stubs/ctdb @@ -126,7 +126,7 @@ ip_reallocate () fi _flags="${_flags}${_flags:+,}${_this}" done - "$(dirname ${EVENTSCRIPTS_TESTS_DIR})/bin/ctdb_takeover_tests" \ + "$(dirname ${TEST_SUBDIR})/bin/ctdb_takeover_tests" \ "ctdb_takeover_run_core" "$_flags" <"$FAKE_CTDB_IP_LAYOUT" | sort >"$_t" mv "$_t" "$FAKE_CTDB_IP_LAYOUT" |