File: encoding.tst

package info (click to toggle)
a2ps 1%3A4.13b.dfsg.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 10,332 kB
  • ctags: 4,768
  • sloc: ansic: 31,114; sh: 15,047; lex: 2,286; perl: 1,150; yacc: 757; makefile: 700; lisp: 399; ada: 263; objc: 189; f90: 109; sed: 107; ml: 85; sql: 74; modula3: 33; haskell: 32; python: 24
file content (30 lines) | stat: -rwxr-xr-x 532 bytes parent folder | download | duplicates (13)
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
#! /bin/sh
# -*- ksh -*-

# We test the encoding support by a2ps.
# This is done through a file which dynamically calls several
# encodings.

: ${SRCDIR=.}

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

# Where is the test file
IN_NAME=encoding.pre

# Output name
OUT_NAME=encoding.ps

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

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

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