File: deleg1.tst

package info (click to toggle)
a2ps 4.10.2-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 9,244 kB
  • ctags: 3,799
  • sloc: ansic: 27,271; sh: 6,209; lex: 1,466; yacc: 740; perl: 697; makefile: 678; lisp: 512; objc: 410; python: 319; ada: 263; java: 151; pascal: 109; f90: 109; sed: 93; ml: 85; sql: 74; modula3: 33
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 $?