about summary refs log tree commit diff
path: root/test/gif-roundtrip.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-06-29 19:02:18 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-06-29 19:02:18 +0000
commit9602cdc10e7e2321ced1f30053a0b7b22edd433d (patch)
tree9a947bdd3cb43d45a8bfa3fc4288cac44ae4835e /test/gif-roundtrip.test
parentfe835f6d3d19026dc3316de80062b44cfa78f7f9 (diff)
downloadnetpbm-mirror-9602cdc10e7e2321ced1f30053a0b7b22edd433d.tar.gz
netpbm-mirror-9602cdc10e7e2321ced1f30053a0b7b22edd433d.tar.xz
netpbm-mirror-9602cdc10e7e2321ced1f30053a0b7b22edd433d.zip
New tests
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1964 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/gif-roundtrip.test')
-rwxr-xr-xtest/gif-roundtrip.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/gif-roundtrip.test b/test/gif-roundtrip.test
index 73246705..a32d574a 100755
--- a/test/gif-roundtrip.test
+++ b/test/gif-roundtrip.test
@@ -1,6 +1,6 @@
 #! /bin/bash
 # This script tests: giftopnm pamtogif
-# Also requires: ppmtopgm ppmtorgb3 rgb3toppm
+# Also requires: ppmtopgm ppmtorgb3 rgb3toppm pbmmake
 
 # Test 1. Should produce 2871603838 33838
 # which is the result of ppmtopgm testimg.ppm | cksum
@@ -28,3 +28,12 @@ rm ${tmpdir}/testimg.{ppm,red,grn,blu} ${tmpdir}/out.{red,grn}
 
 # Test 3. Should produce 2425386270 41
 ${PBM_TESTPREFIX}pamtogif testgrid.pbm | ${PBM_TESTPREFIX}giftopnm | cksum
+
+# Test 4.
+# In this gif file the code length changes after the last image data.
+# Image data: 3 bits, end code 4 bits.
+# Should produce P1 4 1 0 1 0 1
+
+${PBM_BINPREFIX}pbmmake -g 4 1 | \
+  ${PBM_TESTPREFIX}pamtogif | ${PBM_TESTPREFIX}giftopnm -plain | \
+  tr '\n' ' '