summaryrefslogtreecommitdiffstats
path: root/testprogs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-07-13 10:50:24 +1000
committerAndrew Tridgell <tridge@samba.org>2011-07-21 11:44:32 +1000
commit190ec8796409870d5af2bcd53482cd56cd73f33e (patch)
treea759ce8f38115b4471576b4a145ed41232773bef /testprogs
parenta8cba72119987803a806c3e05f3b5ac3c1be755d (diff)
downloadsamba-190ec8796409870d5af2bcd53482cd56cd73f33e.tar.gz
samba-190ec8796409870d5af2bcd53482cd56cd73f33e.tar.xz
samba-190ec8796409870d5af2bcd53482cd56cd73f33e.zip
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>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/dbcheck.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/testprogs/blackbox/dbcheck.sh b/testprogs/blackbox/dbcheck.sh
new file mode 100755
index 00000000000..447d14a8c85
--- /dev/null
+++ b/testprogs/blackbox/dbcheck.sh
@@ -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