root / pkpgcounter / trunk / tests / runtest.sh @ 480

Revision 480, 3.2 kB (checked in by jerome, 17 years ago)

v3.20 is out with support for Brother HBP and improved PCLXL
parser wrt the inclusion of Canon ImageRunner? commands.

  • Property svn:executable set to *
  • Property svn:keywords set to Auth Date Id Rev
Line 
1#! /bin/sh
2#
3# pkpgcounter : a generic Page Description Language parser
4#
5# (c) 2003, 2004, 2005, 2006, 2007 Jerome Alet <alet@librelogiciel.com>
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation, either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
19echo -n "Generating testsuite..."
20gunzip <master.ps.gz >master2.ps
21for device in hl1240 \
22              hl1250 \
23              hl7x0 \
24              lj250 \
25              lj4dithp \
26              ljet2p \
27              ljet4pjl \
28              ljetplus \
29              laserjet \
30              ljet3 \
31              ljet4 \
32              lj5gray \
33              lj5mono \
34              pxlmono \
35              pxlcolor \
36              pdfwrite \
37              pswrite \
38              psgray \
39              psmono \
40              psrgb \
41              epson \
42              epsonc \
43              eps9mid \
44              eps9high \
45              stcolor \
46              st800 \
47              escp \
48              pcl3 \
49              cdeskjet \
50              cdj1600 \
51              cdj500 \
52              cdj550 \
53              cdj670 \
54              cdj850 \
55              cdj880 \
56              cdj890 \
57              cdj970 \
58              cdjcolor \
59              cdjmono \
60              dj505j \
61              djet500 \
62              djet500c \
63              hpdj1120c \
64              hpdj310 \
65              hpdj320 \
66              hpdj340 \
67              hpdj400 \
68              hpdj500 \
69              hpdj500c \
70              hpdj510 \
71              hpdj520 \
72              hpdj540 \
73              hpdj550c \
74              hpdj560c \
75              hpdj600 \
76              hpdj660c \
77              hpdj670c \
78              hpdj680c \
79              hpdj690c \
80              hpdj850c \
81              hpdj855c \
82              hpdj870c \
83              hpdj890c \
84              hpdjplus \
85              hpdjportable \
86              tiff12nc \
87              tiff24nc \
88              tiffcrle \
89              tiffg3 \
90              tiffg32d \
91              tiffg4 \
92              tifflzw \
93              tiffpack ; do
94    if ! [ -f "testsuite.$device" ]  ; then
95        gs -dQUIET -dBATCH -dNOPAUSE -sOutputFile="testsuite.$device" -sDEVICE="$device" master2.ps ; 
96    fi ;
97    done
98   
99if ! [ -f "colors.pdf" ]  ; then
100   python ./runcolors.py ; 
101fi ;
102echo
103
104echo -n "File master.ps should be 16 pages long, result is : "
105python ../pkpgpdls/analyzer.py master2.ps
106
107echo "Analyzing testsuite..."
108for file in testsuite.* ; do
109    echo -n "$file ===> " && python ../pkpgpdls/analyzer.py "$file" ;
110done   
111echo
112
113echo "Analyzing colors..."
114for cspace in BW RGB CMY CMYK ; do
115    echo "Colorspace : $cspace" ;
116    python ../pkpgpdls/analyzer.py --colorspace $cspace colors.pdf ;
117    echo ;
118done   
Note: See TracBrowser for help on using the browser.