1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts
Martin Schwenke 184db1b6be tests/eventscripts: Extra cases for policy routing missing config test
Test the startup and monitor events too.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit c29a943f9bbcfecb861e71d007c7698a53dc8773)
2012-07-30 15:57:56 +10:00
..
etc tests/eventscripts: Use a canned ctdb.sysconfig rather than a link 2012-04-27 15:42:43 +10:00
etc-ctdb tests: More unit test factoring/rationalisation and bug fixes 2012-04-18 10:37:45 +10:00
scripts tests/eventscripts: Tweak expected output for lockd:b restart 2012-05-25 15:26:26 +10:00
stubs tests/eventscripts: Rewrite the testparm stub 2012-07-26 22:03:00 +10:00
10.interface.init.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.init.002.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.002.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.003.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.004.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.005.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.006.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.007.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.008.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.009.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.010.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.011.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.012.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.013.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.014.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.monitor.015.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.multi.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.releaseip.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.releaseip.002.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.startup.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.startup.002.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.takeip.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.takeip.002.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
10.interface.takeip.003.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.002.sh tests/eventscripts: Extra cases for policy routing missing config test 2012-07-30 15:57:56 +10:00
13.per_ip_routing.003.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.004.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.005.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.006.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.007.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.008.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.009.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.010.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.011.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
13.per_ip_routing.012.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
40.vsftpd.monitor.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
41.httpd.monitor.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.050.sh tests/eventscripts: Explicitly set CTDB_SERVICE_AUTOSTARTSTOP="yes" 2012-04-27 15:42:42 +10:00
50.samba.monitor.051.sh tests/eventscripts: Explicitly set CTDB_SERVICE_AUTOSTARTSTOP="yes" 2012-04-27 15:42:42 +10:00
50.samba.monitor.101.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.102.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.103.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.104.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.105.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.106.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.107.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.108.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.109.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.110.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
50.samba.monitor.111.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.100.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.101.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.111.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.112.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.121.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.122.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.131.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.132.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.141.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.142.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.151.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.152.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.153.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.161.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.monitor.162.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.multi.001.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.multi.002.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.multi.003.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.multi.004.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.multi.005.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
60.nfs.multi.006.sh tests/eventscripts - Restructure according to new convention 2012-04-16 16:24:12 +10:00
README tests: Update README files and add new README files where missing 2012-04-27 15:40:43 +10: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() or iterate_test() helper
functions 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.