File: test-cmdline

package info (click to toggle)
aspic 2.00%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,300 kB
  • sloc: ansic: 5,760; sh: 280; makefile: 70
file content (27 lines) | stat: -rwxr-xr-x 617 bytes parent folder | download
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
#! /bin/sh

ASPIC=aspic

# Skip run- and build time dependent lines
echo | $ASPIC |grep -v ^%%Creator: | grep -v ^%%CreationDate: > $AUTOPKGTEST_TMP/test.eps

if cmp $AUTOPKGTEST_TMP/test.eps <<EOF; then
%!PS-Adobe-2.0 EPSF-2.0
%%Title: Unknown
%%BoundingBox: 0 0 0.001 0.001
%%EndComments

/mymove{
{currentpoint} stopped {moveto}{
  exch 4 1 roll sub 3 1 roll exch sub
  dup abs 0.01 lt 3 -1 roll dup abs 0.01 lt
  3 -1 roll and {pop pop}{rmoveto} ifelse
  } ifelse
}def
showpage
EOF
  echo success: expected output from $ASPIC
else
  echo failure: unexpected output from $ASPIC:
  cat $AUTOPKGTEST_TMP/test.eps
fi