File: test-help.sh

package info (click to toggle)
dhcpig 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120 kB
  • sloc: python: 551; sh: 8; makefile: 7
file content (14 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

# Ensure --help works
dhcpig --help >$AUTOPKGTEST_TMP/output

# Ensure --help prints something useful
if ! grep -q "http://github.com/kamorin/DHCPig" $AUTOPKGTEST_TMP/output
then 
    echo "ERROR: dhcpig --help looks wrong (no URL output):"
    cat $AUTOPKGTEST_TMP/output
    exit 1
fi