3 # Test pass through files.
6 . $srcdir/defs || exit 1
8 cat >test_input.ps <<EOF
10 /Times-Roman findfont 30 scalefont setfont
11 100 100 moveto (Hi, I am a PostScript file) show
15 ### test_pass_through() {
16 $enscript -G2r --quiet --pass-through -p- test_input.ps \
19 result=`tail +2 test_input.ps | cmp - $output`
21 if test "X$result" != "X"; then
28 echo 'D%!' | tr 'D' '\4' >test_input.ps
29 cat >>test_input.ps <<EOF
30 /Times-Roman findfont 30 scalefont setfont
31 100 100 moveto (Hi, I am a Windows damaged PostScript file) show
35 ### test_pass_through() {
36 $enscript -G2r --quiet --pass-through -p- test_input.ps \
39 result=`tail +2 test_input.ps | cmp - $output`
41 if test "X$result" != "X"; then
48 echo '@E' | tr '@' '\33' >test_input.pcl
49 cat >>test_input.pcl <<EOF
50 This isn't really a PCL file but the magic is correct.
53 ### test_pass_through() {
54 $enscript -G2r --quiet --pass-through -p- test_input.pcl \
57 result=`tail +2 test_input.pcl | cmp - $output`
59 if test "X$result" != "X"; then
66 echo '@%' | tr '@' '\33' >test_input.pcl
67 cat >>test_input.pcl <<EOF
68 This isn't really a PCL file but the magic is correct.
71 ### test_pass_through() {
72 $enscript -G2r --quiet --pass-through -p- test_input.pcl \
75 result=`tail +2 test_input.pcl | cmp - $output`
77 if test "X$result" != "X"; then