about summary refs log tree commit diff
path: root/test/pamdepth-roundtrip.test
blob: 2795d659cd0d33abd6c5d39c988c7201e5b569fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash
# This script tests: pamdepth pgmtopbm
# Also requires: 

for i in 300 500 1023 4095 5000 16383 65535
do
${PBM_TESTPREFIX}pamdepth $i testimg.ppm | \
  ${PBM_TESTPREFIX}pamdepth 255 | cksum
done

${PBM_TESTPREFIX}pamdepth 255 testgrid.pbm | ${PBM_TESTPREFIX}pamdepth 1 | \
  ${PBM_TESTPREFIX}pgmtopbm -th -val=0.5 | cksum