1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/ctdb/tests/UNIT/tool
Martin Schwenke be293a125f ctdb-tests: Add new tool unit tests to cover UNKNOWN state
Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Jun 28 10:16:59 UTC 2022 on sn-devel-184
2022-06-28 10:16:59 +00:00
..
scripts ctdb-tests: Prefix remaining environment variables with CTDB_ 2019-10-22 19:39:41 +00:00
ctdb.attach.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.attach.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.attach.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ban.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ban.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ban.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.catdb.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.catdb.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.cattdb.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.cattdb.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.continue.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.continue.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.continue.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.deletekey.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.disable.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.disable.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.disable.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.disable.004.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.enable.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.enable.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.enable.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getcapabilities.001.sh ctdb-tools: recovery master -> leader 2022-01-17 10:21:33 +00:00
ctdb.getcapabilities.002.sh ctdb-tools: recovery master -> leader 2022-01-17 10:21:33 +00:00
ctdb.getcapabilities.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getcapabilities.004.sh ctdb-tools: recovery master -> leader 2022-01-17 10:21:33 +00:00
ctdb.getdbmap.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getdbseqnum.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getdbseqnum.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getdbstatus.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getdbstatus.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getpid.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getpid.010.sh ctdb-tests: Add some tool unit tests to ensure that timeouts work 2020-02-10 05:34:08 +00:00
ctdb.getreclock.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getreclock.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getvar.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.getvar.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ifaces.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ip.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ip.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ip.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ip.004.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ip.005.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ip.006.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ip.007.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ipinfo.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ipinfo.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ipinfo.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.leader.001.sh ctdb-tools: recovery master -> leader 2022-01-17 10:21:33 +00:00
ctdb.leader.002.sh ctdb-tools: recovery master -> leader 2022-01-17 10:21:33 +00:00
ctdb.listnodes.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.listnodes.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.listvars.001.sh ctdb-common: Mark VacuumLimit tunable as obsolete 2019-10-04 07:07:21 +00:00
ctdb.lvs.001.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.lvs.002.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.lvs.003.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.lvs.004.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.lvs.005.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.lvs.006.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.lvs.007.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.lvs.008.sh ctdb: Change LVS to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.lvs.010.sh ctdb-tests: Add some tool unit tests to ensure that timeouts work 2020-02-10 05:34:08 +00:00
ctdb.natgw.001.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.natgw.002.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.natgw.003.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.natgw.004.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.natgw.005.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.natgw.006.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.natgw.007.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.natgw.008.sh ctdb: Change NAT gateway to use leader/follower 2020-07-24 08:37:31 +00:00
ctdb.natgw.010.sh ctdb-tests: Add some tool unit tests to ensure that timeouts work 2020-02-10 05:34:08 +00:00
ctdb.nodestatus.001.sh ctdb-tool: Add UNKNOWN pseudo state 2022-06-28 09:24:31 +00:00
ctdb.nodestatus.002.sh ctdb-tool: Add UNKNOWN pseudo state 2022-06-28 09:24:31 +00:00
ctdb.nodestatus.003.sh ctdb-tool: Add UNKNOWN pseudo state 2022-06-28 09:24:31 +00:00
ctdb.nodestatus.004.sh ctdb-tool: Add UNKNOWN pseudo state 2022-06-28 09:24:31 +00:00
ctdb.nodestatus.005.sh ctdb-tool: Add UNKNOWN pseudo state 2022-06-28 09:24:31 +00:00
ctdb.nodestatus.006.sh ctdb-tool: Add UNKNOWN pseudo state 2022-06-28 09:24:31 +00:00
ctdb.nodestatus.007.sh ctdb-tests: Add new tool unit tests to cover UNKNOWN state 2022-06-28 10:16:59 +00:00
ctdb.pdelete.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ping.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.pnn.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.process-exists.001.sh ctdb-tests: Skip "ctdb process-exists" tests when not on Linux 2020-03-10 07:37:34 +00:00
ctdb.process-exists.002.sh ctdb-tests: Skip "ctdb process-exists" tests when not on Linux 2020-03-10 07:37:34 +00:00
ctdb.process-exists.003.sh ctdb-tests: Skip "ctdb process-exists" tests when not on Linux 2020-03-10 07:37:34 +00:00
ctdb.pstore.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.ptrans.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.readkey.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.recover.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.011.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.012.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.013.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.014.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.015.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.016.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.017.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.018.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.019.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.020.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.021.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.023.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.reloadnodes.024.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.runstate.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.runstate.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.runstate.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.runstate.004.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.runstate.005.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbreadonly.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbreadonly.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbreadonly.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbreadonly.004.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbreadonly.005.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbsticky.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbsticky.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbsticky.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbsticky.004.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdbsticky.005.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdebug.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdebug.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setdebug.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setifacelink.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setifacelink.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setvar.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.setvar.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.status.001.sh ctdb-tool: Add UNKNOWN pseudo state 2022-06-28 09:24:31 +00:00
ctdb.status.002.sh ctdb-tool: Add UNKNOWN pseudo state 2022-06-28 09:24:31 +00:00
ctdb.status.003.sh ctdb-tests: Add new tool unit tests to cover UNKNOWN state 2022-06-28 10:16:59 +00:00
ctdb.stop.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.stop.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.stop.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.unban.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.unban.002.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.unban.003.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.uptime.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
ctdb.writekey.001.sh ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00
README ctdb-tests: Move tool tests to UNIT/ subdirectory 2019-09-26 04:45:37 +00:00

Unit tests for the ctdb tool (i.e. tools/ctdb).

Test case filenames can take 2 forms:

* func.<some_function>.NNN.sh

  Run <some_function> in the ctdb tool code using the
  ctdb_tool_functest test program.  This test program uses test stubs
  for CTDB client functions.

* stubby.<command>.NNN.sh

  Run the ctdb_tool_stubby test program with <command> as the 1st
  argument - subsequent are passed to simple_test().  ctdb_tool_stubby
  is linked against the test stubs for CTDB client functions.

To add tests here you may need to add appropriate test stubs.