s3:param: add a utility function lp_idmap_range() to get the configured range for...
[Samba/gebeck_regimport.git] / testprogs / blackbox / dbcheck.sh
blobfaf6fab82e9ed557ebf3e0cb71fa2796584561eb
1 #!/bin/sh
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: dbcheck.sh PREFIX
6 EOF
7 exit 1;
8 fi
10 PREFIX="$1"
11 shift 1
13 . `dirname $0`/subunit.sh
15 dbcheck() {
16 $BINDIR/samba-tool dbcheck --cross-ncs $@
19 reindex() {
20 $BINDIR/samba-tool dbcheck --reindex
23 force_modules() {
24 $BINDIR/samba-tool dbcheck --force-modules
27 testit "dbcheck" dbcheck
28 testit "reindex" reindex
29 testit "force_modules" force_modules
31 exit $failed