about summary refs log tree commit diff
path: root/test/pamenlarge.test
blob: 7c46881d2e25816c2c2bf9d8d790f575049b655f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
# This script tests: pamenlarge
# Also requires: pamchannel pamseq pamtopnm

echo "Test 1.  Should print 3424505894 913236"
pamenlarge 3 testimg.ppm | cksum
echo "Test 2.  Should print 3763267672 304422"
pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | \
  pamenlarge 3 | cksum
echo "Test 3.  Should print 3748791794 3905"
pamenlarge 3 maze.pbm | cksum
echo "Test 4.  Should print 1618994486 1194"
pamenlarge -xscale=21 -yscale=2 testgrid.pbm | cksum
echo "Test 5.  Should print 398497872 6806"
pamseq 3 4 | pamtopnm -assume | pamenlarge 3 -plain | cksum