#! /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
