about summary refs log tree commit diff
path: root/test/pnminvert.test
blob: d2789bdf5bb91b1d10bda0286e221fa0f89c230d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
# This script tests: pnminvert
# Also requires: pbmmake pamchannel pamtopnm

echo "Test 1.  Should print 1739442872 481"
pnminvert maze.pbm | cksum

echo "Test 2.  Should print 1416115901 101484"
pnminvert testimg.ppm | cksum

echo "Test 3.  Should print 1174803406 33838"
pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | \
  pnminvert | cksum

echo "Test 4.  Should print 2595564405 14 three times"
pbmmake -w 7 7 | pnminvert | cksum
pbmmake -b 7 7 | cksum
pbmmake -b 7 7 | pnminvert | pnminvert | cksum

echo "Test 7.  Should print 2896726098 15"
pbmmake -g 8 8 | pnminvert | cksum