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/pgmtoppm.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/pgmtoppm.test')
-rwxr-xr-x | test/pgmtoppm.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/pgmtoppm.test b/test/pgmtoppm.test new file mode 100755 index 00000000..b93d7867 --- /dev/null +++ b/test/pgmtoppm.test @@ -0,0 +1,18 @@ +#! /bin/bash +# 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 \ + >${tmpdir}/palette + +# Test 1. +${PBM_TESTPREFIX}pgmtoppm green ${tmpdir}/test.pgm | cksum + +${PBM_TESTPREFIX}pgmtoppm yellow-blue ${tmpdir}/test.pgm | cksum + +${PBM_TESTPREFIX}pgmtoppm -map=${tmpdir}/palette ${tmpdir}/test.pgm | cksum + +rm ${tmpdir}/test.pgm ${tmpdir}/palette + + |