Skip to content

Commit d4253ba

Browse files
committed
Add basic sanity check for tiffcp LZW->JBIG conversion.
1 parent e924dd9 commit d4253ba

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

test/Makefile.am

+11-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ JPEG_DEPENDENT_CHECK_PROG=
6868
JPEG_DEPENDENT_TESTSCRIPTS=
6969
endif
7070

71+
if HAVE_JBIG
72+
if TIFF_TOOLS
73+
JBIG_DEPENDENT_TESTSCRIPTS=\
74+
tiffcp-lzw-single-strip-jbig.sh
75+
endif
76+
else
77+
JBIG_DEPENDENT_TESTSCRIPTS=
78+
endif
79+
7180
if BUILD_STATIC
7281
STATIC_CHECK_PROGS=rational_precision2double test_write_read_tags test_transferfunction_write_read
7382
endif
@@ -162,7 +171,8 @@ TESTSCRIPTS = \
162171
testfax4.sh \
163172
testfax3_bug_513.sh \
164173
testdeflatelaststripextradata.sh \
165-
$(JPEG_DEPENDENT_TESTSCRIPTS)
174+
$(JPEG_DEPENDENT_TESTSCRIPTS) \
175+
$(JBIG_DEPENDENT_TESTSCRIPTS)
166176
else
167177
TESTSCRIPTS=
168178
endif

test/tiffcp-lzw-single-strip-jbig.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
# Generated file, master is Makefile.am
3+
. ${srcdir:-.}/common.sh
4+
infile="$srcdir/images/lzw-single-strip.tiff"
5+
outfile="o-tiffcp-lzw-single-strip-jbig.tiff"
6+
f_test_convert "${TIFFCP} -c jbig" $infile $outfile
7+
f_tiffinfo_validate $outfile

0 commit comments

Comments
 (0)