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

  alias pamflip="${PBM_TESTPREFIX}pamflip"
  shopt -s expand_aliases

# Test 1.  Should print 2116496681 101484
pamflip -lr testimg.ppm | cksum 
# Test 2.  Should print 217037000 101484
pamflip -cw testimg.ppm | cksum
# Test 3.  Should print 2052917888 101484
pamflip -tb testimg.ppm | cksum
# Test 4.  Should print 3375384165 41
pamflip -lr testgrid.pbm | cksum
# Test 5.  Should print 604323149 41
pamflip -tb testgrid.pbm | cksum
# Test 6.  Should print 490797850 37
pamflip -cw testgrid.pbm | cksum