Blame test/lookup-roundtrip.test
|
Packit |
78deda |
#! /bin/bash
|
|
Packit |
78deda |
# This script tests: pamlookup pamunlookup
|
|
Packit |
78deda |
# Also requires: ppmhist
|
|
Packit |
78deda |
|
|
Packit |
78deda |
tmpdir=${tmpdir:-/tmp}
|
|
Packit |
78deda |
mapfile=${tmpdir}/mapfile
|
|
Packit |
78deda |
|
|
Packit |
78deda |
ppmhist testimg.ppm -map > ${mapfile}
|
|
Packit |
78deda |
|
|
Packit |
78deda |
# Test. Should produce 1926073387 101484
|
|
Packit |
78deda |
pamunlookup -lookupfile=${mapfile} testimg.ppm |\
|
|
Packit |
78deda |
pamlookup -lookupfile=${mapfile} | cksum
|