File: pages-1.tst

package info (click to toggle)
a2ps 1:4.14-1.1+deb6u1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 12,324 kB
  • ctags: 4,908
  • sloc: ansic: 26,659; sh: 13,155; lex: 2,286; perl: 1,156; yacc: 757; makefile: 605; lisp: 398; ada: 263; objc: 189; f90: 109; ml: 85; sql: 74; pascal: 57; modula3: 33; haskell: 32; sed: 30; java: 29; python: 24
file content (35 lines) | stat: -rwxr-xr-x 826 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#! /bin/sh
# -*- ksh -*-

# This program checks that a2ps handles correctly the page ranges

: ${SRCDIR=.}

# The options to run with
# There are 7 pages to print formfeed.txt.  Use it twice to test
# Page selection of several files.
# Do not use compact mode to check that the pages are anyway correctly
# generated
# Get the first 2, the last 2, and 1 in the middle (one of each file)
# And one which is far too big
OPT="-C2mq --compact=no -a-2,4,7-8,13-,99"

# The testing file
IN_NAME=formfeed.txt

# Outputs
OUT_NAME=pages-1.ps

# Set up other vars
. $SRCDIR/defs || exit 1

# Run the test
$CHK $OPT $TST_FILE $TST_FILE -P awkout > $CHK_FILE || exit 1
if test -f $REF_FILE; then :; else
  $REF $OPT $TST_FILE $TST_FILE -P awkout > $REF_FILE || exit 1
fi

# Return the verdict
cmp $REF_FILE $CHK_FILE 2> /dev/null

exit 0