Changeset 12513
- Timestamp:
- Mar 19, 2007, 5:57:25 PM (19 years ago)
- Location:
- trunk/psLib/test
- Files:
-
- 19 edited
-
astro/tap_psEarthOrientation_corrections.c (modified) (5 diffs)
-
astro/tap_psEarthOrientation_motion.c (modified) (5 diffs)
-
astro/tap_psSphereOps_all.c (modified) (3 diffs)
-
imageops/tap_psImageShift.c (modified) (7 diffs)
-
imageops/tap_psImageShiftKernel.c (modified) (14 diffs)
-
math/tap_psMD5.c (modified) (1 diff)
-
math/tap_psSparse.c (modified) (5 diffs)
-
math/tap_psStatsTiming.c (modified) (11 diffs)
-
math/tap_psStats_Sample_01.c (modified) (3 diffs)
-
mathtypes/tap_psImage.c (modified) (12 diffs)
-
mathtypes/tap_psImageInterpolate.c (modified) (9 diffs)
-
mathtypes/tap_psScalar.c (modified) (5 diffs)
-
mathtypes/tap_psVector.c (modified) (13 diffs)
-
mathtypes/tap_psVectorSort_01.c (modified) (2 diffs)
-
mathtypes/tap_psVectorSort_02.c (modified) (2 diffs)
-
sys/tap_psError.c (modified) (8 diffs)
-
sys/tap_psMemory.c (modified) (7 diffs)
-
sys/tap_psString.c (modified) (18 diffs)
-
sys/tap_psTrace.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tap_psEarthOrientation_corrections.c
r9976 r12513 30 30 plan_tests(8); 31 31 32 diag("Tests for psEarthOrientation Correction Functions");32 // diag("Tests for psEarthOrientation Correction Functions"); 33 33 34 34 // Initialize library internal structures … … 49 49 void testEOCInit(void) 50 50 { 51 diag(" >>>Test 1: p_psEOCInit ");51 // diag(" >>>Test 1: p_psEOCInit "); 52 52 //Test for psEarthPoleAlloc 53 53 //Return properly allocated psEarthPole … … 73 73 void testAberration(void) 74 74 { 75 diag(" >>>Test 2: psAberration ");75 // diag(" >>>Test 2: psAberration "); 76 76 psSphere *apparent = NULL; 77 77 psSphere *empty = NULL; … … 154 154 void testGravDef(void) 155 155 { 156 diag(" >>>Test 3: psGravityDeflection ");156 // diag(" >>>Test 3: psGravityDeflection "); 157 157 //Test for psGravityDeflection 158 158 //Return properly allocated psEarthPole … … 284 284 void testEOC_Corrs(void) 285 285 { 286 diag(" >>>Test 4: psEOC Correction Functions");286 // diag(" >>>Test 4: psEOC Correction Functions"); 287 287 //Tests for psEOC_PrecessionCorr 288 288 /* -
trunk/psLib/test/astro/tap_psEarthOrientation_motion.c
r12193 r12513 32 32 plan_tests(48); 33 33 34 diag("Tests for psEarthOrientation Motion Functions");34 // diag("Tests for psEarthOrientation Motion Functions"); 35 35 36 36 // Initialize library internal structures … … 50 50 void testPrecessionModel(void) 51 51 { 52 diag(" >>>Test 1: psEOC_PrecessionModel");52 // diag(" >>>Test 1: psEOC_PrecessionModel"); 53 53 54 54 psEarthPole *ep = NULL; … … 147 147 void testPolarMotion(void) 148 148 { 149 diag(" >>>Test 2: psEOC_GetPolarMotion ");149 // diag(" >>>Test 2: psEOC_GetPolarMotion "); 150 150 151 151 psTime *in = psTimeAlloc(PS_TIME_UTC); … … 264 264 void testSphereRots(void) 265 265 { 266 diag(" >>>Test 3: psSphereRot Functions");266 // diag(" >>>Test 3: psSphereRot Functions"); 267 267 psSphereRot *out = NULL; 268 268 psEarthPole *in = NULL; … … 428 428 void testSpherePrecess(void) 429 429 { 430 diag(" >>>Test 4: psSpherePrecess");430 // diag(" >>>Test 4: psSpherePrecess"); 431 431 psSphereRot *rot = NULL; 432 432 psTime *fromTime = NULL; -
trunk/psLib/test/astro/tap_psSphereOps_all.c
r12194 r12513 51 51 void testSphereRotCreate(void) 52 52 { 53 diag(" >>>Test 1: psSphereRot Creation Functions");53 // diag(" >>>Test 1: psSphereRot Creation Functions"); 54 54 55 55 // Allocate data structure … … 128 128 void testSphereRotConvert(void) 129 129 { 130 diag(" >>>Test 2: psSphereRot Conversion Functions");130 // diag(" >>>Test 2: psSphereRot Conversion Functions"); 131 131 132 132 // Allocate data structure … … 324 324 void testSphereOffsets(void) 325 325 { 326 diag(" >>>Test 3: psSphereGet/SetOffset Functions");326 // diag(" >>>Test 3: psSphereGet/SetOffset Functions"); 327 327 328 328 // Allocate data structure -
trunk/psLib/test/imageops/tap_psImageShift.c
r9875 r12513 10 10 plan_tests(39); 11 11 12 diag("psImageShift() tests");12 // diag("psImageShift() tests"); 13 13 14 14 // tests using BILINEAR interpolation … … 16 16 psMemId id = psMemGetId(); 17 17 18 diag("shift a delta function by an integer offset");18 // diag("shift a delta function by an integer offset"); 19 19 20 20 // generate simple image (delta function) … … 48 48 psMemId id = psMemGetId(); 49 49 50 diag("shift a delta function by an fractional pixel offset");50 // diag("shift a delta function by an fractional pixel offset"); 51 51 52 52 // generate simple image (delta function) … … 63 63 // fractional shifts introduce smoothing, 64 64 psImage *shift = psImageShift (NULL, image, 0.2, 0.4, 0.0, PS_INTERPOLATE_BILINEAR); 65 diag("these require tolerance of 4 epsilon (why?)");65 // diag("these require tolerance of 4 epsilon (why?)"); 66 66 ok_float_tol (shift->data.F32[10][10], 0.8*0.6, 4*FLT_EPSILON, "point 10,10 should be %f : %f", 0.8*0.6, shift->data.F32[10][10]); 67 67 ok_float_tol (shift->data.F32[10][11], 0.2*0.6, 4*FLT_EPSILON, "point 10,11 should be %f : %f", 0.2*0.6, shift->data.F32[10][11]); … … 85 85 psMemId id = psMemGetId(); 86 86 87 diag("shift a gaussian and measure centroid");87 // diag("shift a gaussian and measure centroid"); 88 88 89 89 // generate simple image (gauss function) … … 116 116 yo /= no; 117 117 118 diag ("these require a tolerance of 100 epsilon");118 // diag ("these require a tolerance of 100 epsilon"); 119 119 ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.0, xo); 120 120 ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "y-centroid should be %f : %f", 16.0, yo); … … 136 136 yo /= no; 137 137 138 diag ("these require a tolerance of 100 epsilon");138 // diag ("these require a tolerance of 100 epsilon"); 139 139 ok_float_tol (xo, 17.2, 100*FLT_EPSILON, "x-centroid should be %f : %f", 17.2, xo); 140 140 ok_float_tol (yo, 14.8, 100*FLT_EPSILON, "y-centroid should be %f : %f", 14.8, yo); -
trunk/psLib/test/imageops/tap_psImageShiftKernel.c
r12094 r12513 10 10 plan_tests(34); 11 11 12 diag("psImageShiftKernel() tests");12 // diag("psImageShiftKernel() tests"); 13 13 14 14 // tests using BILINEAR interpolation … … 17 17 psMemId id = psMemGetId(); 18 18 19 diag("shift a delta function by an integer offset");19 // diag("shift a delta function by an integer offset"); 20 20 21 21 // generate simple image (delta function) … … 50 50 psMemId id = psMemGetId(); 51 51 52 diag("shift a delta function by an fractional pixel offset");52 // diag("shift a delta function by an fractional pixel offset"); 53 53 54 54 // generate simple image (delta function) … … 65 65 // fractional shifts introduce smoothing, 66 66 psImage *shift = psImageShiftKernel (NULL, image, 0.2, 0.4, PS_INTERPOLATE_BICUBE); 67 diag("these require tolerance of 4 epsilon (why?)");67 // diag("these require tolerance of 4 epsilon (why?)"); 68 68 ok_float_tol (shift->data.F32[10][10], 0.8*0.6, 4*FLT_EPSILON, "point 10,10 should be %f : %f", 0.8*0.6, shift->data.F32[10][10]); 69 69 ok_float_tol (shift->data.F32[10][11], 0.2*0.6, 4*FLT_EPSILON, "point 10,11 should be %f : %f", 0.2*0.6, shift->data.F32[10][11]); … … 88 88 psMemId id = psMemGetId(); 89 89 90 diag("shift a gaussian and measure centroid");90 // diag("shift a gaussian and measure centroid"); 91 91 92 92 // generate simple image (gauss function) … … 117 117 yo /= no; 118 118 119 diag ("these require a tolerance of 100 epsilon");119 // diag ("these require a tolerance of 100 epsilon"); 120 120 ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.0, xo); 121 121 ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "y-centroid should be %f : %f", 16.0, yo); … … 136 136 yo /= no; 137 137 138 diag ("these require a tolerance of 100 epsilon");138 // diag ("these require a tolerance of 100 epsilon"); 139 139 ok_float_tol (xo, 17.2, 100*FLT_EPSILON, "x-centroid should be %f : %f", 17.2, xo); 140 140 ok_float_tol (yo, 14.8, 100*FLT_EPSILON, "y-centroid should be %f : %f", 14.8, yo); … … 161 161 // fractional shifts introduce smoothing, 162 162 psImage *shift = psImageShiftKernel (NULL, image, 0.2, 0.4, PS_INTERPOLATE_BICUBE); 163 diag ("please check these values: this kernel is very steep and ringy. what is the right BICUBE kernel?");163 // diag ("please check these values: this kernel is very steep and ringy. what is the right BICUBE kernel?"); 164 164 ok_float_tol (shift->data.F32[10][10], -1.444445, 4*FLT_EPSILON, "point 10,10 should be %f : %f", -1.444445, shift->data.F32[10][10]); 165 165 ok_float_tol (shift->data.F32[10][11], -0.277778, 4*FLT_EPSILON, "point 10,11 should be %f : %f", -0.277778, shift->data.F32[10][11]); … … 184 184 psMemId id = psMemGetId(); 185 185 186 diag("shift a gaussian and measure centroid");186 // diag("shift a gaussian and measure centroid"); 187 187 188 188 // generate simple image (gauss function) … … 215 215 yo /= no; 216 216 217 diag ("these require a tolerance of 100 epsilon");217 // diag ("these require a tolerance of 100 epsilon"); 218 218 ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.0, xo); 219 219 ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "y-centroid should be %f : %f", 16.0, yo); … … 235 235 yo /= no; 236 236 237 diag ("these require a tolerance of 100 epsilon");237 // diag ("these require a tolerance of 100 epsilon"); 238 238 ok_float_tol (xo, 16.2, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.2, xo); 239 239 ok_float_tol (yo, 15.8, 100*FLT_EPSILON, "y-centroid should be %f : %f", 15.8, yo); … … 281 281 psMemId id = psMemGetId(); 282 282 283 diag("shift a gaussian and measure centroid");283 // diag("shift a gaussian and measure centroid"); 284 284 285 285 // generate simple image (gauss function) … … 312 312 yo /= no; 313 313 314 diag ("these require a tolerance of 100 epsilon");314 // diag ("these require a tolerance of 100 epsilon"); 315 315 ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.0, xo); 316 316 ok_float_tol (xo, 16.0, 100*FLT_EPSILON, "y-centroid should be %f : %f", 16.0, yo); … … 332 332 yo /= no; 333 333 334 diag ("these require a tolerance of 100 epsilon");334 // diag ("these require a tolerance of 100 epsilon"); 335 335 ok_float_tol (xo, 16.2, 100*FLT_EPSILON, "x-centroid should be %f : %f", 16.2, xo); 336 336 ok_float_tol (yo, 15.8, 100*FLT_EPSILON, "y-centroid should be %f : %f", 15.8, yo); -
trunk/psLib/test/math/tap_psMD5.c
r10309 r12513 49 49 ); 50 50 51 diag("psMD5 tests");51 // diag("psMD5 tests"); 52 52 53 53 // Strings -
trunk/psLib/test/math/tap_psSparse.c
r10170 r12513 10 10 plan_tests(26); 11 11 12 diag("psSparse() tests");12 // diag("psSparse() tests"); 13 13 14 14 // test psSparseSolve for a simple normal example matrix … … 16 16 psMemId id = psMemGetId(); 17 17 18 diag ("solve a normalized matrix equation with psSparseSolve");18 // diag ("solve a normalized matrix equation with psSparseSolve"); 19 19 20 20 // the basic equation is Ax = b … … 89 89 psMemId id = psMemGetId(); 90 90 91 diag ("solve a non-normalized matrix equation with psSparseSolve");91 // diag ("solve a non-normalized matrix equation with psSparseSolve"); 92 92 93 93 // the basic equation is Ax = b … … 173 173 psMemId id = psMemGetId(); 174 174 175 diag ("solve a simple, small matrix equation ");175 // diag ("solve a simple, small matrix equation "); 176 176 177 177 // the basic equation (Ax = b) is: … … 283 283 psMemId id = psMemGetId(); 284 284 285 diag ("solve a simple, small matrix equation ");285 // diag ("solve a simple, small matrix equation "); 286 286 287 287 // the basic equation (Ax = b) is: -
trunk/psLib/test/math/tap_psStatsTiming.c
r11656 r12513 17 17 plan_tests(68); 18 18 19 diag("psStats timing tests");19 // diag("psStats timing tests"); 20 20 21 21 // build a gauss-deviate vector (mean = 0.0, sigma = 1.0) for tests … … 26 26 } 27 27 28 diag ("timing for sample mean");28 // diag ("timing for sample mean"); 29 29 /********** SAMPLE MEAN ***********/ 30 30 // test stat sample mean (no mask, no range) … … 149 149 } 150 150 151 diag ("timing for sample median");151 // diag ("timing for sample median"); 152 152 /********** SAMPLE MEDIAN ***********/ 153 153 // test stat sample median (no mask, no range) … … 243 243 } 244 244 245 diag ("timing for sample stdev");245 // diag ("timing for sample stdev"); 246 246 /********** SAMPLE STDEV ***********/ 247 247 // test stat sample stdev (no mask, no range) … … 366 366 } 367 367 368 diag ("timing for sample min,max");368 // diag ("timing for sample min,max"); 369 369 /*************** MIN,MAX ******************/ 370 370 // test stat min,max (no mask, no range) … … 456 456 } 457 457 458 diag ("timing for clipped stats");458 // diag ("timing for clipped stats"); 459 459 /********** CLIPPED STATS ***********/ 460 460 { … … 528 528 } 529 529 530 diag ("timing for robust stats");530 // diag ("timing for robust stats"); 531 531 /********** ROBUST STATS ***********/ 532 532 { … … 600 600 } 601 601 602 diag ("timing for fitted stats");602 // diag ("timing for fitted stats"); 603 603 /********** FITTED TIMING ***********/ 604 604 { … … 673 673 } 674 674 675 diag ("timing for fitted (v2) stats");675 // diag ("timing for fitted (v2) stats"); 676 676 /********** FITTED (v2) TIMING ***********/ 677 677 { … … 746 746 } 747 747 748 diag ("compare sample, robust, and fitted mean and stdev to theoretical");748 // diag ("compare sample, robust, and fitted mean and stdev to theoretical"); 749 749 // compare SAMPLE, FITTED, ROBUST mean to theoretical 750 750 { … … 785 785 } 786 786 787 diag ("compare sample, robust, and fitted mean and stdev to theoretical");787 // diag ("compare sample, robust, and fitted mean and stdev to theoretical"); 788 788 // compare SAMPLE, FITTED_V2, ROBUST mean to theoretical 789 789 { -
trunk/psLib/test/math/tap_psStats_Sample_01.c
r11424 r12513 491 491 plan_tests(21); 492 492 493 diag("psStats Tests with sample SDSS data from RHL and Megacam from EAM");494 diag("this file does not yet define a specific test");495 diag("the fitted mean is currently wrong for these two data sets");493 // diag("psStats Tests with sample SDSS data from RHL and Megacam from EAM"); 494 // diag("this file does not yet define a specific test"); 495 // diag("the fitted mean is currently wrong for these two data sets"); 496 496 497 497 { 498 498 psMemId id = psMemGetId(); 499 499 500 diag("sample 1 : problem with integer-binned data driven to tiny sigma values");500 // diag("sample 1 : problem with integer-binned data driven to tiny sigma values"); 501 501 psStats *stats = psStatsAlloc (PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV | 502 502 PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV | … … 536 536 psMemId id = psMemGetId(); 537 537 538 diag("sample 2");538 // diag("sample 2"); 539 539 psStats *stats = psStatsAlloc (PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV | 540 540 PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV | … … 571 571 psMemId id = psMemGetId(); 572 572 573 diag("sample 3");573 // diag("sample 3"); 574 574 psStats *stats = psStatsAlloc (PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV | 575 575 PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV | -
trunk/psLib/test/mathtypes/tap_psImage.c
r12431 r12513 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-03- 14 00:39:51$8 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-03-20 03:57:25 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 68 68 void testImageAlloc() 69 69 { 70 diag("testImageAlloc");70 // diag("testImageAlloc"); 71 71 72 72 psImage* image = NULL; … … 152 152 for (psS32 c=0;c<cols;c++) { 153 153 if (image->data.U16[r][c] != 2*c+r) { 154 diag("ERROR: Could not set all pixels in uint16 image at (%d,%d)",c,r);154 // diag("ERROR: Could not set all pixels in uint16 image at (%d,%d)",c,r); 155 155 errorFlag = true; 156 156 } … … 173 173 for (psS32 c=0;c<cols;c++) { 174 174 if (fabsf(image->data.F32[r][c] - (2.0f*c+r)) > FLT_EPSILON) { 175 diag("Could not set all pixels in float image at (%d,%d)",c,r);175 // diag("Could not set all pixels in float image at (%d,%d)",c,r); 176 176 errorFlag = true; 177 177 } … … 194 194 for (psS32 c=0;c<cols;c++) { 195 195 if (fabs(image->data.F64[r][c] - (2.0f*c+r)) > DBL_EPSILON) { 196 diag("Set all pixels in double image at (%d,%d)",c,r);196 // diag("Set all pixels in double image at (%d,%d)",c,r); 197 197 errorFlag = true; 198 198 } … … 216 216 for (psS32 c=0;c<cols;c++) { 217 217 if (image->data.U8[r][c] != (uint8_t)(r + c)) { 218 diag("Set all pixels in image (type=%d) at (%d,%d)", 219 type[t],c,r); 218 // diag("Set all pixels in image (type=%d) at (%d,%d)", type[t],c,r); 220 219 errorFlag = true; 221 220 } … … 250 249 // Testpoint #790 251 250 252 diag("testRegion");251 // diag("testRegion"); 253 252 254 253 psRegion region = psRegionSet(1,2,3,4); … … 271 270 void testRegion2() 272 271 { 273 diag("testRegion2");272 // diag("testRegion2"); 274 273 275 274 psImage *in; … … 297 296 void testRegion3() 298 297 { 299 diag("testRegion3");298 // diag("testRegion3"); 300 299 301 300 float X = 1; … … 312 311 void testImageInit() 313 312 { 314 diag("testImageInit");313 // diag("testImageInit"); 315 314 316 315 psImage *in1 = NULL; … … 346 345 void testImageSet() 347 346 { 348 diag("testImageSet");347 // diag("testImageSet"); 349 348 350 349 psImage *image = NULL; … … 462 461 void testImageGet() 463 462 { 464 diag("testImageGet");463 // diag("testImageGet"); 465 464 466 465 psImage *image = NULL; -
trunk/psLib/test/mathtypes/tap_psImageInterpolate.c
r9875 r12513 10 10 plan_tests(47); 11 11 12 diag("psImageInterpolate() tests");12 // diag("psImageInterpolate() tests"); 13 13 14 14 // very simple tests: no mask, bilinear mode, xramp image only … … 16 16 psMemId id = psMemGetId(); 17 17 18 diag ("interpolate a delta function");18 // diag ("interpolate a delta function"); 19 19 20 20 // generate simple image (x ramp) … … 31 31 ok_float (value, 1.0, "pixel center value - %f", value); 32 32 33 diag ("why do I need to have tolerances of 4epsilon or so??");33 // diag ("why do I need to have tolerances of 4epsilon or so??"); 34 34 value = psImagePixelInterpolate (image, 10.9, 10.5, NULL, 0, 0.0, PS_INTERPOLATE_BILINEAR); 35 35 ok_float_tol (value, 0.6, 4.0*FLT_EPSILON, "pixel value - %.20f", value); … … 51 51 psMemId id = psMemGetId(); 52 52 53 diag ("interpolate an x-ramp");53 // diag ("interpolate an x-ramp"); 54 54 55 55 // generate simple image (x ramp) … … 103 103 psMemId id = psMemGetId(); 104 104 105 diag ("interpolate a y-ramp: ");105 // diag ("interpolate a y-ramp: "); 106 106 107 107 // generate simple image (y ramp) … … 145 145 psMemId id = psMemGetId(); 146 146 147 diag ("interpolate an x-ramp (bicube)");147 // diag ("interpolate an x-ramp (bicube)"); 148 148 149 149 // generate simple image (x ramp) … … 177 177 ok_float (value, 2.8, "coord: 2.8, 2.8, value: %f", value); 178 178 179 diag ("coords outside of nominal range (1 < x < Nx - 2) return 'uncover'");179 // diag ("coords outside of nominal range (1 < x < Nx - 2) return 'uncover'"); 180 180 181 181 // no extrapolation: these return the 'uncover' value … … 199 199 psMemId id = psMemGetId(); 200 200 201 diag ("interpolate a y-ramp (bicube)");201 // diag ("interpolate a y-ramp (bicube)"); 202 202 203 203 // generate simple image (y ramp) … … 241 241 psMemId id = psMemGetId(); 242 242 243 diag ("interpolate a quadratic shape (bicube)");243 // diag ("interpolate a quadratic shape (bicube)"); 244 244 245 245 // generate simple image (x ramp) -
trunk/psLib/test/mathtypes/tap_psScalar.c
r12440 r12513 5 5 * @author Eric Van Alst, MHPCC 6 6 * 7 * @version $Revision: 1. 3$7 * @version $Revision: 1.4 $ 8 8 * $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-03- 14 21:21:49$9 * @date $Date: 2007-03-20 03:57:25 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 64 64 void testScalarAlloc(void) 65 65 { 66 diag("psTestScalarAlloc");66 // diag("psTestScalarAlloc"); 67 67 68 68 //Verify the proper allocation/deallocation of scalar objects of valid types … … 82 82 void testBadScalarAlloc(void) 83 83 { 84 diag("psTestBadScalarAlloc");84 // diag("psTestBadScalarAlloc"); 85 85 86 86 // Verify return is null for invalid scalar type … … 92 92 void testScalarCopy(void) 93 93 { 94 diag("psTestScalarCopy");94 // diag("psTestScalarCopy"); 95 95 96 96 // Verify the proper copying of scalar objects for all valid types … … 110 110 void testBadScalarCopy(void) 111 111 { 112 diag("psTestBadScalarCopy");112 // diag("psTestBadScalarCopy"); 113 113 114 114 // Verify the return is null for invalid scalar type in the original -
trunk/psLib/test/mathtypes/tap_psVector.c
r12440 r12513 10 10 plan_tests(209); 11 11 12 diag("psVectorAlloc() tests");12 // diag("psVectorAlloc() tests"); 13 13 14 14 { … … 55 55 56 56 57 diag("psVectorRealloc() tests");57 // diag("psVectorRealloc() tests"); 58 58 59 59 { … … 153 153 } 154 154 155 diag("psVectorExtend() tests");155 // diag("psVectorExtend() tests"); 156 156 { 157 157 // create new psVector … … 217 217 218 218 219 diag("psVectorInit() tests");219 // diag("psVectorInit() tests"); 220 220 221 221 { … … 281 281 282 282 283 diag("psVectorCreate() tests");283 // diag("psVectorCreate() tests"); 284 284 285 285 { … … 399 399 400 400 401 diag("psVectorToString() tests");401 // diag("psVectorToString() tests"); 402 402 403 403 #define TEST_VECTOR_TO_STRING(TYPE, SIZE, START, INC, EXPECTED) \ … … 439 439 440 440 441 diag("p_psVectorGetElementF64() tests");441 // diag("p_psVectorGetElementF64() tests"); 442 442 443 443 #define TEST_VECTOR_GET_ELEMENT_F64(ELEM_TYPE, SIZE, VALUE_TYPE, \ … … 477 477 478 478 479 diag("p_psVectorPrint() tests");479 // diag("p_psVectorPrint() tests"); 480 480 // XXX: Why are we testing private functions? 481 481 #define TEST_VECTOR_PRINT(ELEM_TYPE, SIZE, VALUE_TYPE, INIT_VALUE, FD, \ … … 513 513 TEST_VECTOR_PRINT(PS_TYPE_F64,2, psF64, -123.123, 1, "PS_TYPE_F64", TRUE); 514 514 515 diag("psVectorSet() tests");515 // diag("psVectorSet() tests"); 516 516 517 517 { … … 543 543 544 544 545 diag("psVectorGet() tests");545 // diag("psVectorGet() tests"); 546 546 547 547 { … … 566 566 567 567 568 diag("psVectorCountPixelMask() tests");568 // diag("psVectorCountPixelMask() tests"); 569 569 570 570 { … … 605 605 606 606 607 diag("psVectorLength() tests");607 // diag("psVectorLength() tests"); 608 608 { 609 609 psVector *vector = psVectorAlloc(5, PS_TYPE_F32); … … 647 647 648 648 649 diag("psVectorCopy() tests");649 // diag("psVectorCopy() tests"); 650 650 651 651 { -
trunk/psLib/test/mathtypes/tap_psVectorSort_01.c
r11265 r12513 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2007-0 1-24 22:14:48$14 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2007-03-20 03:57:25 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 26 26 27 27 #define tstVectorSortByType(datatype,value) \ 28 diag( "tstVectorSortByType_" #datatype ); \29 28 in = psVectorAlloc(7,PS_TYPE_##datatype); \ 30 29 in->n = 7; \ -
trunk/psLib/test/mathtypes/tap_psVectorSort_02.c
r11265 r12513 14 14 * @author Ross Harman, MHPCC 15 15 * 16 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $17 * @date $Date: 2007-0 1-24 22:14:48$16 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2007-03-20 03:57:25 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 27 27 28 28 #define tstVectorSortIndexByType(datatype,value) \ 29 diag( "tstVectorSortIndexByType_" #datatype ); \30 29 in = psVectorAlloc( 5, PS_TYPE_##datatype ); \ 31 30 in->n = 5; \ -
trunk/psLib/test/sys/tap_psError.c
r11662 r12513 13 13 * @author Eric Van Alst, MHPCC 14 14 * 15 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $16 * @date $Date: 2007-0 2-06 04:09:55 $15 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2007-03-20 03:57:25 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 43 43 static psS32 testError00(void) 44 44 { 45 diag("testError00");45 // diag("testError00"); 46 46 47 47 psS32 intval=1; … … 68 68 static psS32 testError01(void) 69 69 { 70 diag("testError01");70 // diag("testError01"); 71 71 72 72 psErrorCode code=PS_ERR_BAD_PARAMETER_VALUE; … … 120 120 static psS32 testError02(void) 121 121 { 122 diag("testError02");122 // diag("testError02"); 123 123 124 124 psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE; … … 136 136 static psS32 testError03(void) 137 137 { 138 diag("testError03");138 // diag("testError03"); 139 139 140 140 psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE; … … 235 235 static psS32 testError04(void) 236 236 { 237 diag("testError04");237 //diag("testError04"); 238 238 239 239 psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE; … … 296 296 static psS32 testError05(void) 297 297 { 298 diag("testError05");298 //diag("testError05"); 299 299 300 300 // Verify the return value of psErrorCodeString … … 311 311 static psS32 testErrorRegister(void) 312 312 { 313 diag("testErrorRegister");313 //diag("testErrorRegister"); 314 314 315 315 psS32 numErr = 4; -
trunk/psLib/test/sys/tap_psMemory.c
r12507 r12513 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-03-20 0 2:35:53$8 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-03-20 03:57:25 $ 10 10 * 11 11 * XXXX: Several tests fail with an Abort and are commented out. … … 92 92 void TPCheckBufferPositive( void ) 93 93 { 94 diag("TPCheckBufferPositive");94 // diag("TPCheckBufferPositive"); 95 95 96 96 psS32 * mem; … … 117 117 void TPFreeReferencedMemory( void ) 118 118 { 119 diag("TPFreeReferencedMemory");119 // diag("TPFreeReferencedMemory"); 120 120 121 121 // create memory … … 160 160 void TPReallocOutOfMemory( void ) 161 161 { 162 diag("TPReallocOutOfMemory");162 // diag("TPReallocOutOfMemory"); 163 163 164 164 psS32 * mem[ 100 ]; … … 196 196 void TPOutOfMemory( void ) 197 197 { 198 diag("TPOutOfMemory");198 // diag("TPOutOfMemory"); 199 199 200 200 psS32 * mem[ 100 ]; … … 230 230 void TPrealloc( void ) 231 231 { 232 diag("TPrealloc");232 // diag("TPrealloc"); 233 233 234 234 psS32 * mem1; … … 287 287 void TPallocCallback( void ) 288 288 { 289 diag("TPallocCallback");289 // diag("TPallocCallback"); 290 290 291 291 psS32 * mem1; -
trunk/psLib/test/sys/tap_psString.c
r12512 r12513 20 20 * @author Eric Van Alst, MHPCC 21 21 * 22 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $23 * @date $Date: 2007-03-20 03: 31:39$22 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2007-03-20 03:57:25 $ 24 24 * 25 25 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 87 87 psS32 testStringCopy00(void) 88 88 { 89 diag("testStringCopy00");89 // diag("testStringCopy00"); 90 90 91 91 char stringval[20] = "E R R O R"; … … 114 114 psS32 testStringCopy01(void) 115 115 { 116 diag("testStringCopy01");116 // diag("testStringCopy01"); 117 117 118 118 char *emptyval = ""; … … 136 136 psS32 testStringCopy02(void) 137 137 { 138 diag("testStringCopy02");138 // diag("testStringCopy02"); 139 139 140 140 psS32 result = 0; … … 163 163 psS32 testStringCopy03(void) 164 164 { 165 diag("testStringCopy03");165 // diag("testStringCopy03"); 166 166 167 167 psS32 result = 0; … … 186 186 psS32 testStringCopy04(void) 187 187 { 188 diag("testStringCopy04");188 // diag("testStringCopy04"); 189 189 190 190 psS32 result = 0; … … 233 233 psS32 testStringCopy06(void) 234 234 { 235 diag("testStringCopy06");235 // diag("testStringCopy06"); 236 236 237 237 char *strResult; … … 252 252 psS32 testStrAppend00(void) 253 253 { 254 diag("testStrAppend00");254 // diag("testStrAppend00"); 255 255 256 256 char *str=NULL; … … 272 272 psS32 testStrAppend01(void) 273 273 { 274 diag("testStrAppend01");274 // diag("testStrAppend01"); 275 275 276 276 ssize_t sz; … … 290 290 psS32 testStrAppend02(void) 291 291 { 292 diag("testStrAppend02");292 // diag("testStrAppend02"); 293 293 294 294 char *str=NULL; … … 307 307 psS32 testStrAppend03(void) 308 308 { 309 diag("testStrAppend03");309 // diag("testStrAppend03"); 310 310 311 311 char *str =psStringCopy(STR_0); … … 322 322 psS32 testStrPrepend00(void) 323 323 { 324 diag("testStrPrepend00");324 // diag("testStrPrepend00"); 325 325 326 326 char *str=NULL; … … 343 343 psS32 testStrPrepend01(void) 344 344 { 345 diag("testStrPrepend01");345 // diag("testStrPrepend01"); 346 346 347 347 ssize_t sz; … … 360 360 psS32 testStrPrepend02(void) 361 361 { 362 diag("testStrPrepend02");362 // diag("testStrPrepend02"); 363 363 364 364 char *str=NULL; … … 377 377 psS32 testStrPrepend03(void) 378 378 { 379 diag("testStrPrepend03");379 // diag("testStrPrepend03"); 380 380 381 381 char *str=NULL; … … 397 397 psS32 testStrSplit00(void) 398 398 { 399 diag("testStrSplit00");399 // diag("testStrSplit00"); 400 400 401 401 psList *strList = NULL; … … 525 525 psS32 testNULLStrings(void) 526 526 { 527 diag("test""s");527 // diag("test""s"); 528 528 529 529 psString nullTest = NULL; … … 582 582 psS32 testStrCheck(void) 583 583 { 584 diag("testStrCheck");584 // diag("testStrCheck"); 585 585 586 586 psString str = NULL; -
trunk/psLib/test/sys/tap_psTrace.c
r12512 r12513 43 43 static psS32 testTrace00(void) 44 44 { 45 diag("testTrace00");45 // diag("testTrace00"); 46 46 47 47 psS32 i; … … 86 86 static psS32 testTrace01(void) 87 87 { 88 diag("testTrace01");88 // diag("testTrace01"); 89 89 90 90 // psTraceSetDestination(stderr); … … 103 103 static psS32 testTrace02(void) 104 104 { 105 diag("testTrace02");105 // diag("testTrace02"); 106 106 107 107 psTraceReset(); … … 131 131 static psS32 testTrace03(void) 132 132 { 133 diag("testTrace03");133 // diag("testTrace03"); 134 134 135 135 psS32 i = 0; … … 172 172 static psS32 testTrace04(void) 173 173 { 174 diag("testTrace04");174 // diag("testTrace04"); 175 175 176 176 int FD;
Note:
See TracChangeset
for help on using the changeset viewer.
