File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,25 @@ rm ${test_ppm}
33
33
34
34
echo " Test 5. Should print 482756572 101484 twice"
35
35
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
+
37
55
ppmtoilbm -map ${mapfile} testimg.ppm | ilbmtoppm | tee ${test_ppm} | cksum
38
56
ppmtoilbm -map ${mapfile} ${test_ppm} | ilbmtoppm | cksum
39
57
You can’t perform that action at this time.
0 commit comments