diff options
Diffstat (limited to 'testprogs/blackbox')
-rwxr-xr-x | testprogs/blackbox/dbcheck.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testprogs/blackbox/dbcheck.sh b/testprogs/blackbox/dbcheck.sh new file mode 100755 index 0000000000..447d14a8c8 --- /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 |