Received: from mailgate004.isp.belgacom.be (mailgate004.isp.belgacom.be [195.238.6.89])
	by maildelivery017.isp.belgacom.be (Postfix) with ESMTP id 8E251C06E
	for <joris.at.lebbeke@skynet.be>; Thu, 13 Sep 2007 22:05:19 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 13 Sep 2007 22:05:18 +0200
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l8DJrMt8028586;
	Thu, 13 Sep 2007 15:54:08 -0400
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l8DJrJ01028583
	for <tiff@lists.maptools.org>; Thu, 13 Sep 2007 15:53:20 -0400
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	l8DJrHsj012980; Thu, 13 Sep 2007 14:53:17 -0500 (CDT)
Date: Thu, 13 Sep 2007 14:53:17 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Lee Howard <faxguy@howardsilvan.com>
Subject: Re: [Tiff] bug reporting and state-of-the-project query
In-Reply-To: <46E9927A.1020301@howardsilvan.com>
Message-ID: <Pine.SOC.4.60.0709131446130.19162@blade.simplesystems.org>
References: <46E75CCE.8090308@howardsilvan.com> <46E7774B.4090706@pobox.com>
	<46E8C739.4060104@howardsilvan.com>
	<Pine.SOC.4.60.0709130925570.19162@blade.simplesystems.org>
	<46E9927A.1020301@howardsilvan.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: TIFF mailing list <tiff@lists.maptools.org>
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.000027ba
X-MSP-STORE: Thu, 13 Sep 2007 22:05:19 +0200
Status: RO

On Thu, 13 Sep 2007, Lee Howard wrote:

> Bob Friesenhahn wrote:
>
>> What is needed are a set of small Unix shell scripts designed to fit into 
>> libtiff's existing test suite.  These scripts would test libtiff using the 
>> libtiff utilities.  Besides validating libtiff, this would help validate 
>> the utilities used.
>> 
>> Care to volunteer?
>
> Attached is a start.

To make things more clear, it is best to have many small tests so that 
there can be a summary of the number of tests that passed/failed at 
the end of the test run and one tiny failure does not cascade and 
cause all tests to fail.  A test is successful if it returns 0 to the 
invoking environment.  It is best that each test is stand-alone so 
that it does not depend on the success of other tests.  If there needs 
to be some common test framework code (e.g. to set environment 
variables) , then that can be included by simply sourcing a shared bit 
of shell script.

Here is an example of one of the test scripts I used for 
GraphicsMagick:

#!/bin/sh
#
#  Test for 'gm' utility.

set -e # Exit on any error
. ${srcdir}/utilities/tests/common.sh

${GM} convert ${MODEL_MIFF} -raise 10x10 -label Raise Raise_out.miff

So, an example simple test for tiffinfo (assuming that file.tiff 
exists somewhere) could be

#!/bin/sh
tiffinfo file.tiff > /dev/null

and for tiff2pdf

#!/bin/sh
tiff2pdf file.tiff file.pdf

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
