[lsb-discuss] Can cups provided by lsb-test-printing work properly with the latest foomatic?
Till Kamppeter
till.kamppeter at gmail.com
Thu Sep 11 06:16:13 PDT 2008
Stew Benedict wrote:
> Thanks. Didn't really need the whole journal, was most interested in the 2
> tests in question. I reviewed these tests, and I'm not seeing that they
> even use cups. Tried to verify that with the author, but he was vague,
> saying "most do not use cups".
>
> Test 3 output indicates it is just testing the content of stdout from the
> foomatic call:
>
> 520|4 3 25504 1 10|Output written to stdout did not contain
> "\%\%Page:\s*1\s+1.*\%\%BeginFeature:\s*\*Option4\s+Choice\d.*gsave.*\%\%Page:\s
> *2\s+2.*\%\%BeginFeature:\s*\*Option4\s+Choice\d.*gsave.*\%\%Page:\s*3\s+3.*\%\%
> BeginFeature:\s*\*Option4\s+Choice\d.*gsave.*\%\%Page:\s*4\s+4.*\%\%BeginFeature
> :\s*\*Option4\s+Choice\d.*gsave"
> 220|4 3 1 23:15:55|FAIL
>
Here the output is checked for whether the option settings are inserted
in the PostScript data stream with perl and a complex regular expression
(shown). Is it perhaps possible that the perl behavior changed recently?
> Test 11 is not as clear, but looking at the code I don't see any call to
> "test_cups_job"
>
> 520|4 11 25504 1 11|Executing /usr/bin/foomatic-rip --ppd
> /opt/lsb/test/printing/tet_tmp_dir/24796aa/testfoomaticrip/foomatic-test.ppd
> -o
> FilterPath=/opt/lsb/test/printing/tet_tmp_dir/24796aa/testfoomaticrip/ -o
> 1-2,4:FoomaticOption1=Choice3
> /opt/lsb/test/printing/tet_tmp_dir/24796aa/testfoomaticrip/foomatic-test-input-p
> s.ps
> 520|4 11 25504 1 12|Checking: FoomaticOption1=Choice3 for pages 1-2 and 4
> 220|4 11 1 23:16:01|FAIL
>
> This would tend to make me think that cups isn't the issue at all, but
> that somehow the foomatic-rip behavior in your build has changed.
Here indeed CUPS is not involved. One sees in the log that foomatic-rip
was called directly. Intention of this test is to see whether page
overrides work. FoomaticOption1=Choice3 should be set only for pages 1,
2, and 4. The rest of the pages should have the default setting of
FoomaticOption1.
>
> Ref:
> http://bzr.linux-foundation.org/lsb/3.2/printing-test?cmd=content;rev=jeff%40xenpc-fedora8-20080114213503-n50jivyjjag25mqd;pathrevid=pqm%40linux-foundation.org-20080902120015-fnnvdh28310kkpyr;path=sources/printing-test/testfoomaticrip/testfoomaticrip.sh
>
As one can see in this test script only test 13 uses CUPS. All the
others call foomatic-rip directly. So both failures have happened
without influence of CUPS.
Till
More information about the lsb-discuss
mailing list