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

Revision 382, 1.3 kB (checked in by jerome, 16 years ago)

Now includes the test for colors.

  • Property svn:executable set to *
  • Property svn:keywords set to Auth Date Id Rev
Line 
1#! /bin/sh
2
3echo -n "Generating testsuite..."
4gunzip <master.ps.gz >master2.ps
5for 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
6    if ! [ -f "testsuite.$device" ]  ; then
7        gs -dQUIET -dBATCH -dNOPAUSE -sOutputFile="testsuite.$device" -sDEVICE="$device" master2.ps ; 
8    fi ;
9    done
10   
11if ! [ -f "colors.pdf" ]  ; then
12   python ./runcolors.py ; 
13fi ;
14echo
15
16echo -n "File master.ps should be 16 pages long, result is : "
17python ../pkpgpdls/analyzer.py master2.ps
18
19echo "Analyzing testsuite..."
20for file in testsuite.* ; do
21    echo -n "$file ===> " && python ../pkpgpdls/analyzer.py "$file" ;
22done   
23echo
24
25echo "Analyzing colors..."
26for cspace in BW RGB CMY CMYK ; do
27    echo "Colorspace : $cspace" ;
28    python ../pkpgpdls/analyzer.py --colorspace $cspace colors.pdf ;
29    echo ;
30done   
Note: See TracBrowser for help on using the browser.