diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-02-16 01:07:27 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-03-04 08:32:25 +0100 |
commit | 08f0562240155a871bd2a78d217db660e8ee3c91 (patch) | |
tree | f1f0833ca47e851f3db4d083a2f73b68a5848122 /testprogs/blackbox/dbcheck-alpha13.sh | |
parent | d7936ee20c20635d62657cb821ff6dc4eb5fe33c (diff) | |
download | samba-08f0562240155a871bd2a78d217db660e8ee3c91.tar.gz samba-08f0562240155a871bd2a78d217db660e8ee3c91.tar.bz2 samba-08f0562240155a871bd2a78d217db660e8ee3c91.zip |
selftest: Run dbcheck and improved upgrdeprovision tests against release-4-0-0
The improved upgradeprovision tests now call ldapcmp to verify the
changes made do actually bring the database in line with a fresh
provision.
Andrew Bartlett
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs/blackbox/dbcheck-alpha13.sh')
-rwxr-xr-x | testprogs/blackbox/dbcheck-alpha13.sh | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/testprogs/blackbox/dbcheck-alpha13.sh b/testprogs/blackbox/dbcheck-alpha13.sh deleted file mode 100755 index a028116075..0000000000 --- a/testprogs/blackbox/dbcheck-alpha13.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh - -if [ $# -lt 1 ]; then -cat <<EOF -Usage: dbcheck.sh PREFIX -EOF -exit 1; -fi - -PREFIX_ABS="$1" -shift 1 - -. `dirname $0`/subunit.sh - -alpha13_dir=`dirname $0`/../../source4/selftest/provisions/alpha13 - -alpha13() { - if test -x $BINDIR/tdbrestore; - then - `dirname $0`/../../source4/selftest/provisions/undump.sh $alpha13_dir $PREFIX_ABS/alpha13 $BINDIR/tdbrestore - else - `dirname $0`/../../source4/selftest/provisions/undump.sh $alpha13_dir $PREFIX_ABS/alpha13 - fi -} - -reindex() { - $BINDIR/samba-tool dbcheck --reindex -H tdb://$PREFIX_ABS/alpha13/private/sam.ldb $@ -} - -# This should 'fail', because it returns the number of modified records -dbcheck() { - $BINDIR/samba-tool dbcheck --cross-ncs --fix --yes -H tdb://$PREFIX_ABS/alpha13/private/sam.ldb $@ -} -# But having fixed it all up, this should pass -dbcheck_clean() { - $BINDIR/samba-tool dbcheck --cross-ncs -H tdb://$PREFIX_ABS/alpha13/private/sam.ldb $@ -} - -if [ -d $alpha13_dir ]; then - testit "alpha13" alpha13 - testit "reindex" reindex - testit_expect_failure "dbcheck" dbcheck - testit "dbcheck_clean" dbcheck_clean -else - subunit_start_test "alpha13" - subunit_skip_test "alpha13" <<EOF -no test provision -EOF - - subunit_start_test "reindex" - subunit_skip_test "reindex" <<EOF -no test provision -EOF - subunit_start_test "dbcheck" - subunit_skip_test "dbcheck" <<EOF -no test provision -EOF - subunit_start_test "dbcheck_clean" - subunit_skip_test "dbcheck_clean" <<EOF -no test provision -EOF -fi - -exit $failed |