about summary refs log tree commit diff
path: root/test/pamflip1.test
blob: 0f60b72b5ccae5143b417d2687d37840c1325264 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /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