diff options
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 + + |