Commit 157c936b970a19f58a279b9cbea81a36fcbb1b7e
1 parent
c1e39381
Use 8 bit per sample images in tests
In compare image tests, use the gs device tiff24nc instead of tiff12nc since the 4 bit per sample images created by tiff12nc could sometimes trigger a bug in tiffcmp. Fixes #20.
Showing
2 changed files
with
9 additions
and
2 deletions
ChangeLog
| 1 | +2013-11-21 Jay Berkenbilt <ejb@ql.org> | ||
| 2 | + | ||
| 3 | + * Change image comparison tests, which are disabled by default, to | ||
| 4 | + use tiff files with 8 bits per sample rather than 4. This works | ||
| 5 | + around a bug in tiffcmp but also increases time and disk space for | ||
| 6 | + image comparison tests. | ||
| 7 | + | ||
| 1 | 2013-10-28 Jay Berkenbilt <ejb@ql.org> | 8 | 2013-10-28 Jay Berkenbilt <ejb@ql.org> |
| 2 | 9 | ||
| 3 | * Fix MacOS compilation errors by adding a missing #include in a | 10 | * Fix MacOS compilation errors by adding a missing #include in a |
qpdf/qtest/qpdf.test
| @@ -2176,7 +2176,7 @@ sub compare_pdfs | @@ -2176,7 +2176,7 @@ sub compare_pdfs | ||
| 2176 | $td->runtest("convert original file to image", | 2176 | $td->runtest("convert original file to image", |
| 2177 | {$td->COMMAND => | 2177 | {$td->COMMAND => |
| 2178 | "(cd tif1;" . | 2178 | "(cd tif1;" . |
| 2179 | - " gs 2>/dev/null -q -dNOPAUSE -sDEVICE=tiff12nc" . | 2179 | + " gs 2>/dev/null -q -dNOPAUSE -sDEVICE=tiff24nc" . |
| 2180 | " -sOutputFile=a.tif - < ../$f1)"}, | 2180 | " -sOutputFile=a.tif - < ../$f1)"}, |
| 2181 | {$td->STRING => "", | 2181 | {$td->STRING => "", |
| 2182 | $td->EXIT_STATUS => 0}); | 2182 | $td->EXIT_STATUS => 0}); |
| @@ -2195,7 +2195,7 @@ sub compare_pdfs | @@ -2195,7 +2195,7 @@ sub compare_pdfs | ||
| 2195 | $td->runtest("convert new file to image", | 2195 | $td->runtest("convert new file to image", |
| 2196 | {$td->COMMAND => | 2196 | {$td->COMMAND => |
| 2197 | "(cd tif2;" . | 2197 | "(cd tif2;" . |
| 2198 | - " gs 2>/dev/null -q -dNOPAUSE -sDEVICE=tiff12nc" . | 2198 | + " gs 2>/dev/null -q -dNOPAUSE -sDEVICE=tiff24nc" . |
| 2199 | " -sOutputFile=a.tif - < ../$f2)"}, | 2199 | " -sOutputFile=a.tif - < ../$f2)"}, |
| 2200 | {$td->STRING => "", | 2200 | {$td->STRING => "", |
| 2201 | $td->EXIT_STATUS => 0}); | 2201 | $td->EXIT_STATUS => 0}); |