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

echo "Test 1.  Should print a simple 4 x 3 pattern"
pbmmake -g 4 3 | ppmtoppm -plain

echo "Test 2.  Should print a simple 6 x 8 pattern"
pgmramp -diagonal -maxval=5 6 8 | ppmtoppm -plain

echo "Test 3.  Should print 669206373 10102"
ppmtoppm < maze.pbm | cksum

echo "Test 4.  Should print 1926073387 101484"
ppmtoppm < testimg.ppm | cksum