mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
s4-test: added dbcheck run to test suite
This should catch corruption that happens during a test run Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
a8cba72119
commit
190ec87964
@ -34,3 +34,4 @@ rpc.handles
|
||||
rpc.echo
|
||||
smb.signing
|
||||
drs.unit
|
||||
samba4.blackbox.dbcheck
|
||||
|
@ -464,3 +464,6 @@ plantestsuite("samba4.blackbox.provision-backend.py", "none", ["PYTHON=%s" % pyt
|
||||
|
||||
# Test renaming the DC
|
||||
plantestsuite("samba4.blackbox.renamedc.sh", "none", ["PYTHON=%s" % python, os.path.join(bbdir, "renamedc.sh"), '$PREFIX/provision'])
|
||||
|
||||
# check the database is all OK. PLEASE LEAVE THIS AS THE LAST TEST
|
||||
plantestsuite("samba4.blackbox.dbcheck.sh", "dc:local", ["PYTHON=%s" % python, os.path.join(bbdir, "dbcheck.sh"), '$PREFIX/provision', configuration])
|
||||
|
21
testprogs/blackbox/dbcheck.sh
Executable file
21
testprogs/blackbox/dbcheck.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
cat <<EOF
|
||||
Usage: dbcheck.sh PREFIX
|
||||
EOF
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
PREFIX="$1"
|
||||
shift 1
|
||||
|
||||
. `dirname $0`/subunit.sh
|
||||
|
||||
dbcheck() {
|
||||
$BINDIR/samba-tool dbcheck --fix --cross-ncs --yes $@
|
||||
}
|
||||
|
||||
testit "dbcheck" dbcheck
|
||||
|
||||
exit $failed
|
Loading…
Reference in New Issue
Block a user