1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/tests/eventscripts
Martin Schwenke b80967f5dc ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE
CTDB's system memory monitoring in 05.system.script monitors both main
memory and swap.  The swap monitoring was originally based on
the (possibly incorrect, see below) idea that swap space stacks on top
of main memory, so that when a system starts filling swap space then
this is supposed to be a good sign that the system is running out of
memory.  Additionally, performance on a Linux system tends to be
destroyed by the I/O associated with a lot of swapping to spinning
disks.

However, some platforms default to creating only 4GB of swap space
even when there is 128GB of main memory.  With such a small swap to
main memory ratio, memory pressure can force swap to be nearly full
even when a significant amount of main memory is still available and
the system is performing well.  This suggests that checking swap
utilisation might be less than useful in many circumstances.

So, remove the separate swap space checking and change the memory
check to cover the total of main memory and swap space.

Test function set_mem_usage() still takes an argument for each of main
memory and swap space utilisation.  For simplicity, the same number is
now passed twice to make the intended results comprehensible.  This
could be changed later.

A couple of tests are cleaned up to no longer use hard-coded
/proc/meminfo and ps output.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2019-05-07 05:45:34 +00:00
..
etc ctdb-tests: Delete unused fake /etc/sysconfig/ctdb file 2018-03-28 07:27:58 +02:00
etc-ctdb ctdb-tests: Use setup_ctdb_base() for eventscript unit tests 2018-03-09 07:08:25 +01:00
scripts ctdb-scripts: Default to using systemd services in NFS call-out 2019-03-31 10:45:20 +00:00
stubs ctdb-tests: Replace md5sum with posix cksum 2018-07-28 03:50:11 +02:00
00.ctdb.init.001.sh ctdb-tests: 00.ctdb testing setup modularisation 2018-03-28 02:57:18 +02:00
00.ctdb.init.002.sh ctdb-tests: 00.ctdb testing setup modularisation 2018-03-28 02:57:18 +02:00
00.ctdb.init.003.sh ctdb-tests: 00.ctdb testing setup modularisation 2018-03-28 02:57:18 +02:00
00.ctdb.init.004.sh ctdb-tests: 00.ctdb testing setup modularisation 2018-03-28 02:57:18 +02:00
00.ctdb.init.005.sh ctdb-tests: 00.ctdb testing setup modularisation 2018-03-28 02:57:18 +02:00
00.ctdb.init.006.sh ctdb-tests: 00.ctdb testing setup modularisation 2018-03-28 02:57:18 +02:00
00.ctdb.init.007.sh ctdb-tests: Fix location of persistent databases 2018-05-01 13:31:20 +02:00
00.ctdb.init.008.sh ctdb-tests: Fix location of persistent databases 2018-05-01 13:31:20 +02:00
00.ctdb.init.009.sh ctdb-scripts: date "+%N" is non-portable 2018-07-28 03:50:11 +02:00
00.ctdb.setup.001.sh ctdb-tests: 00.ctdb testing setup modularisation 2018-03-28 02:57:18 +02:00
00.ctdb.setup.002.sh ctdb-config: Switch tunable TDBMutexEnabled to a config option 2018-08-24 10:59:21 +02:00
00.ctdb.setup.003.sh ctdb-scripts: Tunables are now loaded from ctdb.tunables 2018-03-28 02:57:21 +02:00
00.ctdb.setup.004.sh ctdb-scripts: Tunables are now loaded from ctdb.tunables 2018-03-28 02:57:21 +02:00
01.reclock.monitor.001.sh ctdb-tests: 01.reclock event script setup modularisation 2018-03-28 02:57:18 +02:00
01.reclock.monitor.002.sh ctdb-tests: 01.reclock event script setup modularisation 2018-03-28 02:57:18 +02:00
01.reclock.monitor.003.sh ctdb-tests: 01.reclock event script setup modularisation 2018-03-28 02:57:18 +02:00
01.reclock.monitor.004.sh ctdb-tests: 01.reclock event script setup modularisation 2018-03-28 02:57:18 +02:00
01.reclock.monitor.005.sh ctdb-tests: 01.reclock event script setup modularisation 2018-03-28 02:57:18 +02:00
05.system.monitor.001.sh ctdb-tests: CTDB_DBDIR_PERSISTENT should not depend on CTDB_DBDIR 2018-05-01 13:31:20 +02:00
05.system.monitor.002.sh ctdb-tests: Use setup_script_options() in 05.system tests 2018-03-28 02:57:20 +02:00
05.system.monitor.003.sh ctdb-tests: Use setup_script_options() in 05.system tests 2018-03-28 02:57:20 +02:00
05.system.monitor.004.sh ctdb-tests: Use setup_script_options() in 05.system tests 2018-03-28 02:57:20 +02:00
05.system.monitor.005.sh ctdb-tests: Use setup_script_options() in 05.system tests 2018-03-28 02:57:20 +02:00
05.system.monitor.006.sh ctdb-tests: Use setup_script_options() in 05.system tests 2018-03-28 02:57:20 +02:00
05.system.monitor.007.sh ctdb-tests: Use setup_script_options() in 05.system tests 2018-03-28 02:57:20 +02:00
05.system.monitor.011.sh ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE 2019-05-07 05:45:34 +00:00
05.system.monitor.012.sh ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE 2019-05-07 05:45:34 +00:00
05.system.monitor.014.sh ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE 2019-05-07 05:45:34 +00:00
05.system.monitor.015.sh ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE 2019-05-07 05:45:34 +00:00
05.system.monitor.017.sh ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE 2019-05-07 05:45:34 +00:00
05.system.monitor.018.sh ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE 2019-05-07 05:45:34 +00:00
06.nfs.releaseip.001.sh ctdb-scripts: Use load_script_options() in miscellaneous scripts 2018-05-12 06:11:17 +02:00
06.nfs.releaseip.002.sh ctdb-scripts: Use load_script_options() in miscellaneous scripts 2018-05-12 06:11:17 +02:00
06.nfs.takeip.001.sh ctdb-scripts: Use load_script_options() in miscellaneous scripts 2018-05-12 06:11:17 +02:00
06.nfs.takeip.002.sh ctdb-scripts: Use load_script_options() in miscellaneous scripts 2018-05-12 06:11:17 +02:00
10.interface.010.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.011.sh ctdb-tests: Replace hardcoded IP address in test results 2018-07-11 11:48:37 +02:00
10.interface.012.sh ctdb-tests: Replace hardcoded IP address in test results 2018-07-11 11:48:37 +02:00
10.interface.013.sh ctdb-tests: Replace hardcoded IP address in test results 2018-07-11 11:48:37 +02:00
10.interface.init.001.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.init.002.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.init.021.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.init.022.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.init.023.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.001.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.002.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.003.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.004.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.005.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.006.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.009.sh ctdb-tests: Use setup_script_options() in 10.interface tests 2018-03-28 02:57:20 +02:00
10.interface.monitor.010.sh ctdb-tests: Use setup_script_options() in 10.interface tests 2018-03-28 02:57:20 +02:00
10.interface.monitor.011.sh ctdb-tests: Use setup_script_options() in 10.interface tests 2018-03-28 02:57:20 +02:00
10.interface.monitor.012.sh ctdb-tests: Use setup_script_options() in 10.interface tests 2018-03-28 02:57:20 +02:00
10.interface.monitor.013.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.014.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.015.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.016.sh ctdb-tests: Use setup_script_options() in 10.interface tests 2018-03-28 02:57:20 +02:00
10.interface.monitor.017.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.monitor.018.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.multi.001.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.releaseip.001.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.releaseip.002.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.startup.001.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.startup.002.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.takeip.001.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.takeip.002.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
10.interface.takeip.003.sh ctdb-tests: 10.interface event script setup modularisation 2018-03-28 02:57:19 +02:00
11.natgw.001.sh ctdb-tests: 11.natgw event script setup modularisation 2018-03-28 02:57:19 +02:00
11.natgw.002.sh ctdb-tests: 11.natgw event script setup modularisation 2018-03-28 02:57:19 +02:00
11.natgw.003.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.004.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.011.sh ctdb-tests: 11.natgw event script setup modularisation 2018-03-28 02:57:19 +02:00
11.natgw.012.sh ctdb-tests: 11.natgw event script setup modularisation 2018-03-28 02:57:19 +02:00
11.natgw.013.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.014.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.015.sh ctdb-tests: 11.natgw event script setup modularisation 2018-03-28 02:57:19 +02:00
11.natgw.021.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.022.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.023.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.024.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.025.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.031.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.041.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.042.sh ctdb-tests: Use setup_script_options() in 11.natgw tests 2018-03-28 02:57:20 +02:00
11.natgw.051.sh ctdb-tests: 11.natgw event script setup modularisation 2018-03-28 02:57:19 +02:00
11.natgw.052.sh ctdb-tests: 11.natgw event script setup modularisation 2018-03-28 02:57:19 +02:00
11.natgw.053.sh ctdb-tests: 11.natgw event script setup modularisation 2018-03-28 02:57:19 +02:00
11.natgw.054.sh ctdb-tests: 11.natgw event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.001.sh ctdb-tests: Use setup_script_options() in 13.per_ip_routing tests 2018-03-28 02:57:20 +02:00
13.per_ip_routing.002.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.003.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.004.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.005.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.006.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.007.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.008.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.009.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.010.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.011.sh ctdb-tests: Use setup_script_options() in 13.per_ip_routing tests 2018-03-28 02:57:20 +02:00
13.per_ip_routing.012.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.013.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.014.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.015.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.016.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.017.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.018.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.019.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.021.sh ctdb-tests: Use setup_script_options() in 13.per_ip_routing tests 2018-03-28 02:57:20 +02:00
13.per_ip_routing.022.sh ctdb-tests: Use setup_script_options() in 13.per_ip_routing tests 2018-03-28 02:57:20 +02:00
13.per_ip_routing.023.sh ctdb-tests: 13.per_ip_routing event script setup modularisation 2018-03-28 02:57:19 +02:00
13.per_ip_routing.024.sh ctdb-tests: Improve portability by not using mktemp --tmpdir option 2018-07-28 03:50:10 +02:00
20.multipathd.monitor.001.sh ctdb-tests: 20.multipathd event script setup modularisation 2018-03-28 02:57:19 +02:00
20.multipathd.monitor.002.sh ctdb-tests: 20.multipathd event script setup modularisation 2018-03-28 02:57:19 +02:00
20.multipathd.monitor.003.sh ctdb-tests: 20.multipathd event script setup modularisation 2018-03-28 02:57:19 +02:00
20.multipathd.monitor.004.sh ctdb-tests: 20.multipathd event script setup modularisation 2018-03-28 02:57:19 +02:00
31.clamd.monitor.002.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
31.clamd.monitor.003.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
40.vsftpd.monitor.002.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
40.vsftpd.shutdown.002.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
40.vsftpd.startup.002.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
41.httpd.monitor.002.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
41.httpd.shutdown.002.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
41.httpd.startup.002.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
49.winbind.monitor.101.sh ctdb-tests: 49.winbind event script setup modularisation 2018-03-28 02:57:19 +02:00
49.winbind.monitor.102.sh ctdb-tests: 49.winbind event script setup modularisation 2018-03-28 02:57:19 +02:00
49.winbind.shutdown.002.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
49.winbind.startup.002.sh ctdb-tests: Drop residual CTDB_MANAGED_<service> variables 2018-07-11 11:48:39 +02:00
50.samba.monitor.101.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.monitor.103.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.monitor.104.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.monitor.105.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.monitor.106.sh ctdb-tests: Use setup_script_options() in 50.samba tests 2018-03-28 02:57:20 +02:00
50.samba.monitor.110.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.monitor.111.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.monitor.112.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.monitor.113.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.shutdown.001.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.shutdown.002.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.shutdown.011.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
50.samba.startup.011.sh ctdb-tests: 50.samba event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.101.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.102.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.103.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.104.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.105.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.106.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.107.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.monitor.108.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.monitor.109.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.monitor.111.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.112.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.113.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.114.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.121.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.122.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.131.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.132.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.141.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.142.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.143.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.144.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.151.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.152.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.153.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.161.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.monitor.162.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.multi.001.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.multi.002.sh ctdb-tests: 60.nfs (and 06.nfs) event script setup modularisation 2018-03-28 02:57:19 +02:00
60.nfs.releaseip.001.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.releaseip.002.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.shutdown.001.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.shutdown.002.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.startup.001.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.startup.002.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.takeip.001.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
60.nfs.takeip.002.sh ctdb-tests: Use setup_script_options() in 60.nfs (and 06.nfs) tests 2018-03-28 02:57:20 +02:00
91.lvs.001.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.ipreallocated.011.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.ipreallocated.012.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.ipreallocated.013.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.ipreallocated.014.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.monitor.001.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.monitor.002.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.monitor.003.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.shutdown.001.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.shutdown.002.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.startup.001.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
91.lvs.startup.002.sh ctdb-tests: 91.lvs event script setup modularisation 2018-03-28 02:57:19 +02:00
README ctdb-tests: Remove function iterate_test() 2015-07-14 09:57:17 +02:00
statd-callout.001.sh ctdb-tests: statd-callout script setup modularisation 2018-03-28 02:57:19 +02:00
statd-callout.002.sh ctdb-tests: statd-callout script setup modularisation 2018-03-28 02:57:19 +02:00
statd-callout.003.sh ctdb-tests: statd-callout script setup modularisation 2018-03-28 02:57:19 +02:00
statd-callout.004.sh ctdb-tests: statd-callout script setup modularisation 2018-03-28 02:57:19 +02:00
statd-callout.005.sh ctdb-tests: statd-callout script setup modularisation 2018-03-28 02:57:19 +02:00
statd-callout.006.sh ctdb-tests: statd-callout script setup modularisation 2018-03-28 02:57:19 +02:00
statd-callout.007.sh ctdb-tests: statd-callout script setup modularisation 2018-03-28 02:57:19 +02: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.