about summary refs log tree commit diff
path: root/test/g3-roundtrip.test
blob: e00997f64d4b1b26258ab20c9323fb81ee15beee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/bash
# This script tests: g3topbm pbmtog3
# Also requires: pnmcrop

${PBM_TESTPREFIX}pbmtog3 -nofixedwidth testgrid.pbm | \
${PBM_TESTPREFIX}g3topbm -width=14 | cmp -s - testgrid.pbm
echo $?

${PBM_TESTPREFIX}pbmtog3 -nofixedwidth -reversebits testgrid.pbm | \
${PBM_TESTPREFIX}g3topbm -width=14 -reversebits | cmp -s - testgrid.pbm
echo $?

${PBM_TESTPREFIX}pbmtog3 testgrid.pbm | \
${PBM_TESTPREFIX}g3topbm  | ${PBM_BINPREFIX}pnmcrop -white -right -bottom | \
 cmp -s - testgrid.pbm ; echo $?