testprogs/blackbox: add test_trust_utils.sh
[Samba.git] / ctdb / tests / eventscripts / 00.ctdb.init.006.sh
blob745bca0f993ba3401e5162bdd52410355c3a531d
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "TDB check, tdbtool does not support check, bad TDB"
7 setup_ctdb
9 FAKE_TDBTOOL_SUPPORTS_CHECK="no"
11 db="${CTDB_DBDIR}/foo.tdb.0"
12 touch "$db"
13 FAKE_TDB_IS_OK="no"
15 FAKE_DATE_OUTPUT="19690818.103000.000000001"
17 ok <<EOF
18 WARNING: The installed 'tdbtool' does not offer the 'check' subcommand.
19 Using 'tdbdump' for database checks.
20 Consider updating 'tdbtool' for better checks!
21 WARNING: database ${db} is corrupted.
22 Moving to backup ${db}.${FAKE_DATE_OUTPUT}.corrupt for later analysis.
23 EOF
25 simple_test