blob: 457cb4b8622fbeab8e665c0ca5664827a279b74b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#! /bin/bash
# This script tests: picttoppm ppmtopict
# Also requires: pamseq pamdepth pamtopnm pnmremap
alias picttoppm="${PBM_TESTPREFIX}picttoppm"
alias ppmtopict="${PBM_TESTPREFIX}ppmtopict"
alias pamseq="${PBM_BINPREFIX}pamseq"
alias pamdepth="${PBM_BINPREFIX}pamdepth"
alias pamtopnm="${PBM_BINPREFIX}pamtopnm"
alias pnmremap="${PBM_BINPREFIX}pnmremap"
shopt -s expand_aliases
#Test. Should print 984199586 101484
pamseq 3 5 -tupletype=RGB | pamdepth 255 | pamtopnm | \
pnmremap -mapfile=- testimg.ppm | ppmtopict | picttoppm | cksum
|