blob: 83bc6c90929ad1d49227af8eafea58bdff932a4b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#! /bin/bash
# This script tests: pnmtorle rletopnm
# Also requires: ppmtopgm
alias pnmtorle="${PBM_TESTPREFIX}pnmtorle"
alias rletopnm="${PBM_TESTPREFIX}rletopnm"
alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm"
shopt -s expand_aliases
#Test 1. Should print 2871603838 33838, cksum of testimg.pgm
ppmtopgm testimg.ppm > ${tmpdir}/testimg.pgm
pnmtorle ${tmpdir}/testimg.pgm | \
rletopnm | cksum
rm ${tmpdir}/testimg.pgm
#Test 2. Should print 1926073387 101484, cksum of testimg.ppm
pnmtorle testimg.ppm | \
rletopnm | cksum
|