File: deleg-1.tst

package info (click to toggle)
a2ps 1:4.13b-4.3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,088 kB
  • ctags: 4,763
  • sloc: ansic: 31,114; sh: 14,723; lex: 2,286; perl: 1,150; yacc: 757; makefile: 707; lisp: 399; ada: 263; objc: 189; java: 151; f90: 109; pascal: 109; sed: 107; ml: 85; sql: 74; modula3: 33; haskell: 32; python: 24
file content (28 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download | duplicates (12)
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
#! /bin/sh
# -*- ksh -*-

# This program checks that a2ps handles correctly the delegations

: ${SRCDIR=.}

# The options to run with
OPT="-ZEtest_delegation"

# The testing file
IN_NAME=report.pre

# Outputs
OUT_NAME=del.ps

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

# Run the test
eval $CHK $OPT $TST_FILE -P $CHK_FILE
if test -f $REF_FILE; then :; else
  eval $REF $OPT $TST_FILE -P $REF_FILE
fi

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