From 4296fe52a37736b7533b3bf447b29ad7933a3ab4 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 24 Nov 2012 19:18:45 +0000 Subject: New test framework, lots of tests git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1775 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/pbmtog3.test | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 test/pbmtog3.test (limited to 'test/pbmtog3.test') diff --git a/test/pbmtog3.test b/test/pbmtog3.test new file mode 100755 index 00000000..09b5d784 --- /dev/null +++ b/test/pbmtog3.test @@ -0,0 +1,28 @@ +#! /bin/bash +# This script tests: pbmtog3 +# Also requires: pbmmake + +# Test 1. Should print 3697098186 144 +${PBM_TESTPREFIX}pbmtog3 testgrid.pbm | cksum +# Test 2. Should print 1248301383 122 +${PBM_TESTPREFIX}pbmtog3 -nofixedwidth testgrid.pbm | cksum +# Test 3. Should print 686713716 144 +${PBM_TESTPREFIX}pbmtog3 -reverse testgrid.pbm | cksum +# Test 4. Should print 215463240 122 +${PBM_TESTPREFIX}pbmtog3 -nofixedwidth -reverse testgrid.pbm | cksum +# Test 5. Should print 28792587 47 +${PBM_BINPREFIX}pbmmake -w 10 10 | ${PBM_TESTPREFIX}pbmtog3 | cksum +# Test 6. Should print 277456854 32 +${PBM_BINPREFIX}pbmmake -w 10 10 | \ + ${PBM_TESTPREFIX}pbmtog3 -nofixedwidth | cksum +# Test 7. Should print 28792587 47 +${PBM_BINPREFIX}pbmmake -w 10000 10 | ${PBM_TESTPREFIX}pbmtog3 | cksum +# Test 8. Should print 871281767 162 +${PBM_BINPREFIX}pbmmake -w 10000 10 | \ + ${PBM_TESTPREFIX}pbmtog3 -nofixedwidth | cksum +# Test 9. Should print 3736247115 62 +${PBM_BINPREFIX}pbmmake -b 10 10 | ${PBM_TESTPREFIX}pbmtog3 | cksum +# Test 10. Should print 2820255307 2191856 +${PBM_BINPREFIX}pbmmake -g 1700 2286 | ${PBM_TESTPREFIX}pbmtog3 | cksum +# Test 11. Should print 4159089282 2226575 +${PBM_BINPREFIX}pbmmake -g 1800 2286 | ${PBM_TESTPREFIX}pbmtog3 | cksum -- cgit 1.4.1