mirror of
https://github.com/samba-team/samba.git
synced 2025-02-10 13:57:47 +03:00
Switch to generic setup() function and set variables there. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
19 lines
297 B
Bash
Executable File
19 lines
297 B
Bash
Executable File
#!/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
|