diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-06-29 19:19:47 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-06-29 19:19:47 +0000 |
commit | 380588e187c12000ac8082cb2a20a905d3c422a5 (patch) | |
tree | 296b1324b7a9360646a34ae836b8eb486b7feede /test/pgmnoise.test | |
parent | f8b633c2be1231a0c194214271caa456dc669ecb (diff) | |
download | netpbm-mirror-380588e187c12000ac8082cb2a20a905d3c422a5.tar.gz netpbm-mirror-380588e187c12000ac8082cb2a20a905d3c422a5.tar.xz netpbm-mirror-380588e187c12000ac8082cb2a20a905d3c422a5.zip |
Release 10.63.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@1968 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pgmnoise.test')
-rw-r--r-- | test/pgmnoise.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/pgmnoise.test b/test/pgmnoise.test new file mode 100644 index 00000000..8ee2fccc --- /dev/null +++ b/test/pgmnoise.test @@ -0,0 +1,22 @@ +#! /bin/bash +# This script tests: pgmnoise +# Also requires: + +# We first check whether random number generator is glibc rand(). +# If not, this test is skipped. + +${PBM_TESTPREFIX}pgmnoise --testrandom + +case $? in + 81) + # Should print: 1663614689 10015 + ${PBM_TESTPREFIX}pgmnoise --randomseed=0 100 100 | cksum ;; + + # Any additional tests go here. + + 8[02-9] | 90) + echo "Skipping: random number generator is not glibc." 1>&2 + exit 80;; + + *) exit 1;; # pgmnoise --testrandom failed +esac |