diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-13 00:08:51 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-13 00:08:51 +0000 |
commit | a5d06d531c80a96a4041f8f19bdf89b847f71e80 (patch) | |
tree | ae8dafc409a0d8a88edae4fcec8b00298f3a8835 /test/pgmnoise.test | |
parent | b62eff9e0c76dcdab094bf9fe32355c543ea909f (diff) | |
download | netpbm-mirror-a5d06d531c80a96a4041f8f19bdf89b847f71e80.tar.gz netpbm-mirror-a5d06d531c80a96a4041f8f19bdf89b847f71e80.tar.xz netpbm-mirror-a5d06d531c80a96a4041f8f19bdf89b847f71e80.zip |
miscellaneous test updates
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4201 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pgmnoise.test')
-rwxr-xr-x | test/pgmnoise.test | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/pgmnoise.test b/test/pgmnoise.test index ab98a5e2..4a6e21dd 100755 --- a/test/pgmnoise.test +++ b/test/pgmnoise.test @@ -1,6 +1,6 @@ #! /bin/bash # This script tests: pgmnoise -# Also requires: pgmhist pamvalidate +# Also requires: pgmhist pamvalidate pamfile echo "Test 1." echo "Should print: 2132901423 10015" # (Mersenne Twister) @@ -70,49 +70,49 @@ echo "-----------------------------------------------------------" 1>&2 pgmnoise 0 0 > ${test_out} || \ echo -n "Expected failure 1" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pgmnoise 0 1 > ${test_out} || \ echo -n "Expected failure 2" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pgmnoise 1 0 > ${test_out} || \ echo -n "Expected failure 3" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pgmnoise > ${test_out} || \ echo -n "Expected failure 4" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pgmnoise 1 > ${test_out} || \ echo -n "Expected failure 5" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pgmnoise 100 -1 > ${test_out} || \ echo -n "Expected failure 6" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pgmnoise -randomseed=-1 100 100 > ${test_out} || \ echo -n "Expected failure 7" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pgmnoise -maxval=-1 100 100 > ${test_out} || \ echo -n "Expected failure 8" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pgmnoise -maxval=0 100 100 > ${test_out} || \ echo -n "Expected failure 9" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pgmnoise -maxval=$((256 * 256 * 256 * 256)) 10 10 > ${test_out} || \ echo -n "Expected failure 10" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} |