about summary refs log tree commit diff
path: root/test/pgmmake.test
blob: d8e248d47c0a00d5324fb3d9133c21bd90b2a2fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /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"

. ${srcdir}/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"