Skip to content

Commit 7cec869

Browse files
author
giraffedata
committed
Use prefabricated colormap instead of generating it dynamically
git-svn-id: https://svn.code.sf.net/p/netpbm/code/trunk@4499 9d0c8265-081b-0410-96cb-a4ca84ce46f8
1 parent 6766926 commit 7cec869

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

test/ilbm-roundtrip.test

+19-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,25 @@ rm ${test_ppm}
3333

3434
echo "Test 5. Should print 482756572 101484 twice"
3535
mapfile=${tmpdir}/mapfile
36-
pnmcolormap 32 testimg.ppm > ${mapfile}
36+
37+
# The following was produced by running "pnmcolormap -plain 32 testimg.ppm"
38+
# We use a prefabricated mapfile because pnmcolormap is known to
39+
# produce slightly different output on different systems.
40+
41+
cat > ${mapfile} << EOF
42+
P3
43+
32 1
44+
255
45+
106 82 80 46 43 34 128 62 46 189 68 63 209 41 43 209 65 46 241 62 72
46+
240 189 195
47+
122 142 103 92 131 68 159 129 188 177 205 195 96 132 107 193 150 107
48+
242 253 238 241 73 108
49+
121 75 67 182 67 47 98 88 48 237 36 47 66 45 42 68 84 43 182 45 41
50+
70 77 67
51+
96 45 45 237 62 47 150 59 41 189 76 103 48 69 31 52 68 52 48 45 51
52+
105 80 130
53+
EOF
54+
3755
ppmtoilbm -map ${mapfile} testimg.ppm | ilbmtoppm | tee ${test_ppm} | cksum
3856
ppmtoilbm -map ${mapfile} ${test_ppm} | ilbmtoppm | cksum
3957

0 commit comments

Comments
 (0)