diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-08-21 02:11:21 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-08-21 02:11:21 +0000 |
commit | 8210ae1d90cf1ceb8499128a689b8c7742d39d6a (patch) | |
tree | d8dad69911c4392e58426107988ddd28d75934aa | |
parent | 954959fea3d4d3c4a20636953d7b60c2dc439481 (diff) | |
download | netpbm-mirror-8210ae1d90cf1ceb8499128a689b8c7742d39d6a.tar.gz netpbm-mirror-8210ae1d90cf1ceb8499128a689b8c7742d39d6a.tar.xz netpbm-mirror-8210ae1d90cf1ceb8499128a689b8c7742d39d6a.zip |
Add lookup-roundtrip
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2632 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | test/Test-Order | 1 | ||||
-rw-r--r-- | test/all-in-place.ok | 1 | ||||
-rwxr-xr-x | test/all-in-place.test | 1 | ||||
-rw-r--r-- | test/lookup-roundtrip.ok | 1 | ||||
-rwxr-xr-x | test/lookup-roundtrip.test | 12 |
5 files changed, 16 insertions, 0 deletions
diff --git a/test/Test-Order b/test/Test-Order index 3e29545a..92efca05 100644 --- a/test/Test-Order +++ b/test/Test-Order @@ -102,6 +102,7 @@ rgb3-roundtrip.test ppmchange-roundtrip.test pamdice-roundtrip.test pamslice-roundtrip.test +lookup-roundtrip.test # Round-trip tests : lossless converters diff --git a/test/all-in-place.ok b/test/all-in-place.ok index 61a9ee68..6ba75993 100644 --- a/test/all-in-place.ok +++ b/test/all-in-place.ok @@ -104,6 +104,7 @@ pamtouil: ok pamtowinicon: ok pamtoxvmini: ok pamundice: ok +pamunlookup: ok pamvalidate: ok pamwipeout: ok pamx: ok diff --git a/test/all-in-place.test b/test/all-in-place.test index e7cf3ed0..4c8af56b 100755 --- a/test/all-in-place.test +++ b/test/all-in-place.test @@ -143,6 +143,7 @@ ordinary_testprogs="\ pamtowinicon \ pamtoxvmini \ pamundice \ + pamunlookup \ pamvalidate \ pamwipeout \ pamx \ diff --git a/test/lookup-roundtrip.ok b/test/lookup-roundtrip.ok new file mode 100644 index 00000000..82eac5a8 --- /dev/null +++ b/test/lookup-roundtrip.ok @@ -0,0 +1 @@ +1926073387 101484 diff --git a/test/lookup-roundtrip.test b/test/lookup-roundtrip.test new file mode 100755 index 00000000..63ec0777 --- /dev/null +++ b/test/lookup-roundtrip.test @@ -0,0 +1,12 @@ +#! /bin/bash +# This script tests: pamlookup pamunlookup +# Also requires: ppmhist + +tmpdir=${tmpdir:-/tmp} +mapfile=${tmpdir}/mapfile + +ppmhist testimg.ppm -map > ${mapfile} + +# Test. Should produce 1926073387 101484 +pamunlookup -lookupfile=${mapfile} testimg.ppm |\ + pamlookup -lookupfile=${mapfile} | cksum |