blob: c1958d1405e50d09ef80879f1833b26922e09506 (
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: ppmtopgm
alias pamenlarge="${PBM_TESTPREFIX}pamenlarge"
alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm"
shopt -s expand_aliases
# Test 1. Should print 3424505894 913236
pamenlarge 3 testimg.ppm | cksum
# Test 2. Should print 4152147096 304422
ppmtopgm testimg.ppm | 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
|