about summary refs log tree commit diff
path: root/test/pamdice-roundtrip.test
blob: 7319249a57a11bd8f63344da43c1d6ba0dd39926 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/bash
# This script tests: pamdice pamundice
# Also requires: 

  alias pamdice="${PBM_TESTPREFIX}pamdice"
  alias pamundice="${PBM_TESTPREFIX}pamundice"
  shopt -s expand_aliases

pamdice testimg.ppm -outstem=${tmpdir}/a -width=50 -height=40
pamundice ${tmpdir}/a_%1d_%1a.ppm -down=4 -across=5 | cksum

rm ${tmpdir}/a_?_?.ppm