Changeset 2204 for trunk/psLib/test/tst_template.c
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/tst_template.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/tst_template.c
r1364 r2204 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004- 08-02 18:30:10$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-10-27 00:57:31 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 15 15 #include "pslib.h" 16 16 17 static inttest1( void );18 static inttest2( void );19 static inttest3( void );17 static psS32 test1( void ); 18 static psS32 test2( void ); 19 static psS32 test3( void ); 20 20 21 21 // test descrription consists of: … … 45 45 test3, 1114, "psFunctionFunk", 0, false 46 46 }, 47 47 48 48 // testpoint #1112 handled by same test function as #1111 49 49 { 50 50 test1, 1112, "psFunctionBang", 0, true 51 51 }, 52 52 53 53 // A null terminates the testDescription list 54 54 { … … 56 56 } 57 57 }; 58 59 int main( intargc, char* argv[] )58 59 psS32 main( psS32 argc, char* argv[] ) 60 60 { 61 61 psLogSetLevel( PS_LOG_INFO ); 62 62 63 63 return ( ! runTestSuite( stderr, "psImage", tests, argc, argv ) ); 64 64 } 65 65 66 inttest1( void )66 psS32 test1( void ) 67 67 { 68 68 // no need to check for memory leaks, as the runTestSuite does that for you. 69 69 70 70 // here is where one implements the tests for generally a single testpoint. 71 71 72 72 return 0; // the value that indicates success is part of the testDescription 73 73 } 74 74 75 inttest2( void )75 psS32 test2( void ) 76 76 { 77 77 // no need to check for memory leaks, as the runTestSuite does that for you. 78 78 79 79 // here is where one implements the tests for generally a single testpoint. 80 80 81 81 return 0; // the value that indicates success is part of the testDescription 82 82 } 83 83 84 inttest3( void )84 psS32 test3( void ) 85 85 { 86 86 // no need to check for memory leaks, as the runTestSuite does that for you. 87 87 88 88 // here is where one implements the tests for generally a single testpoint. 89 89 90 90 return 0; // the value that indicates success is part of the testDescription 91 91 }
Note:
See TracChangeset
for help on using the changeset viewer.
