about summary refs log tree commit diff
path: root/test/pamflip-roundtrip.test
blob: 7a17359f73b3168fde3785ac69591e15db8b603b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/bash
# This script tests: pamflip
# Also requires: 

${PBM_TESTPREFIX}pamflip -lr testimg.ppm | ${PBM_TESTPREFIX}pamflip -lr | cksum
${PBM_TESTPREFIX}pamflip -tb testimg.ppm | ${PBM_TESTPREFIX}pamflip -tb | cksum
${PBM_TESTPREFIX}pamflip -r180 testimg.ppm | \
  ${PBM_TESTPREFIX}pamflip -r180 | cksum
${PBM_TESTPREFIX}pamflip -xy testimg.ppm | ${PBM_TESTPREFIX}pamflip -xy | cksum
${PBM_TESTPREFIX}pamflip -r90 testimg.ppm | \
  ${PBM_TESTPREFIX}pamflip -r90 | \
  ${PBM_TESTPREFIX}pamflip -r90 | \
  ${PBM_TESTPREFIX}pamflip -r90 | cksum
${PBM_TESTPREFIX}pamflip -r270 testimg.ppm | \
  ${PBM_TESTPREFIX}pamflip -r270 | \
  ${PBM_TESTPREFIX}pamflip -r270 | \
  ${PBM_TESTPREFIX}pamflip -r270 | cksum

${PBM_TESTPREFIX}pamflip -lr testgrid.pbm | \
  ${PBM_TESTPREFIX}pamflip -lr | cksum
${PBM_TESTPREFIX}pamflip -tb testgrid.pbm | \
  ${PBM_TESTPREFIX}pamflip -tb | cksum
${PBM_TESTPREFIX}pamflip -r180 testgrid.pbm | \
  ${PBM_TESTPREFIX}pamflip -r180 | cksum
${PBM_TESTPREFIX}pamflip -xy testgrid.pbm | \
  ${PBM_TESTPREFIX}pamflip -xy | cksum
${PBM_TESTPREFIX}pamflip -r90 testgrid.pbm | \
  ${PBM_TESTPREFIX}pamflip -r90 | \
  ${PBM_TESTPREFIX}pamflip -r90 | \
  ${PBM_TESTPREFIX}pamflip -r90 | cksum
${PBM_TESTPREFIX}pamflip -r270 testgrid.pbm | \
  ${PBM_TESTPREFIX}pamflip -r270 | \
  ${PBM_TESTPREFIX}pamflip -r270 | \
  ${PBM_TESTPREFIX}pamflip -r270 | cksum