#! /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