blob: f74bdce3c840b7a382dd6dcf6401dc015bfda67f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#! /bin/bash
# This script tests: pnmtile
# Also requires: pnmcat
alias pnmtile="${PBM_TESTPREFIX}pnmtile"
alias pnmcat="${PBM_BINPREFIX}pnmcat"
shopt -s expand_aliases
pnmtile 40 50 testgrid.pbm | cksum
pnmtile 454 298 testimg.ppm > ${tmpdir}/testimg4.ppm &&
pnmcat -lr testimg.ppm testimg.ppm > ${tmpdir}/testimg2.ppm &&
pnmcat -tb ${tmpdir}/testimg2.ppm ${tmpdir}/testimg2.ppm | \
cmp -s - ${tmpdir}/testimg4.ppm
echo $?
rm ${tmpdir}/testimg{2,4}.ppm
|