blob: 8f9e3c7017e1261798f15804710cfae1d9e31d07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#! /bin/bash
# This script tests: pamenlarge
# Also requires: pamchannel
alias pamenlarge="${PBM_TESTPREFIX}pamenlarge"
shopt -s expand_aliases
# Test 1. Should print 3424505894 913236
pamenlarge 3 testimg.ppm | cksum
# Test 2. Should print 3763267672 304422
pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | \
pamenlarge 3 | cksum
# Test 3. Should print 3342398172 297
pamenlarge 3 testgrid.pbm | cksum
# Test 4. Should print 237488670 3133413
pamenlarge 3 -plain testimg.ppm | cksum
|