File: prolog-2.tst

package info (click to toggle)
a2ps 1:4.14-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 13,328 kB
  • sloc: ansic: 26,966; sh: 11,844; lex: 2,286; perl: 1,156; yacc: 757; makefile: 609; 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 (31 lines) | stat: -rwxr-xr-x 637 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
#! /bin/sh
# -*- ksh -*-

# Compare two prologues for -1 and -4 (used in align.tst)
: ${SRCDIR=.}

# Option to run a2ps with
OPT="-Eplain -Pawkin"

# The testing file
IN_NAME=formfeed.txt

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

for nup in 1 4
do
  # Checked and reference outputs
  ref_file=$REF_DIR/prolog-${nup}.ps
  chk_file=$CHK_DIR/prolog-${nup}.ps

  $verbose "Running a2ps -$nup $OPT $TST_FILE"
  $CHK -$nup $OPT $TST_FILE >$chk_file 2>&5
  if test ! -f $ref_file; then
    $verbose "Running ref-a2ps -$nup $OPT $TST_FILE"
    $REF -$nup $OPT $TST_FILE >$ref_file 2>&5
  fi
  cmp -s $ref_file $chk_file
done

exit $failure