summaryrefslogtreecommitdiff
path: root/ucs-3.x/08-kolab-lm.sh
blob: 0f919c6189659c76b6012c427604ca2375e36eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

retval=$(./*-kolab-saslauthd-started.sh >/dev/null 2>&1; echo $?)

if [ $retval -ne 0 ]; then
    echo "SKIP: prerequisite test $(ls -1 *-kolab-saslauthd-started*) has failed"
    exit 1
fi

retval=$(./*-testsaslauthd-cyrus-admin.sh >/dev/null 2>&1; echo $?)

if [ $retval -ne 0 ]; then
    echo "SKIP: prerequisite test $(ls -1 *-testsaslauthd-cyrus-admin*) has failed"
    exit 1
fi

retval=$(kolab lm >/dev/null 2>&1; echo $?)

if [ $retval -eq 0 ]; then
    echo "OK: kolab list-mailboxes succeeds"
else
    echo "FAIL: kolab list-mailboxes fails"
fi