about summary refs log tree commit diff
path: root/test/ppmspread.test
blob: 871f74389c5ab613ede752f35322b2bc5e804aa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash
# This script tests: ppmspread
# Also requires: ppmtopgm pgmtopbm

echo "Test 1. Should print 639729144 101484"
ppmspread -randomseed=1 10 testimg.ppm | cksum

echo "Test 2. Should print 3278353642 685"
ppmspread -randomseed=1 1 testgrid.pbm | cksum

echo "Test 3. Should print 2425386270 41"
ppmspread -randomseed=1 0 testgrid.pbm | ppmtopgm | pgmtopbm | cksum