about summary refs log tree commit diff
path: root/test/pgmtopgm.test
blob: d81260d8de8d1f4d35783313e6898400c58c0f61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh
# This script tests: pgmtopgm
# Also requires: pgmmake

echo "Test 1.  Should print two identical PGM images"

pgmmake -plain 0 10 1
pgmmake 0 10 1 | pgmtopgm -plain

echo "Test 2.  Should print 2582999797 3376"

pgmtopgm < maze.pbm | cksum