Changeset 13084
- Timestamp:
- Apr 30, 2007, 2:08:52 PM (19 years ago)
- Location:
- trunk/psLib/test
- Files:
-
- 15 edited
-
astro/tap_psCoord.c (modified) (2 diffs)
-
astro/tap_psCoord01.c (modified) (2 diffs)
-
astro/tap_psCoord02.c (modified) (3 diffs)
-
astro/tap_psEarthOrientation_corrections.c (modified) (6 diffs)
-
fits/tap_psFits.c (modified) (5 diffs)
-
imageops/tap_psImageConvolve.c (modified) (2 diffs)
-
imageops/tap_psImageGeomManip.c (modified) (2 diffs)
-
math/tap_psHist00.c (modified) (1 diff)
-
math/tap_psPolynomial.c (modified) (7 diffs)
-
math/tap_psRandom.c (modified) (1 diff)
-
mathtypes/tap_psVector.c (modified) (1 diff)
-
sys/tap_psError.c (modified) (5 diffs)
-
sys/tap_psMemory.c (modified) (2 diffs)
-
sys/tap_psString.c (modified) (3 diffs)
-
xml/tap_psXML.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tap_psCoord.c
r11180 r13084 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 1-19 20:42:21$7 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-05-01 00:08:52 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 366 366 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 367 367 } 368 /* HERE369 */370 368 } 371 369 -
trunk/psLib/test/astro/tap_psCoord01.c
r11663 r13084 12 12 * values were obtained, and they nearly all fail now. 13 13 * 14 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2007-0 2-06 04:11:54$16 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $17 * @date $Date: 2007-0 2-06 04:11:54$14 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2007-05-01 00:08:52 $ 16 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2007-05-01 00:08:52 $ 18 18 * 19 19 * Copyright 2005 Maui High Performance Computing Center, Univ. of Hawaii … … 995 995 996 996 997 /* HERE997 /* 998 998 #define DEG_INC2 15.0 999 999 #define VERBOSE 0 -
trunk/psLib/test/astro/tap_psCoord02.c
r11657 r13084 7 7 * XXX: These tests should probably be split among several files 8 8 * 9 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-0 2-06 01:01:05$9 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-05-01 00:08:52 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 509 509 // psPlaneTransformDeriv() 510 510 // Ensure psPlaneTransformDeriv() returns NULL for NULL input plane 511 // psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");512 511 // Following should generate error message 513 512 // XXX: un-NULL the first parameter since we test that above … … 549 548 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 550 549 } 551 /* HERE552 */553 550 } 554 551 -
trunk/psLib/test/astro/tap_psEarthOrientation_corrections.c
r12607 r13084 11 11 * 12 12 */ 13 14 13 #include <pslib.h> 15 14 #include <string.h> 16 17 15 #include "tap.h" 18 16 #include "pstap.h" … … 28 26 int main(void) 29 27 { 28 psLogSetFormat("HLNM"); 29 psLogSetLevel(PS_LOG_INFO); 30 30 plan_tests(8); 31 32 // diag("Tests for psEarthOrientation Correction Functions");33 31 34 32 // Initialize library internal structures … … 297 295 //Return NULL for NULL time input 298 296 psEarthPole *pcorr = NULL; 299 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");297 // Following should generate error message 300 298 pcorr = psEOC_PrecessionCorr(empty, PS_IERS_A); 301 299 if (pcorr != NULL) { … … 306 304 307 305 //Return NULL for Invalid IERS table 308 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");306 // Following should generate error message 309 307 pcorr = psEOC_PrecessionCorr(time2, 3); 310 308 if (pcorr != NULL) { … … 464 462 465 463 //Return NULL for NULL input time 466 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");464 // Following should generate error message 467 465 eop = psEOC_PolarTideCorr(empty); 468 466 if (eop != NULL) { … … 501 499 502 500 //Return NULL for NULL input time. 503 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");501 // Following should generate error message 504 502 nute = psEOC_NutationCorr(empty); 505 503 if (nute != NULL) { -
trunk/psLib/test/fits/tap_psFits.c
r11439 r13084 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-0 1-30 21:32:57$8 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-05-01 00:08:52 $ 10 10 * 11 11 * XXXX: All of the makeTable() tests are failing, as well as one additional one. … … 352 352 353 353 // check to see if given a bogus extension name, it errors. 354 psLogMsg(__func__,PS_LOG_INFO, "Following should be an error");354 // Following should be an error 355 355 // XXX: Verify error 356 356 if (psFitsMoveExtName(fits, "bogus") || psErrorGetStackSize() != 1) … … 362 362 363 363 // check to see if given a NULL psFits, it errors. 364 psLogMsg(__func__,PS_LOG_INFO, "Following should be an error");364 // Following should be an error 365 365 // XXX: Verify error 366 366 if (psFitsMoveExtName(NULL, "bogus") || psErrorGetStackSize() != 1) … … 372 372 373 373 // check to see if given a NULL extname, it errors. 374 psLogMsg(__func__,PS_LOG_INFO, "Following should be an error");374 // Following should be an error 375 375 // XXX: Verify error 376 376 if (psFitsMoveExtName(fits, NULL) || psErrorGetStackSize() != 1) … … 384 384 385 385 // Attempt to get ext name from null fits file 386 psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error for NULL fits file");386 // Following should generate an error for NULL fits file 387 387 if(psFitsGetExtName(NULL) != NULL) 388 388 { -
trunk/psLib/test/imageops/tap_psImageConvolve.c
r12195 r13084 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 3-03 01:23:32 $7 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-05-01 00:08:52 $ 9 9 * 10 10 * XXX: Must test the tRelative parameter to psKernelGenerate() … … 161 161 result->yMin, result->yMax, result->xMin, result->xMax); 162 162 for (psS32 y = result->yMin; y <= result->yMax; y++) { 163 printf("HEREy is %d\n", y);163 // printf("y is %d\n", y); 164 164 for (psS32 x = result->xMin; x <= result->xMax; x++) { 165 165 printf(" %6.2f ", result->kernel[y][x]); -
trunk/psLib/test/imageops/tap_psImageGeomManip.c
r13042 r13084 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 4-26 22:18:03$7 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-05-01 00:08:52 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 568 568 569 569 570 printf("HERE\n");571 570 // testImageRotate() 572 571 if (1) { -
trunk/psLib/test/math/tap_psHist00.c
r10813 r13084 55 55 // XXX: How should we test these kinds of things? 56 56 if (0) { 57 psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message.");57 // Following should generate an error message 58 58 psHistogram *myHist = psHistogramAlloc(higher, lower, 1); 59 59 if (myHist != NULL) { -
trunk/psLib/test/math/tap_psPolynomial.c
r10820 r13084 16 16 * XXX: Compare to FLT_EPSILON 17 17 * 18 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $19 * @date $Date: 200 6-12-21 20:05:12 $18 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 19 * @date $Date: 2007-05-01 00:08:52 $ 20 20 * 21 21 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 77 77 if (0) { 78 78 // Attempt to allocate with negative order 79 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");79 // Following should generate error msg for negative terms 80 80 if (psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, -1) != NULL) { 81 81 diag("psPolynomial1DAlloc() Returned structure but expected NULL"); … … 124 124 if (0) { 125 125 // Attempt to allocate with negative order 126 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");126 // Following should generate error msg for negative terms 127 127 if (psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, -1, 1) != NULL) { 128 128 diag("psPolynomial2DAlloc() returned structure but expected NULL"); 129 129 } 130 130 // Attempt to allocate with negative order 131 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");131 // Following should generate error msg for negative terms 132 132 if (psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, 1, -1) != NULL) { 133 133 diag("psPolynomial2DAlloc() returned structure but expected NULL"); … … 181 181 if (0) { 182 182 // Attempt to allocate with negative order 183 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");183 // Following should generate error msg for negative terms 184 184 if (psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, -1, 1, 1) != NULL) { 185 185 diag("psPolynomial3DAlloc(): returned structure but expected NULL"); 186 186 } 187 187 // Attempt to allocate with negative order 188 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");188 // Following should generate error msg for negative terms 189 189 if (psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, 1, -1, 1) != NULL) { 190 190 diag("psPolynomial3DAlloc() returned structure but expected NULL"); 191 191 } 192 192 // Attempt to allocate with negative order 193 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");193 // Following should generate error msg for negative terms 194 194 if (psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, 1, 1, -1) != NULL) { 195 195 diag("psPolynomial3DAlloc(): returned structure but expected NULL"); … … 247 247 if (0) { 248 248 // Attempt to allocate with negative order 249 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");249 // Following should generate error msg for negative terms 250 250 if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, -1, 1, 1, 1) != NULL) { 251 251 diag("psPolynomial4DAlloc(): returned structure but expected NULL"); 252 252 } 253 253 // Attempt to allocate with negative order 254 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");254 // Following should generate error msg for negative terms 255 255 if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, -1, 1, 1) != NULL) { 256 256 diag("psPolynomial4DAlloc(): returned structure but expected NULL"); … … 258 258 } 259 259 // Attempt to allocate with negative order 260 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");260 // Following should generate error msg for negative terms 261 261 if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, 1, -1, 1) != NULL) { 262 262 diag("psPolynomial4DAlloc(): returned structure but expected NULL"); … … 264 264 } 265 265 // Attempt to allocate with negative order 266 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");266 // Following should generate error msg for negative terms 267 267 if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, 1, 1, -1) != NULL) { 268 268 diag("psPolynomial4DAlloc(): returned structure but expected NULL"); -
trunk/psLib/test/math/tap_psRandom.c
r12607 r13084 267 267 psFree(myRNG1); 268 268 269 psLogMsg(__func__,PS_LOG_INFO,"Reset a NULL psRandom variable, should generate an error message");269 // Reset a NULL psRandom variable, should generate an error message 270 270 psRandomReset(NULL,SEED); 271 271 } -
trunk/psLib/test/mathtypes/tap_psVector.c
r12781 r13084 468 468 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); \ 469 469 } 470 //HERE 470 471 471 // psVectorToString() tests 472 472 TEST_VECTOR_TO_STRING(PS_TYPE_U8, 5, 1, 1, "[1,2,3,4,5]"); -
trunk/psLib/test/sys/tap_psError.c
r13010 r13084 5 5 * @author Eric Van Alst, MHPCC 6 6 * 7 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 4-25 01:07:08$7 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-05-01 00:08:52 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 11 11 * 12 12 */ 13 14 13 #include <stdio.h> 15 14 #include <stdlib.h> 16 15 #include <string.h> 17 16 #include <inttypes.h> 18 19 17 #include "pslib.h" 20 18 #include "tap.h" … … 39 37 { 40 38 psLogSetFormat("HLNM"); 39 psLogSetLevel(PS_LOG_INFO); 41 40 plan_tests(60); 42 41 … … 301 300 // Verify the return value of psErrorCodeString 302 301 // psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE; 303 // psLogMsg("tst_psError05", PS_LOG_INFO, psErrorCodeString(code));304 305 302 // Verify the return value of psErrorCodeString if code is negative 306 303 ok( psErrorCodeString(-1) == NULL, "error string with neg. code"); … … 359 356 b. an appropriate error is generated. 360 357 */ 361 psLogMsg(__func__,PS_LOG_INFO,"Following should be an error.");358 // Following should be an error 362 359 psErrorClear(); 363 360 psErrorRegister(NULL,1); … … 379 376 } 380 377 } 381 //HERE -
trunk/psLib/test/sys/tap_psMemory.c
r12781 r13084 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 4-10 21:09:31$7 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-05-01 00:08:52 $ 9 9 * 10 10 * XXXX: Several tests fail with an Abort and are commented out. … … 296 296 } 297 297 298 //HERE299 298 // memCheckTypes() 300 299 if (1) { -
trunk/psLib/test/sys/tap_psString.c
r12781 r13084 20 20 * @author Eric Van Alst, MHPCC 21 21 * 22 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $23 * @date $Date: 2007-0 4-10 21:09:31$22 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2007-05-01 00:08:52 $ 24 24 * 25 25 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 26 26 * 27 27 */ 28 29 28 #include <string.h> 30 29 #include "pslib.h" 31 30 #include "tap.h" 32 31 #include "pstap.h" 33 34 32 35 33 #define STR_0 "binky had a leeeetle lamb" … … 409 407 char** test = NULL; 410 408 //psStringCopy should return NULL for NULL input string 411 // psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");409 // Following should generate error message 412 410 output = psStringCopy(nullTest); 413 411 ok(output == NULL, "psStringCopy to return NULL for NULL input string"); … … 463 461 } 464 462 } 465 // HERE -
trunk/psLib/test/xml/tap_psXML.c
r11439 r13084 18 18 * XXXX: There are no data tests, he simple prints data to STDOUT 19 19 * 20 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $21 * @date $Date: 2007-0 1-30 21:32:57$20 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 21 * @date $Date: 2007-05-01 00:08:52 $ 22 22 * 23 23 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 313 313 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 314 314 } 315 /* HERE 316 */ 317 } 315 }
Note:
See TracChangeset
for help on using the changeset viewer.
