[go: up one dir, main page]

File: smoke

package info (click to toggle)
smbldap-tools 0.9.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 960 kB
  • sloc: perl: 5,053; sh: 191; makefile: 100
file content (19 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

# DEP-8 smoke test for smbldap-tools
# Author: David da Silva Polverari <david.polverari@gmail.com>
#
# This is a simple test that runs /usr/sbin/smbldap-* scripts with no
# parameters. The expected responses in a clean environment are error messages
# complaining either about a missing configuration file or about Samba not
# being started, as there is no current debconf support for the package
# (see debian/TODO).

for script in /usr/sbin/smbldap-*; do
    [ -x $script ] && $script 2>&1 \
        | egrep 'Samba needs to be started first|Unable to open' \
        && continue
done

exit 0