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

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


testrandom -q
case $? in
   81)
      # Should print: 378403602 30015
      ppmrough  -randomseed 1 | cksum
      ;;

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

   *)  exit 1;;  # testrandom failed
esac