5 Usage: dbcheck.sh PREFIX
13 . `dirname $0`/subunit.sh
15 alpha13_dir=`dirname $0`/../../source4/selftest/provisions/alpha13
18 if test -x $BINDIR/tdbrestore;
20 `dirname $0`/../../source4/selftest/provisions/undump.sh $alpha13_dir $PREFIX_ABS/alpha13 $BINDIR/tdbrestore
22 `dirname $0`/../../source4/selftest/provisions/undump.sh $alpha13_dir $PREFIX_ABS/alpha13
27 $BINDIR/samba-tool dbcheck --reindex -H tdb://$PREFIX_ABS/alpha13/private/sam.ldb $@
30 # This should 'fail', because it returns the number of modified records
32 $BINDIR/samba-tool dbcheck --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/alpha13/private/sam.ldb $@
34 # But having fixed it all up, this should pass
36 $BINDIR/samba-tool dbcheck --cross-ncs -H tdb://$PREFIX_ABS/alpha13/private/sam.ldb $@
39 if [ -d $alpha13_dir ]; then
40 testit "alpha13" alpha13
41 testit "reindex" reindex
42 testit_expect_failure "dbcheck" dbcheck
43 testit "dbcheck_clean" dbcheck_clean
45 subunit_start_test "alpha13"
46 subunit_skip_test "alpha13" <<EOF
50 subunit_start_test "reindex"
51 subunit_skip_test "reindex" <<EOF
54 subunit_start_test "dbcheck"
55 subunit_skip_test "dbcheck" <<EOF
58 subunit_start_test "dbcheck_clean"
59 subunit_skip_test "dbcheck_clean" <<EOF