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

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

tmpdir=${tmpdir:-/tmp}
fname_stem=${tmpdir}/a

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

rm ${fname_stem}_?_?.ppm