1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/simple
Martin Schwenke d9d07fff34 ctdb-tests: Try to handle IPv6 addresses for local daemons
If CTDB_USE_IPV6 is set then use IPv6 addresses for nodes and public
IPs.  This can be useful for some simple tests.  However, the node
address actually needs to be on lo so that ctdbd can bind to the port
on that address, so they actually need to be added as root before
running tests, like this:

  for i in $(seq 1 10) ; do ip addr add "fc00:10::${i}/64" dev lo ; done

IPv4 127.0.0.0/8 addresses are somehow magic and only one needs to be
on lo so that many can be bound to.

Also change the IPv4 node addresses to be (slightly) more exotic.

For both IPv4 and IPv6, choose addresses that are compatible with
socket wrapper.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Amitay Isaacs <amitay@gmail.com> (socket wrapper fixes)
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net> (socket wrapper fixes)
2014-12-05 21:02:40 +01:00
..
scripts ctdb-tests: Try to handle IPv6 addresses for local daemons 2014-12-05 21:02:40 +01:00
00_ctdb_init.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
00_ctdb_onnode.sh ctdb/tests/integration: Remove the time logging code 2013-12-05 00:40:37 +01:00
01_ctdb_version.sh ctdb-tests: Fix the tests for waf build 2014-06-20 23:38:10 +02:00
02_ctdb_listvars.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
03_ctdb_getvar.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
04_ctdb_setvar.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
05_ctdb_listnodes.sh ctdb-tests: Extend regexp to match IPv6 addresses 2014-12-05 21:02:40 +01:00
06_ctdb_getpid.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
07_ctdb_process_exists.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
08_ctdb_isnotrecmaster.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
09_ctdb_ping.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
11_ctdb_ip.sh ctdb-tests: Update integration tests to use ctdb -X 2014-12-05 21:02:40 +01:00
12_ctdb_getdebug.sh ctdb-tests: Update integration tests to use ctdb -X 2014-12-05 21:02:40 +01:00
13_ctdb_setdebug.sh ctdb-logging: Remove debug levels DEBUG_ALERT and DEBUG_CRIT 2014-10-28 05:42:04 +01:00
14_ctdb_statistics.sh tests: Fix statistics test for new output lines from locking API 2012-10-20 02:48:44 +11:00
15_ctdb_statisticsreset.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
16_ctdb_config_add_ip.sh ctdb-tests: Clean up some tests where IP movement is checked 2014-09-23 08:06:12 +02:00
17_ctdb_config_delete_ip.sh ctdb-tests: Clean up some tests where IP movement is checked 2014-09-23 08:06:12 +02:00
18_ctdb_reloadips.sh tests/simple: Fix the reloadips test to cope with changes to reloadips 2013-09-19 12:54:32 +10:00
20_delip_iface_gc.sh ctdb-tests: Update integration tests to use ctdb -X 2014-12-05 21:02:40 +01:00
23_ctdb_moveip.sh ctdb-tests: Clean up some tests where IP movement is checked 2014-09-23 08:06:12 +02:00
24_ctdb_getdbmap.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
25_dumpmemory.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
26_ctdb_config_check_error_on_unreachable_ctdb.sh tests/simple: Unreachable node test should wait for recovery to complete 2013-08-14 15:57:03 +10:00
27_ctdb_detach.sh ctdb-tests: Update integration tests to use ctdb -X 2014-12-05 21:02:40 +01:00
31_ctdb_disable.sh ctdb-tests: Clean up some tests where IP movement is checked 2014-09-23 08:06:12 +02:00
32_ctdb_enable.sh ctdb-tests: Clean up some tests where IP movement is checked 2014-09-23 08:06:12 +02:00
41_ctdb_stop.sh ctdb-tests: Clean up some tests where IP movement is checked 2014-09-23 08:06:12 +02:00
42_ctdb_continue.sh ctdb-tests: Clean up some tests where IP movement is checked 2014-09-23 08:06:12 +02:00
43_stop_recmaster_yield.sh tests: Rename ctdb_test_functions.bash to integration.bash 2012-04-27 15:40:43 +10:00
51_ctdb_bench.sh ctdb-tests: Remove -q option to try_command_on_node 2013-11-27 18:46:15 +01:00
52_ctdb_fetch.sh ctdb-tests: Remove -q option to try_command_on_node 2013-11-27 18:46:15 +01:00
53_ctdb_transaction.sh ctdb-tests: Remove -q option to try_command_on_node 2013-11-27 18:46:15 +01:00
54_ctdb_transaction_recovery.sh ctdb:tests/simple: Nobody looks at /tmp/recloop.out so use /dev/null instead 2013-11-27 20:39:00 +01:00
55_ctdb_ptrans.sh ctdb-tools/ctdb: New ptrans command 2013-11-27 18:46:16 +01:00
58_ctdb_restoredb.sh ctdb-tests: Add a test for ctdb restoredb 2014-07-07 16:06:39 +02:00
60_recoverd_missing_ip.sh ctdb-tests: Remove dependency on log ringbuffer from missing IP test 2014-09-23 08:06:12 +02:00
70_recoverpdbbyseqnum.sh ctdb-tests/integration: Neaten up some of the persistent database tests 2013-11-27 18:46:16 +01:00
71_ctdb_wipedb.sh ctdb-tests: Check that ctdb wipedb cleans the database 2014-07-07 13:29:50 +02:00
72_update_record_persistent.sh ctdb-tests/integration: Neaten up some of the persistent database tests 2013-11-27 18:46:16 +01:00
73_tunable_NoIPTakeover.sh ctdb-tests/simple: User sleep_for() instead of sleep 2013-11-27 18:46:16 +01:00
75_readonly_records_basic.sh ctdb-tests: Update integration tests to use ctdb -X 2014-12-05 21:02:40 +01:00
76_ctdb_pdb_recovery.sh ctdb:tests:76_ctdb_pdb_recovery: change from using ctdb pstore to ctdb ptrans. 2013-11-28 07:31:13 +01:00
77_ctdb_db_recovery.sh ctdb-tests: CTDB tool should always be invoked as $CTDB instad of ctdb 2013-11-27 18:46:15 +01:00
80_ctdb_traverse.sh ctdb-tests: CTDB tool should always be invoked as $CTDB instad of ctdb 2013-11-27 18:46:15 +01:00
99_daemons_shutdown.sh ctdb/tests/integration: Update daemons shutdown pseudo-test 2013-12-05 00:43:12 +01:00
README tests: Update README files and add new README files where missing 2012-04-27 15:40:43 +10:00

Simple integration tests.  These can be run against a pool of CTDB
daemons running on the local machine - aka "local daemons".