diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-11-24 19:18:45 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-11-24 19:18:45 +0000 |
commit | 4296fe52a37736b7533b3bf447b29ad7933a3ab4 (patch) | |
tree | 87644c5b7e46fb333bcde7903f8dcf0de4964d3d /test/pnmtile.test | |
parent | b3f62ef1f3fb72b5674c4481dd25148fbe51850b (diff) | |
download | netpbm-mirror-4296fe52a37736b7533b3bf447b29ad7933a3ab4.tar.gz netpbm-mirror-4296fe52a37736b7533b3bf447b29ad7933a3ab4.tar.xz netpbm-mirror-4296fe52a37736b7533b3bf447b29ad7933a3ab4.zip |
New test framework, lots of tests
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1775 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pnmtile.test')
-rwxr-xr-x | test/pnmtile.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pnmtile.test b/test/pnmtile.test new file mode 100755 index 00000000..b0c14ca6 --- /dev/null +++ b/test/pnmtile.test @@ -0,0 +1,12 @@ +#! /bin/bash +# This script tests: pnmtile +# Also requires: pnmcat + +${PBM_TESTPREFIX}pnmtile 40 50 testgrid.pbm | cksum + +${PBM_TESTPREFIX}pnmtile 454 298 testimg.ppm > ${tmpdir}/testimg4.ppm && +${PBM_BINPREFIX}pnmcat -lr testimg.ppm testimg.ppm > ${tmpdir}/testimg2.ppm && +${PBM_BINPREFIX}pnmcat -tb ${tmpdir}/testimg2.ppm ${tmpdir}/testimg2.ppm | \ +diff - ${tmpdir}/testimg4.ppm && echo $? + +rm ${tmpdir}/testimg{2,4}.ppm |