Merge branch 'master' of ctdb into 'master' of samba
[sfrench/samba-autobuild/.git] / ctdb / tests / eventscripts / 00.ctdb.init.005.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "TDB check, tdbtool does not support check, good TDB"
6
7 setup_ctdb
8
9 FAKE_TDBTOOL_SUPPORTS_CHECK="no"
10
11 touch "${CTDB_DBDIR}/foo.tdb.0"
12 FAKE_TDB_IS_OK="yes"
13
14 ok <<EOF
15 WARNING: The installed 'tdbtool' does not offer the 'check' subcommand.
16  Using 'tdbdump' for database checks.
17  Consider updating 'tdbtool' for better checks!
18 EOF
19
20 simple_test