seltest: implicit FILE_READ_DATA non-reporting
[Samba.git] / testprogs / blackbox / test_ldb_simple.sh
blob7375cbfd84374d596845182210dda36b091ff64c
1 #!/bin/sh
3 if [ $# -lt 2 ]; then
4 cat <<EOF
5 Usage: test_ldb_simple.sh PROTOCOL SERVER [OPTIONS]
6 EOF
7 exit 1;
8 fi
11 p=$1
12 SERVER=$2
13 PREFIX=$3
14 shift 2
15 options="$*"
17 . `dirname $0`/subunit.sh
19 check() {
20 name="$1"
21 shift
22 cmdline="$*"
23 echo "test: $name"
24 $cmdline
25 status=$?
26 if [ x$status = x0 ]; then
27 echo "success: $name"
28 else
29 echo "failure: $name"
30 failed=`expr $failed + 1`
32 return $status
35 export PATH="$BINDIR:$PATH"
37 ldbsearch="$VALGRIND ldbsearch"
39 check "currentTime" $ldbsearch $CONFIGURATION $options --basedn='' -H $p://$SERVER -s base currentTime || failed=`expr $failed + 1`
41 exit $failed