about summary refs log tree commit diff
path: root/test/xpm-roundtrip.test
blob: c3c9894d4421c14633037bfd979619bd6f195bda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash
# This script tests: ppmtoxpm xpmtoppm
# Also requires: pgmtopbm ppmtopgm

  alias ppmtoxpm="${PBM_TESTPREFIX}ppmtoxpm"
  alias xpmtoppm="${PBM_TESTPREFIX}xpmtoppm"
  alias pgmtopbm="${PBM_BINPREFIX}pgmtopbm"
  alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm"
  shopt -s expand_aliases

#ppmtoxpm -hexonly testimg.ppm | \
# xpmtoppm  | cksum
ppmtoxpm testgrid.pbm | xpmtoppm | \
  ppmtopgm | pgmtopbm -th -value=0.5 | cksum