blob: 7fc8523c8658c677ba544ad1152b3ed38b7e9e1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! /bin/bash
# This script tests: pnminvert
# Also requires: pbmmake ppmtopgm
# Test 1. Should print 1240379484 41
${PBM_TESTPREFIX}pnminvert testgrid.pbm | cksum
# Test 2. Should print 1416115901 101484
${PBM_TESTPREFIX}pnminvert testimg.ppm | cksum
# Test 3. Should print 2961441369 33838
# printed 4215652354 33838 with older ppmtopgm
${PBM_BINPREFIX}ppmtopgm testimg.ppm | ${PBM_TESTPREFIX}pnminvert | cksum
# Test 4. Should print 2595564405 14
${PBM_BINPREFIX}pbmmake -w 7 7 | ${PBM_TESTPREFIX}pnminvert | cksum
# Test 5. Should print 2595564405 14
${PBM_BINPREFIX}pbmmake -b 7 7 | cksum
# Test 6. Should print 2595564405 14
${PBM_BINPREFIX}pbmmake -b 7 7 | ${PBM_TESTPREFIX}pnminvert | \
${PBM_TESTPREFIX}pnminvert | cksum
# Test 7. Should print 2896726098 15
${PBM_BINPREFIX}pbmmake -g 8 8 | ${PBM_TESTPREFIX}pnminvert | cksum
|