Skip to content

Commit 65369f0

Browse files
author
giraffedata
committed
Add lookup-roundtrip
git-svn-id: https://svn.code.sf.net/p/netpbm/code/trunk@2632 9d0c8265-081b-0410-96cb-a4ca84ce46f8
1 parent dd3781f commit 65369f0

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

test/Test-Order

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ rgb3-roundtrip.test
102102
ppmchange-roundtrip.test
103103
pamdice-roundtrip.test
104104
pamslice-roundtrip.test
105+
lookup-roundtrip.test
105106

106107
# Round-trip tests : lossless converters
107108

test/all-in-place.ok

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ pamtouil: ok
104104
pamtowinicon: ok
105105
pamtoxvmini: ok
106106
pamundice: ok
107+
pamunlookup: ok
107108
pamvalidate: ok
108109
pamwipeout: ok
109110
pamx: ok

test/all-in-place.test

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ ordinary_testprogs="\
143143
pamtowinicon \
144144
pamtoxvmini \
145145
pamundice \
146+
pamunlookup \
146147
pamvalidate \
147148
pamwipeout \
148149
pamx \

test/lookup-roundtrip.ok

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1926073387 101484

test/lookup-roundtrip.test

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#! /bin/bash
2+
# This script tests: pamlookup pamunlookup
3+
# Also requires: ppmhist
4+
5+
tmpdir=${tmpdir:-/tmp}
6+
mapfile=${tmpdir}/mapfile
7+
8+
ppmhist testimg.ppm -map > ${mapfile}
9+
10+
# Test. Should produce 1926073387 101484
11+
pamunlookup -lookupfile=${mapfile} testimg.ppm |\
12+
pamlookup -lookupfile=${mapfile} | cksum

0 commit comments

Comments
 (0)