blob: 7ced4cc3a74970bdcbd220e3bbc348c2fda8d898 [file] [log] [blame]
cristy3e3b2192010-03-03 03:06:13 +00001#!/bin/sh
2#
cristy1454be72011-12-19 01:52:48 +00003# Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
cristy3e3b2192010-03-03 03:06:13 +00004# dedicated to making software imaging solutions freely available.
5#
6# You may not use this file except in compliance with the License. You may
7# obtain a copy of the License at
8#
9# http://www.imagemagick.org/script/license.php
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# Test for 'validate' utility.
18#
19set -e # Exit on any error
20. ${srcdir}/tests/common.sh
21
22${CONVERT} pnm:- 'null:' < ${REFERENCE_IMAGE}
cristy212e8da2010-03-03 18:35:23 +000023${CONVERT} pnm:- miff:- < ${REFERENCE_IMAGE} | ${IDENTIFY} -
24${CONVERT} pnm:- - < ${REFERENCE_IMAGE} | ${IDENTIFY} -
cristy3e3b2192010-03-03 03:06:13 +000025${CONVERT} - 'null:' < ${REFERENCE_IMAGE}
cristy212e8da2010-03-03 18:35:23 +000026${CONVERT} - miff:- < ${REFERENCE_IMAGE} | ${IDENTIFY} -
27${CONVERT} - - < ${REFERENCE_IMAGE} | ${IDENTIFY} -
28${CONVERT} ${REFERENCE_IMAGE} - | ${IDENTIFY} -
29${CONVERT} ${REFERENCE_IMAGE} miff:- | ${IDENTIFY} -