#! /bin/sh
# This script tests: pgmmake
# Also requires:

echo "Test 1"

pgmmake -plain 0 1 1
pgmmake -plain 1 1 1
pgmmake -plain -maxval=2 0.5 1 1
pgmmake 1 50 50 | cksum
pgmmake .2 50 100 -maxval=5 | cksum

echo "Test Invalid"

. ./test-invalid.inc

invCmd "pgmmake"
invCmd "pgmmake 100  5 5"
invCmd "pgmmake 1.01 5 5"
invCmd "pgmmake .5   5"
invCmd "pgmmake .5"
invCmd "pgmmake -maxval=5        5 5"
invCmd "pgmmake -maxval=0     .5 5 5"
invCmd "pgmmake -maxval=-1    .5 5 5"
invCmd "pgmmake -maxval=65536 .5 5 5"
