smbd: Simplify validate_lock_entries
[Samba.git] / ctdb / tests / eventscripts / 00.ctdb.init.004.sh
blobb504d08b2c958696f680b446fae803e6dad48dc1
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "TDB check, tdbtool supports check, bad TDB"
7 setup_ctdb
9 FAKE_TDBTOOL_SUPPORTS_CHECK="yes"
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: database ${db} is corrupted.
19 Moving to backup ${db}.${FAKE_DATE_OUTPUT}.corrupt for later analysis.
20 EOF
22 simple_test