diff options
Diffstat (limited to 'test/macp-roundtrip.test')
-rwxr-xr-x | test/macp-roundtrip.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/macp-roundtrip.test b/test/macp-roundtrip.test new file mode 100755 index 00000000..39228e5a --- /dev/null +++ b/test/macp-roundtrip.test @@ -0,0 +1,15 @@ +#! /bin/bash +# This script tests: pbmtomacp macptopbm +# Also requires: pamcrop pbmmake + + alias pbmtomacp="${PBM_TESTPREFIX}pbmtomacp" + alias macptopbm="${PBM_TESTPREFIX}macptopbm" + alias pnmcrop="${PBM_BINPREFIX}pnmcrop" + alias pbmmake="${PBM_BINPREFIX}pbmmake" + shopt -s expand_aliases + +#Test 1. Should produce 2425386270 41 +pbmtomacp testgrid.pbm | macptopbm | pnmcrop | cksum + +#Test 2. Should produce 1005016577 51851 +pbmmake -g 576 720 | pbmtomacp | macptopbm | cksum |