diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-16 22:57:46 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-16 22:57:46 +0000 |
commit | 31b2f7ca49f576a9b7a5fe6b0cfed343c82d9d09 (patch) | |
tree | 38170a0a9e6f2e19b369c5f98d1f8ed4077b95ae /test/ppmrough.test | |
parent | 1c49469266e75bd8f11cec532758ce22bd81d66d (diff) | |
download | netpbm-mirror-31b2f7ca49f576a9b7a5fe6b0cfed343c82d9d09.tar.gz netpbm-mirror-31b2f7ca49f576a9b7a5fe6b0cfed343c82d9d09.tar.xz netpbm-mirror-31b2f7ca49f576a9b7a5fe6b0cfed343c82d9d09.zip |
test updates; move some tests from other directories to test directory, improve ppmrough, xwd-roundtrip
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4663 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/ppmrough.test')
-rwxr-xr-x | test/ppmrough.test | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/test/ppmrough.test b/test/ppmrough.test index b10ba941..e1d720d5 100755 --- a/test/ppmrough.test +++ b/test/ppmrough.test @@ -2,5 +2,47 @@ # This script tests: ppmrough # Also requires: -# Should print: 378403602 30015 (Glibc and MAC OS) -ppmrough -randomseed 1 | cksum +defaultopts="-randomseed 1 -bg rgb:00/ff/ff -fg rgb:ff/ff/00 -w 100 -h 100" + +# No border + +echo "Test 1. Should print 378403602 30015" +ppmrough -randomseed 1 | cksum + +echo "Test 2. Should print 378403602 30015" +ppmrough -randomseed 1 -var 0 | cksum + +# Vertical border + +echo "Test 3. Should print 535171440 30015" +ppmrough ${defaultopts} -left 20 | cksum + +echo "Test 4. Should print 937167683 30015" +ppmrough ${defaultopts} -right 20 | cksum + +echo "Test 5. Should print 1927474861 30015" +ppmrough ${defaultopts} -left 50 | cksum + +echo "Test 6. Should print 3596045345 30015" +ppmrough ${defaultopts} -right 50 | cksum + +echo "Test 7. Should print 198510149 30015" +ppmrough ${defaultopts} -right 20 -var 0 | cksum + +# Horizontal border + +echo "Test 8. Should print 1128371780 30015" +ppmrough ${defaultopts} -top 30 | cksum + +echo "Test 9. Should print 2909877411 30015" +ppmrough ${defaultopts} -bottom 25 | cksum + +echo "Test 10. Should print 2820370592 30015" +ppmrough ${defaultopts} -top 50 | cksum + +echo "Test 11. Should print 2028409204 30015" +ppmrough ${defaultopts} -bottom 50 | cksum + +echo "Test 12. Should print 4234304830 30015" +ppmrough ${defaultopts} -bottom 10 -var 0 | cksum + |