about summary refs log tree commit diff
path: root/test/pbm-misc-converters.test
blob: aa71489b4aec476fdea977dfc9f95ffaa59c47bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /bin/bash
# This script tests: pbmto10x pbmto4425 pbmtoascii pbmtobbnbg
# This script tests: pbmtodjvurle pbmtoepson pbmtogo pbmtoibm23xx
# This script tests: pbmtolj pbmtoln03 pbmtomatrixorbital pbmtonokia
# This script tests: pbmtoplot pbmtoptx pbmtozinc
# Also requires: pbmpage

# Note: one-way test.
# These converters do not have counterparts that work in the opposite
# direction.  We check whether the output is unchanged from older
# versions.

pbmto10x             testgrid.pbm | cksum
pbmto4425            testgrid.pbm | cksum
pbmtoascii           testgrid.pbm | cksum
pbmtoascii -2x4      testgrid.pbm | cksum
pbmtobbnbg         < testgrid.pbm | cksum
pbmtodjvurle         testgrid.pbm | cksum
pbmtoepson           testgrid.pbm | cksum
pbmtoepson -protocol=escp   testgrid.pbm | cksum
pbmtoepson -protocol=escp9  testgrid.pbm | cksum
pbmtoepson -nonadjacent     testgrid.pbm | cksum
pbmtogo              testgrid.pbm | cksum
pbmtoibm23xx -xres=60 -yres=60 testgrid.pbm | cksum
pbmtolj              testgrid.pbm | cksum
pbmtolj  -packbits   testgrid.pbm | cksum
pbmtolj  -compress   testgrid.pbm | cksum
pbmtoln03            testgrid.pbm | cksum
pbmtomatrixorbital < testgrid.pbm | cksum
pbmtonokia -fmt HEX_NOL testgrid.pbm | cksum
pbmtonokia -fmt HEX_NGG testgrid.pbm | cksum
pbmtonokia -fmt HEX_NPM testgrid.pbm | cksum
pbmtonokia -fmt NOL  testgrid.pbm | cksum
pbmtonokia -fmt NGG  testgrid.pbm | cksum
pbmtonokia -fmt NPM  testgrid.pbm | cksum
pbmtoplot            testgrid.pbm | cksum
pbmtoptx             testgrid.pbm | cksum
pbmtozinc            testgrid.pbm | cksum

(pbmpage 1; pbmpage 2; pbmpage 3) | pbmtoppa | cksum