about summary refs log tree commit diff
path: root/test/ppmhist.test
blob: 6dcbc762b5b900a21ae18d08153c5fde0849f298 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/bash
# This script tests: ppmhist
# Also requires: pgmramp

  alias ppmhist="${PBM_TESTPREFIX}ppmhist"
  alias pgmramp="${PBM_BINPREFIX}pgmramp"
  shopt -s expand_aliases

pgmramp -maxval=8 -lr 8 2 | ppmhist -sort=rgb
ppmhist -map -sort=rgb testimg.ppm | cksum