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

echo "Test 1.  Should print 242428674 57 three times"

pamseq 3 1 | pamenlarge -xscale 1 -yscale 2 | ppmtoascii | cksum
pamseq 3 1 | pamenlarge -xscale 1 -yscale 2 | ppmtoascii -1x2 | cksum
pamseq 3 1 | pamenlarge -xscale 2 -yscale 4 | ppmtoascii -2x4 | cksum


echo "Test Invalid"

. ./test-invalid.inc

invCmd "ppmtoascii -1x2 -2x4 testimg.ppm"