diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-27 17:33:56 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-12-27 17:33:56 +0000 |
commit | 6e629f983aa205c3eaa5f339f1c71bb5e7938049 (patch) | |
tree | a89f594443ac2330138f0bd0f19ee59135c2213f /test/pbmpscale.test | |
parent | ec52f41aabc9de9aac203c2f462252e403c7374a (diff) | |
download | netpbm-mirror-6e629f983aa205c3eaa5f339f1c71bb5e7938049.tar.gz netpbm-mirror-6e629f983aa205c3eaa5f339f1c71bb5e7938049.tar.xz netpbm-mirror-6e629f983aa205c3eaa5f339f1c71bb5e7938049.zip |
Promote Development to Advanced to make Release 10.97.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4222 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pbmpscale.test')
-rwxr-xr-x | test/pbmpscale.test | 45 |
1 files changed, 31 insertions, 14 deletions
diff --git a/test/pbmpscale.test b/test/pbmpscale.test index 21ad6cd1..a92511b0 100755 --- a/test/pbmpscale.test +++ b/test/pbmpscale.test @@ -1,18 +1,35 @@ #! /bin/bash # This script tests: pbmpscale -# Also requires: pamenlarge pbmtext - - -pbmtext -nomargin "F" | pbmpscale 3 -plain - -for i in 2 3 4 -do -pamenlarge 2 testgrid.pbm | \ - pbmpscale $i | cksum -done - +# Also requires: pbmtext + +echo "Test 1. Should print \"abc\" rendered in PBM plain format" +pbmtext -nomargin "abc" | pbmpscale 1 -plain +echo "Test 2. \"ABC\" in PBM plain format" +pbmtext -nomargin "ABC" | pbmpscale 2 -plain +echo "Test 3. \"D.!\" in PBM plain format" +pbmtext -nomargin "D.!" | pbmpscale 3 -plain +echo "Test 3. \"E,?\" in PBM plain format" +pbmtext -nomargin "E,?" | pbmpscale 4 -plain + +echo "Test 5. Should print 576003211 10631" +pbmpscale 5 maze.pbm | cksum + +echo "Test 6. Should print 3501321825 369" +pbmtext -nomargin "6" | pbmpscale 6 | cksum +echo "Test 7. Should print 1588181271 535" +pbmtext -nomargin "7" | pbmpscale 7 | cksum +echo "Test 8. Should print 2843090781 610" +pbmtext -nomargin "8" | pbmpscale 8 | cksum +echo "Test 9. Should print 146160766 820" +pbmtext -nomargin "9" | pbmpscale 9 | cksum +echo "Test 10. Should print 3327221668 2111" +pbmtext -nomargin "10" | pbmpscale 10 | cksum + +tmpdir=${tmpdir:-/tmp} test_out=${tmpdir}/test_out +echo "Test Invalid" + echo 1>&2 echo "Invalid command-line argument combinations." 1>&2 echo "Error messages should appear below the line." 1>&2 @@ -21,14 +38,14 @@ echo "-----------------------------------------------------------" 1>&2 pbmpscale testgrid.pbm > ${test_out} || \ echo -n "Expected failure 1" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pbmpscale 0 testgrid.pbm > ${test_out} || \ echo -n "Expected failure 2" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} pbmpscale 2 3 testgrid.pbm > ${test_out} || \ echo -n "Expected failure 3" test -s ${test_out}; echo " "$? - rm -f {test_out} + rm -f ${test_out} |