File: parse

package info (click to toggle)
parser 3.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,444 kB
  • sloc: cpp: 35,352; sh: 15,643; ansic: 10,375; yacc: 1,378; makefile: 242
file content (18 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

LOG="-l /dev/stderr"

if [ -z $AUTOPKGTEST_TMP ]; then
    # The script is invoked from the override_dh_auto_test target.
    PARSER=src/targets/cgi/parser3
    DIR=debian/examples
    CONF="-f etc/auto.p"
else
    PARSER=parser3
    DIR=/usr/share/doc/parser3-common/examples
fi

# The exit status of parser3 is always zero.
$PARSER $LOG $CONF $DIR/index.en.html | grep --quiet "If you see this page"