about summary refs log tree commit diff
path: root/test/lookup-roundtrip.test
blob: 63ec077751a76a72be1d62152b33113916bc818b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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