blob: 9ce23f512f87b49822cc79734e1065b5b0191314 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#! /bin/bash
# This script tests: pnmtojbig jbigtopnm
# Also requires: pamchannel
alias pnmtojbig="${PBM_TESTPREFIX}pnmtojbig"
alias jbigtopnm="${PBM_TESTPREFIX}jbigtopnm"
shopt -s expand_aliases
# Test 1. Should print 2425386270 41
pnmtojbig testgrid.pbm | jbigtopnm | cksum
# Test 2. Should print 1571496937 33838
pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | \
pnmtojbig | jbigtopnm | cksum
|