]> granicus.if.org Git - imagemagick/blob - tests/validate-pipe.sh
(no commit message)
[imagemagick] / tests / validate-pipe.sh
1 #!/bin/sh
2 #
3 #  Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
4 #  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 #
19 set -e # Exit on any error
20 . ${srcdir}/tests/common.sh
21
22 ${CONVERT} pnm:- 'null:' < ${REFERENCE_IMAGE}
23 ${CONVERT} pnm:- miff:-  < ${REFERENCE_IMAGE} | ${IDENTIFY} -
24 ${CONVERT} pnm:- -  < ${REFERENCE_IMAGE} | ${IDENTIFY} -
25 ${CONVERT} - 'null:' < ${REFERENCE_IMAGE}
26 ${CONVERT} - miff:-  < ${REFERENCE_IMAGE} | ${IDENTIFY} -
27 ${CONVERT} - -  < ${REFERENCE_IMAGE} | ${IDENTIFY} -
28 ${CONVERT} ${REFERENCE_IMAGE} - | ${IDENTIFY} -
29 ${CONVERT} ${REFERENCE_IMAGE} miff:- | ${IDENTIFY} -