From 71d4c2e05abc34d82d505c96af9bd918846f9cec Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 2 Jan 2014 16:28:37 +0000 Subject: use aliases to make tests easier to read and modify; add white line to top in Pnmshear test git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2098 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/pnmshear.test | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'test/pnmshear.test') 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 -- cgit 1.4.1