about summary refs log tree commit diff
path: root/test/avs-roundtrip.test
blob: 44b4d8a460e3410a56518f79f4e73c09acd16105 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash
# This script tests: pamtoavs avstopam
# Also requires: pamtopnm

  alias avstopam="${PBM_TESTPREFIX}avstopam"
  alias pamtoavs="${PBM_TESTPREFIX}pamtoavs"
  alias pamtopnm="${PBM_BINPREFIX}pamtopnm"
  shopt -s expand_aliases

# Should produce 1926073387 101484, cksum of testimg.ppm
pamtoavs testimg.ppm | \
  avstopam | pamtopnm | cksum