Changeset 1364
- Timestamp:
- Aug 2, 2004, 8:30:10 AM (22 years ago)
- Location:
- trunk/psLib/test
- Files:
-
- 2 edited
-
image/tst_psImageExtraction.c (modified) (2 diffs)
-
tst_template.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageExtraction.c
r1358 r1364 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-0 7-31 02:27:16$8 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-08-02 18:30:10 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 int main( int argc, char* argv[] ) 31 31 { 32 return runTestSuite( stderr, "psImage", tests, argc, argv );32 return ! runTestSuite( stderr, "psImage", tests, argc, argv ); 33 33 } 34 34 -
trunk/psLib/test/tst_template.c
r1334 r1364 1 1 /** @file tst_psImageManip.c 2 *3 * @brief Contains the tests for psImageManip.[ch]4 *5 *6 * @author Robert DeSonia, MHPCC7 *8 * @version $Revision: 1.1$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-07-29 19:29:40 $10 *11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii12 */2 * 3 * @brief Contains the tests for psImageManip.[ch] 4 * 5 * 6 * @author Robert DeSonia, MHPCC 7 * 8 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-08-02 18:30:10 $ 10 * 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 12 */ 13 13 14 14 #include "psTest.h" 15 15 #include "pslib.h" 16 16 17 static int test1( void);18 static int test2( void);19 static int test3( void);17 static int test1( void ); 18 static int test2( void ); 19 static int test3( void ); 20 20 21 21 // test descrription consists of: … … 36 36 // 37 37 testDescription tests[] = { 38 {test1,1111,"psFunctionBar",0,false}, 39 {test2,1113,"psFunctionFoo",0,false}, 40 {test3,1114,"psFunctionFunk",0,false}, 41 38 { 39 test1, 1111, "psFunctionBar", 0, false 40 }, 41 { 42 test2, 1113, "psFunctionFoo", 0, false 43 }, 44 { 45 test3, 1114, "psFunctionFunk", 0, false 46 }, 47 42 48 // testpoint #1112 handled by same test function as #1111 43 {test1,1112,"psFunctionBang",0,true}, 44 49 { 50 test1, 1112, "psFunctionBang", 0, true 51 }, 52 45 53 // A null terminates the testDescription list 46 {NULL} 54 { 55 NULL 56 } 47 57 }; 48 49 int main( int argc, char* argv[])58 59 int main( int argc, char* argv[] ) 50 60 { 51 psLogSetLevel( PS_LOG_INFO);52 53 return runTestSuite(stderr,"psImage",tests,argc,argv);61 psLogSetLevel( PS_LOG_INFO ); 62 63 return ( ! runTestSuite( stderr, "psImage", tests, argc, argv ) ); 54 64 } 55 65 56 int test1( void)66 int test1( void ) 57 67 { 58 68 // no need to check for memory leaks, as the runTestSuite does that for you. 59 69 60 70 // here is where one implements the tests for generally a single testpoint. 61 71 62 72 return 0; // the value that indicates success is part of the testDescription 63 73 } 64 74 65 int test2( void)75 int test2( void ) 66 76 { 67 77 // no need to check for memory leaks, as the runTestSuite does that for you. 68 78 69 79 // here is where one implements the tests for generally a single testpoint. 70 80 71 81 return 0; // the value that indicates success is part of the testDescription 72 82 } 73 83 74 int test3( void)84 int test3( void ) 75 85 { 76 86 // no need to check for memory leaks, as the runTestSuite does that for you. 77 87 78 88 // here is where one implements the tests for generally a single testpoint. 79 89 80 90 return 0; // the value that indicates success is part of the testDescription 81 91 }
Note:
See TracChangeset
for help on using the changeset viewer.
