diff options
Diffstat (limited to 'test/pnmshear.test')
-rw-r--r-- | test/pnmshear.test | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/test/pnmshear.test b/test/pnmshear.test index 276e3e22..30ab45be 100644 --- a/test/pnmshear.test +++ b/test/pnmshear.test @@ -1,19 +1,26 @@ #! /bin/bash # This script tests: pnmshear -# Also requires: pbmmake +# Also requires: pbmmake pnmpad -# Test. Should produce 2080980136 22 -${PBM_BINPREFIX}pbmmake -g 7 7 | \ - ${PBM_TESTPREFIX}pnmshear 45 -noantialias | cksum + alias pnmshear="${PBM_TESTPREFIX}pnmshear" + alias pbmmake="${PBM_BINPREFIX}pbmmake" + alias pnmpad="${PBM_BINPREFIX}pnmpad" + shopt -s expand_aliases + +# Test. Should produce 598644601 24 + +pbmmake -g 7 7 | pnmpad -white -top 1 | \ + pnmshear 45 -noantialias | cksum # Output of above, in pbm plain format # # P1 -# 14 7 -# 01010101111111 -# 10101011111111 -# 10101010111111 -# 11101010111111 -# 11101010101111 -# 11111010101111 -# 11111010101011 +# 15 8 +# 000000000000000 +# 010101000000000 +# 010101010000000 +# 000101010000000 +# 000101010100000 +# 000001010100000 +# 000001010101000 +# 000000010101000 |