1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
samba-mirror/ctdb/tests/UNIT/eventscripts
Martin Schwenke 9313731e96 ctdb-scripts: Update detect_init_style to use /etc/os-release
/etc/os-release is quite universal.  It can be found on most Linux
distros and on FreeBSD.

Attempt to use /etc/os-release to detect Red Hat, SUSE and Debian
based distros.  If /etc/os-release exists but distro is unknown then
$ID is printed as the detected distro, which will probably result in
sub-optimal behaviour, but when tracing it will at least indicate that
a new distro needs to be handled.

The only way to handle missing /etc/os-release is to set
CTDB_INIT_STYLE - see ctdb.sysconfig(5) for details.

The event script unit tests are updated to use /etc/os-release so
the new logic is exercised.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon Oct 30 09:19:11 UTC 2023 on atb-devel-224
2023-10-30 09:19:11 +00:00
..
etc ctdb-scripts: Update detect_init_style to use /etc/os-release 2023-10-30 09:19:11 +00:00
etc-ctdb ctdb-scripts: Update detect_init_style to use /etc/os-release 2023-10-30 09:19:11 +00:00
scripts ctdb-scripts: Convert 40.vsftpd to use threshold-based fail counting 2023-10-03 04:53:38 +00:00
stubs ctdb-tests: Drop unused test code for tunables 2023-07-05 11:18:37 +00:00
00.ctdb.init.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
00.ctdb.init.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
00.ctdb.init.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
00.ctdb.init.004.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
00.ctdb.init.005.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
00.ctdb.init.006.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
00.ctdb.init.007.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
00.ctdb.init.008.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
00.ctdb.init.009.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
01.reclock.init.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
01.reclock.init.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
01.reclock.init.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.004.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.005.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.006.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.007.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.011.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.012.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.014.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
05.system.monitor.015.sh ctdb-tests: Fix nonsense arguments to ps stub 2021-05-28 06:46:29 +00:00
05.system.monitor.017.sh ctdb-tests: Fix nonsense arguments to ps stub 2021-05-28 06:46:29 +00:00
05.system.monitor.018.sh ctdb-tests: Fix nonsense arguments to ps stub 2021-05-28 06:46:29 +00:00
06.nfs.releaseip.001.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
06.nfs.releaseip.002.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
06.nfs.takeip.001.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
06.nfs.takeip.002.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
10.interface.010.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.011.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.012.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.013.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.init.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.init.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.init.021.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.init.022.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.init.023.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.004.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.005.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.006.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.009.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.010.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.011.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.012.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.013.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.014.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.015.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.016.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.017.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.monitor.018.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.multi.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.releaseip.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.releaseip.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.startup.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.startup.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.takeip.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.takeip.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
10.interface.takeip.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
11.natgw.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
11.natgw.002.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.003.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.004.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.011.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.012.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.013.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.014.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.015.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.021.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.022.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.023.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.024.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.025.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.031.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.041.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.042.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.051.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.052.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.053.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
11.natgw.054.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
13.per_ip_routing.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.004.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.005.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.006.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.007.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.008.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.009.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.010.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.011.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.012.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.013.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.014.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.015.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.016.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.017.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.018.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.019.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.021.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.022.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.023.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
13.per_ip_routing.024.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
20.multipathd.monitor.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
20.multipathd.monitor.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
20.multipathd.monitor.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
20.multipathd.monitor.004.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
31.clamd.monitor.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
31.clamd.monitor.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
40.vsftpd.monitor.002.sh ctdb-scripts: Convert 40.vsftpd to use threshold-based fail counting 2023-10-03 04:53:38 +00:00
40.vsftpd.shutdown.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
40.vsftpd.startup.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
41.httpd.monitor.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
41.httpd.shutdown.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
41.httpd.startup.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
48.netbios.shutdown.011.sh ctdb-scripts: add new 48.netbios script for starting nmbd 2020-02-27 06:07:41 +00:00
48.netbios.startup.011.sh ctdb-scripts: add new 48.netbios script for starting nmbd 2020-02-27 06:07:41 +00:00
49.winbind.monitor.101.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
49.winbind.monitor.102.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
49.winbind.shutdown.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
49.winbind.startup.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.monitor.101.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.monitor.103.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.monitor.104.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.monitor.105.sh ctdb-tests: Avoid ShellCheck warning SC2059 2023-07-05 11:18:37 +00:00
50.samba.monitor.106.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.monitor.110.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.monitor.111.sh ctdb-scripts: Avoid using testparm to process its own output 2023-02-14 08:43:53 +00:00
50.samba.monitor.112.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.monitor.113.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.shutdown.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.shutdown.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
50.samba.shutdown.011.sh ctdb-scripts: add new 48.netbios script for starting nmbd 2020-02-27 06:07:41 +00:00
50.samba.startup.011.sh ctdb-scripts: add new 48.netbios script for starting nmbd 2020-02-27 06:07:41 +00:00
60.nfs.monitor.101.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.102.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.103.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.104.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.105.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.106.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.107.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.108.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
60.nfs.monitor.109.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
60.nfs.monitor.111.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.112.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.113.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.114.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.121.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.122.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.131.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.132.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.141.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.142.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.143.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.144.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.151.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.152.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.153.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.monitor.161.sh ctdb-tests: Avoid ShellCheck warning SC2059 2023-07-05 11:18:37 +00:00
60.nfs.monitor.162.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.multi.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.multi.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.releaseip.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.releaseip.002.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
60.nfs.shutdown.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.shutdown.002.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
60.nfs.startup.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.startup.002.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
60.nfs.takeip.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
60.nfs.takeip.002.sh ctdb-tests: Do not require eval tricks for faking NFS callout 2022-06-24 09:49:33 +00:00
91.lvs.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
91.lvs.ipreallocated.011.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
91.lvs.ipreallocated.012.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
91.lvs.ipreallocated.013.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
91.lvs.ipreallocated.014.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
91.lvs.monitor.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
91.lvs.monitor.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
91.lvs.monitor.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
91.lvs.shutdown.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
91.lvs.shutdown.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
91.lvs.startup.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
91.lvs.startup.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
debug_locks.sh.001.sh ctdb-tests: Add debug_locks.sh testing 2021-05-28 06:46:29 +00:00
debug_locks.sh.002.sh ctdb-tests: Add debug_locks.sh testing 2021-05-28 06:46:29 +00:00
debug_locks.sh.003.sh ctdb-tests: Add debug_locks.sh testing 2021-05-28 06:46:29 +00:00
debug_locks.sh.004.sh ctdb-tests: Add debug_locks.sh testing 2021-05-28 06:46:29 +00:00
debug_locks.sh.005.sh ctdb-tests: Add debug_locks.sh testing 2021-05-28 06:46:29 +00:00
debug_locks.sh.006.sh ctdb-tests: Add debug_locks.sh testing 2021-05-28 06:46:29 +00:00
debug_locks.sh.007.sh ctdb-tests: Add debug_locks.sh testing 2021-05-28 06:46:29 +00:00
debug_locks.sh.008.sh ctdb-tests: Add debug_locks.sh testing 2021-05-28 06:46:29 +00:00
debug_locks.sh.021.sh ctdb-tests: Add debug_locks.sh tests for mutexes 2021-05-28 07:34:23 +00:00
debug_locks.sh.022.sh ctdb-tests: Add debug_locks.sh tests for mutexes 2021-05-28 07:34:23 +00:00
debug_locks.sh.023.sh ctdb-tests: Add debug_locks.sh tests for mutexes 2021-05-28 07:34:23 +00:00
debug_locks.sh.024.sh ctdb-tests: Add debug_locks.sh tests for mutexes 2021-05-28 07:34:23 +00:00
debug_locks.sh.025.sh ctdb-tests: Add debug_locks.sh tests for mutexes 2021-05-28 07:34:23 +00:00
debug_locks.sh.026.sh ctdb-tests: Add debug_locks.sh tests for mutexes 2021-05-28 07:34:23 +00:00
debug_locks.sh.027.sh ctdb-tests: Add debug_locks.sh tests for mutexes 2021-05-28 07:34:23 +00:00
debug_locks.sh.028.sh ctdb-tests: Add debug_locks.sh tests for mutexes 2021-05-28 07:34:23 +00:00
README ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
statd-callout.001.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
statd-callout.002.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
statd-callout.003.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
statd-callout.004.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
statd-callout.005.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
statd-callout.006.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00
statd-callout.007.sh ctdb-tests: Move eventscript tests to UNIT/ subdirectory 2019-09-26 04:45:36 +00:00

eventscript unit tests
======================

This directory contains some eventscript unit tests for CTDB.  These
tests can be run as a non-privileged user.  There are a lot of stub
implementations of commands (located in stubs/) used to make the
eventscripts think they're running against a real system.

Test case filenames look like:

  <eventscript>.<event>.NNN.sh

The test helper functions will run <eventscript> with specified
options.  If using the simple_test() helper function then the 1st
<event> argument is automatically passed.  When simple_test_event() is
used the event name must be explicitly passed as the 1st argument -
this is more flexible and supports multiple events per test.

Examples:

* ../run_tests.sh .

  Run all tests, displaying minimal output.

* ../run_tests.sh -s .

  Run all tests, displaying minimal output and a summary.

* ../run_tests.sh -s ./10.interface.*.sh

  Run all the tests against the 10.interface eventscript.

* ../run_tests.sh -v -s .

  Run all tests, displaying extra output and a summary.

* ../run_tests.sh -sq .

  Run all tests, displaying only a summary.

* ../run_tests.sh -X ./10.interface.startup.002.sh

  Run a test and have the eventscript itself run with "sh -x".  This
  will usually make a test fail because the (undesirable) trace output
  will be included with the output of the eventscript.  However, this
  is useful for finding out why a test might be failing.