diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-01-02 16:28:37 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-01-02 16:28:37 +0000 |
commit | 71d4c2e05abc34d82d505c96af9bd918846f9cec (patch) | |
tree | 41e3c5cc4dcba05e59843dbed2cf8f4eca2c98d2 /test/pgmtoppm.test | |
parent | e165c1cd02e9ea5b868b0a43b20e1bd96d40e6ff (diff) | |
download | netpbm-mirror-71d4c2e05abc34d82d505c96af9bd918846f9cec.tar.gz netpbm-mirror-71d4c2e05abc34d82d505c96af9bd918846f9cec.tar.xz netpbm-mirror-71d4c2e05abc34d82d505c96af9bd918846f9cec.zip |
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
Diffstat (limited to 'test/pgmtoppm.test')
-rwxr-xr-x | test/pgmtoppm.test | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/pgmtoppm.test b/test/pgmtoppm.test index b93d7867..cdd53623 100755 --- a/test/pgmtoppm.test +++ b/test/pgmtoppm.test @@ -2,16 +2,22 @@ # This script tests: pgmtoppm # Also requires: pamseq pamtopnm pgmramp -${PBM_BINPREFIX}pgmramp -maxval=5 -lr 256 1 >${tmpdir}/test.pgm -${PBM_BINPREFIX}pamseq 3 5 -tupletype=RGB | ${PBM_BINPREFIX}pamtopnm \ + alias pgmtoppm="${PBM_TESTPREFIX}pgmtoppm" + alias pamseq="${PBM_BINPREFIX}pamseq" + alias pamtopnm="${PBM_BINPREFIX}pamtopnm" + alias pgmramp="${PBM_BINPREFIX}pgmramp" + shopt -s expand_aliases + +pgmramp -maxval=5 -lr 256 1 >${tmpdir}/test.pgm +pamseq 3 5 -tupletype=RGB | pamtopnm \ >${tmpdir}/palette # Test 1. -${PBM_TESTPREFIX}pgmtoppm green ${tmpdir}/test.pgm | cksum +pgmtoppm green ${tmpdir}/test.pgm | cksum -${PBM_TESTPREFIX}pgmtoppm yellow-blue ${tmpdir}/test.pgm | cksum +pgmtoppm yellow-blue ${tmpdir}/test.pgm | cksum -${PBM_TESTPREFIX}pgmtoppm -map=${tmpdir}/palette ${tmpdir}/test.pgm | cksum +pgmtoppm -map=${tmpdir}/palette ${tmpdir}/test.pgm | cksum rm ${tmpdir}/test.pgm ${tmpdir}/palette |