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