summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventscripts/00.ctdb.init.004.sh
blob: 196d7c2af7c78da8cd7cde10ef845184487063be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "TDB check, tdbtool supports check, bad TDB"

setup

db="${CTDB_DBDIR}/foo.tdb.0"
touch "$db"
FAKE_TDB_IS_OK="no"

ok <<EOF
WARNING: database ${db} is corrupted.
 Moving to backup ${db}.DATE.TIME.corrupt for later analysis.
EOF

simple_test