1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/tests/onnode
Martin Schwenke e8de58abd7 tools/onnode: Fix healthy/ok node handling
This bit-rotted a long time ago when the "ThisNode" column was added
to "ctdb -Y status" output.  The fake "ctdb -Y status" output in the
test was never updated to reflect this change.

Instead of making sure that all columns are "0", just check that
they're not "1".  This implicitly ignores "Y" and "N" in this
"ThisNode" column without having to do anything else clever.

Also update associated tests.  The main "ctdb ok" test had a duplicate
opening line for a here document, which was tickled by this change.

This fixes samba bz#8122.

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

onnode test fixup

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

(This used to be ctdb commit 01a46205c3a3d6609dc0b0324319b89667dffa32)
2013-10-29 17:14:55 +11:00
..
scripts tests: Unit tests should use $TEST_VAR_DIR 2012-04-27 15:42:42 +10:00
stubs Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-03 15:55:35 +10:00
0001.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0002.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0003.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0004.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0005.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0006.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0070.sh tools/onnode: Fix healthy/ok node handling 2013-10-29 17:14:55 +11:00
0071.sh tools/onnode: Fix healthy/ok node handling 2013-10-29 17:14:55 +11:00
0072.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0075.sh tools/onnode: Fix healthy/ok node handling 2013-10-29 17:14:55 +11:00
0080.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0081.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0090.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
0091.sh tests/onnode - Restructure according to new convention 2012-04-16 15:57:16 +10:00
nodes Tests: add initial onnode tests 2011-08-03 15:51:44 +10:00
README tests: Make run_tests -X more flexible - it now works with onnode 2012-04-27 15:40:43 +10:00

onnode unit tests
=================

Examples:

* ../run_tests.sh .

  Run all tests, displaying output.

* ../run_tests.sh -s .

  Run all tests, displaying output and a summary.

* ../run_tests.sh -sq .

  Run all tests, displaying only a summary.

* ONNODE=onnode-buggy-001 ../run_tests.sh -s .

  Run against stubs/onnode-buggy-001 instead of default onnode version.

  Add more buggy versions of onnode to this directory as bugs are
  fixed to enable test validation using this feature.

* ../run_tests.sh ./009*.sh

  Run only the specified tests.

* ONNODE="stubs/onnode-buggy-001" ../run_tests.sh -X ./0090.sh
  ../run_tests.sh -X ./0090.sh

  Debug the specified test or test failure by tracing onnode with
  "bash -x".  The test will fail because the bash trace output will be
  included in the test output.

  To see if the test pases, the -X can be dropped...