c1e8aafd36fc60925e90c63cb3a072870a65b2ea
[obnox/samba/samba-obnox.git] / testprogs / blackbox / dbcheck.sh
1 #!/bin/sh
2
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: dbcheck.sh PREFIX
6 EOF
7 exit 1;
8 fi
9
10 PREFIX="$1"
11 shift 1
12
13 . `dirname $0`/subunit.sh
14
15 dbcheck() {
16         $BINDIR/samba-tool dbcheck --cross-ncs $@
17 }
18
19 # This test shows that this does not do anything to a current
20 # provision (that would be a bug)
21 dbcheck_reset_well_known_acls() {
22         $BINDIR/samba-tool dbcheck --cross-ncs --reset-well-known-acls $@
23 }
24
25 reindex() {
26         $BINDIR/samba-tool dbcheck --reindex
27 }
28
29 force_modules() {
30         $BINDIR/samba-tool dbcheck --force-modules
31 }
32
33 testit "dbcheck" dbcheck
34 testit "reindex" reindex
35 testit "force_modules" force_modules
36
37 exit $failed