about summary refs log tree commit diff
path: root/test/ppmforge.test
blob: 09a669161ad7e4acc4ce941ddcab993660127ae9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/bash
# This script tests: ppmforge

  alias ppmforge="${PBM_TESTPREFIX}ppmforge"
  shopt -s expand_aliases

# Use small x y values to avoid floating point issues.


testrandom -q
case $? in
   81)
      # Test 1: Should print: 3634219838 196623
      ppmforge -night -seed 1 | cksum
      ;;

   8[02-9] | 90)
       echo "Skipping: random number generator is not glibc." 1>&2
       exit 80;;

   *)  exit 1;;  # testrandom failed
esac