/** @file  tst_psImageManip.c
*
*  @brief Contains the tests for psImageManip.[ch]
*
*
*  @author Robert DeSonia, MHPCC
*
*  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
*  @date $Date: 2005-04-07 20:27:41 $
*
*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
*/

#include "psTest.h"
#include "pslib_strict.h"

static psS32 test1( void );
static psS32 test2( void );
static psS32 test3( void );

// test description consists of:
//    * test function
//
//    * testpoint number (item number in gforge testpoint log)
//
//    * name of the testpoint
//
//    * expected return value (negative numbers are signal types, e.g.,
//      -6 for aborts).  Usually either -6 (psAbort called) or 0.
//
//    * boolean to signify if the test function is already in list, i.e., if
//      the test function covers multiple testpoints.  If true, the line is
//      ignored by runTestSuite if the user didn't explicitly specify the
//      testpoint with the -n or -t option, as to not run a test function
//      multiple times.
//
testDescription tests[] = {
                              {
                                  test1, 1111, "psFunctionBar", 0, false
                              },
                              {
                                  test2, 1113, "psFunctionFoo", 0, false
                              },
                              {
                                  test3, 1114, "psFunctionFunk", 0, false
                              },

                              // testpoint #1112 handled by same test function as #1111
                              {
                                  test1, 1112, "psFunctionBang", 0, true
                              },

                              // A null terminates the testDescription list
                              {
                                  NULL
                              }
                          };

psS32 main( psS32 argc, char* argv[] )
{
    psLogSetLevel( PS_LOG_INFO );

    return ( ! runTestSuite( stderr, "psImage", tests, argc, argv ) );
}

psS32 test1( void )
{
    // no need to check for memory leaks, as the runTestSuite does that for you.

    // here is where one implements the tests for generally a single testpoint.

    return 0;  // the value that indicates success is part of the testDescription
}

psS32 test2( void )
{
    // no need to check for memory leaks, as the runTestSuite does that for you.

    // here is where one implements the tests for generally a single testpoint.

    return 0;  // the value that indicates success is part of the testDescription
}

psS32 test3( void )
{
    // no need to check for memory leaks, as the runTestSuite does that for you.

    // here is where one implements the tests for generally a single testpoint.

    return 0;  // the value that indicates success is part of the testDescription
}

