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

Revision 463, 2.1 kB (checked in by jerome, 17 years ago)

Licensing terms changed to GNU GPL v3.0 or higher.
Removed old PCL3/4/5 parser which for a long time now wasn't used
anymore, and for which I was not the original copyright owner.
Version number bumped to 3.00alpha to reflect licensing changes.

  • 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 cups lj250 lj4dithp ljet2p ljet4pjl ljetplus laserjet ljet3 ljet4 lj5gray lj5mono pxlmono pxlcolor pdfwrite pswrite psgray psmono psrgb epson epsonc eps9mid eps9high stcolor st800 escp escpc pcl3 cdeskjet cdj1600 cdj500 cdj550 cdj670 cdj850 cdj880 cdj890 cdj970 cdjcolor cdjmono dj505j djet500 djet500c hpdj1120c hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdjplus hpdjportable tiff12nc tiff24nc tiffcrle tiffg3 tiffg32d tiffg4 tifflzw tiffpack ; do
22    if ! [ -f "testsuite.$device" ]  ; then
23        gs -dQUIET -dBATCH -dNOPAUSE -sOutputFile="testsuite.$device" -sDEVICE="$device" master2.ps ; 
24    fi ;
25    done
26   
27if ! [ -f "colors.pdf" ]  ; then
28   python ./runcolors.py ; 
29fi ;
30echo
31
32echo -n "File master.ps should be 16 pages long, result is : "
33python ../pkpgpdls/analyzer.py master2.ps
34
35echo "Analyzing testsuite..."
36for file in testsuite.* ; do
37    echo -n "$file ===> " && python ../pkpgpdls/analyzer.py "$file" ;
38done   
39echo
40
41echo "Analyzing colors..."
42for cspace in BW RGB CMY CMYK ; do
43    echo "Colorspace : $cspace" ;
44    python ../pkpgpdls/analyzer.py --colorspace $cspace colors.pdf ;
45    echo ;
46done   
Note: See TracBrowser for help on using the browser.