about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-02-20 21:22:55 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-02-20 21:22:55 +0000
commitb23ee4dcfc6e298f6bb4d0f464e17f7942eece85 (patch)
tree0b5273207212292a5d26feec6b7400f5c8a9696d /test
parent3ac3b9ad7a48429c3e9e63e4eda9541ae48a0069 (diff)
downloadnetpbm-mirror-b23ee4dcfc6e298f6bb4d0f464e17f7942eece85.tar.gz
netpbm-mirror-b23ee4dcfc6e298f6bb4d0f464e17f7942eece85.tar.xz
netpbm-mirror-b23ee4dcfc6e298f6bb4d0f464e17f7942eece85.zip
Use prefabricated colormap instead of generating it dynamically
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4499 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test')
-rwxr-xr-xtest/ilbm-roundtrip.test20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/ilbm-roundtrip.test b/test/ilbm-roundtrip.test
index e7a1a4e5..3d7d63ef 100755
--- a/test/ilbm-roundtrip.test
+++ b/test/ilbm-roundtrip.test
@@ -33,7 +33,25 @@ rm ${test_ppm}
 
 echo "Test 5.  Should print 482756572 101484 twice"
 mapfile=${tmpdir}/mapfile
-pnmcolormap 32 testimg.ppm > ${mapfile}
+
+# The following was produced by running "pnmcolormap -plain 32 testimg.ppm"
+# We use a prefabricated mapfile because pnmcolormap is known to
+# produce slightly different output on different systems.
+
+cat > ${mapfile} << EOF
+P3
+32 1
+255
+106 82 80 46 43 34 128 62 46 189 68 63 209 41 43 209 65 46 241 62 72
+ 240 189 195 
+122 142 103 92 131 68 159 129 188 177 205 195 96 132 107 193 150 107
+ 242 253 238 241 73 108 
+121 75 67 182 67 47 98 88 48 237 36 47 66 45 42 68 84 43 182 45 41
+ 70 77 67 
+96 45 45 237 62 47 150 59 41 189 76 103 48 69 31 52 68 52 48 45 51
+ 105 80 130 
+EOF
+
 ppmtoilbm -map ${mapfile} testimg.ppm | ilbmtoppm | tee ${test_ppm} | cksum
 ppmtoilbm -map ${mapfile} ${test_ppm} | ilbmtoppm | cksum