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

echo "Test 1.  Should print 1350702313 12336"
pamseq 3 15 | pamflip -lr | cksum

echo "Test 2.  Should print 1035759697 40048"
pamseq 4 9 | pamflip -tb | cksum

echo "Test 3.  Should print 217037000 101484"
pamflip -cw testimg.ppm | cksum

echo "Test 4.  Should print 1178735266 481"
pamflip -lr maze.pbm | cksum

echo "Test 5.  Should print 2339906255 481"
pamflip -tb maze.pbm | cksum