Changeset 3638
- Timestamp:
- Apr 1, 2005, 12:22:17 PM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 13 edited
-
Makefile.am (modified) (1 diff)
-
pslib.kdevelop.pcs (modified) ( previous)
-
pslib.kdevses (modified) (1 diff)
-
test/Makefile.am (modified) (1 diff)
-
test/astronomy/Makefile.am (modified) (2 diffs)
-
test/astronomy/tst_psAstrometry01.c (modified) (10 diffs)
-
test/astronomy/verified/tst_psAstrometry01.stdout (modified) (1 diff)
-
test/collections/Makefile.am (modified) (2 diffs)
-
test/dataIO/Makefile.am (modified) (2 diffs)
-
test/dataManip/Makefile.am (modified) (2 diffs)
-
test/fileUtils/Makefile.am (modified) (2 diffs)
-
test/image/Makefile.am (modified) (2 diffs)
-
test/sysUtils/Makefile.am (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/Makefile.am
r3601 r3638 30 30 31 31 CLEANFILES = $(prefix)/docs/pslib/* 32 33 test: check -
trunk/psLib/pslib.kdevses
r3495 r3638 2 2 <!DOCTYPE KDevPrjSession> 3 3 <KDevPrjSession> 4 <DocsAndViews NumberOfDocuments=" 5" >4 <DocsAndViews NumberOfDocuments="9" > 5 5 <Doc0 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/src/fileUtils/psFits.h" > 6 6 <View0 line="220" Type="Source" /> 7 7 </Doc0> 8 <Doc1 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/ src/fileUtils/psFits.c" >9 <View0 line=" 1654" Type="Source" />8 <Doc1 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/test/collections/Makefile.am" > 9 <View0 line="60" Type="Source" /> 10 10 </Doc1> 11 <Doc2 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/test/ fileUtils/tst_psFits.c" >12 <View0 line="11 77" Type="Source" />11 <Doc2 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/test/dataManip/Makefile.am" > 12 <View0 line="116" Type="Source" /> 13 13 </Doc2> 14 <Doc3 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/ include/psMetadata.h" >15 <View0 line=" 299" Type="Source" />14 <Doc3 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/test/astronomy/Makefile.am" > 15 <View0 line="108" Type="Source" /> 16 16 </Doc3> 17 <Doc4 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/ configure.ac" >18 <View0 line=" 67" Type="Source" />17 <Doc4 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/test/fileUtils/Makefile.am" > 18 <View0 line="38" Type="Source" /> 19 19 </Doc4> 20 <Doc5 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/Makefile.am" > 21 <View0 line="32" Type="Source" /> 22 </Doc5> 23 <Doc6 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/test/Makefile.am" > 24 <View0 line="8" Type="Source" /> 25 </Doc6> 26 <Doc7 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/test/image/Makefile.am" > 27 <View0 line="62" Type="Source" /> 28 </Doc7> 29 <Doc8 NumberOfViews="1" URL="file:///home/desonia/panstarrs/psLib/test/sysUtils/Makefile.am" > 30 <View0 line="44" Type="Source" /> 31 </Doc8> 20 32 </DocsAndViews> 21 33 <pluginList> -
trunk/psLib/test/Makefile.am
r3115 r3638 7 7 EXTRA_DIST = runTest FullUnitTest 8 8 9 tests: 10 9 test: check -
trunk/psLib/test/astronomy/Makefile.am
r3569 r3638 78 78 verified 79 79 80 CLEANFILES = $(TESTS) $(check_DATA) 80 CLEANFILES = $(TESTS) $(check_DATA) temp/* 81 81 82 82 psTime.config: $(top_srcdir)/etc/pslib/psTime.config.template … … 107 107 cp $? $@ 108 108 109 test: check 109 110 111 -
trunk/psLib/test/astronomy/tst_psAstrometry01.c
r3569 r3638 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-0 3-30 23:22:39$7 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-04-01 22:22:17 $ 9 9 * 10 10 * XXX: Must test … … 258 258 for (j=0;j<X_NUM_COLS;j++) { 259 259 if ((tmp->x)[i][j] != x->data.F64[i][j]) { 260 printf("ERROR: (tmp->x)[%d][%d] is % f, should be %f\n", i, j,260 printf("ERROR: (tmp->x)[%d][%d] is %.2f, should be %.2f\n", i, j, 261 261 (tmp->x)[i][j], x->data.F64[i][j]); 262 262 testStatus = 1; … … 274 274 for (j=0;j<Y_NUM_COLS;j++) { 275 275 if ((tmp->y)[i][j] != y->data.F64[i][j]) { 276 printf("ERROR: (tmp->y)[%d][%d] is % f, should be %f\n", i, j,276 printf("ERROR: (tmp->y)[%d][%d] is %.2f, should be %.2f\n", i, j, 277 277 (tmp->y)[i][j], y->data.F64[i][j]); 278 278 … … 292 292 } 293 293 if (tmp->x0 != X0) { 294 printf("ERROR: tmp->x0 is % f, should be %f\n", tmp->x0, X0);294 printf("ERROR: tmp->x0 is %.2f, should be %.2f\n", tmp->x0, X0); 295 295 testStatus = 1; 296 296 } 297 297 if (tmp->xScale != X_SCALE) { 298 printf("ERROR: tmp->xScale is % f, should be %f\n", tmp->xScale, X_SCALE);298 printf("ERROR: tmp->xScale is %.2f, should be %.2f\n", tmp->xScale, X_SCALE); 299 299 testStatus = 1; 300 300 } … … 306 306 } 307 307 if (tmp->y0 != Y0) { 308 printf("ERROR: tmp->y0 is % f, should be %f\n", tmp->y0, Y0);308 printf("ERROR: tmp->y0 is %.2f, should be %.2f\n", tmp->y0, Y0); 309 309 testStatus = 1; 310 310 } 311 311 if (tmp->yScale != Y_SCALE) { 312 printf("ERROR: tmp->yScale is % f, should be %f\n", tmp->yScale, Y_SCALE);312 printf("ERROR: tmp->yScale is %.2f, should be %.2f\n", tmp->yScale, Y_SCALE); 313 313 testStatus = 1; 314 314 } … … 336 336 337 337 if (grom->height != HEIGHT) { 338 printf("ERROR: grom->height is % f, should be %f\n", grom->height, HEIGHT);338 printf("ERROR: grom->height is %.2f, should be %.2f\n", grom->height, HEIGHT); 339 339 testStatus = 1; 340 340 } 341 341 if (grom->temperature != TEMPERATURE) { 342 printf("ERROR: grom->temperature is % f, should be %f\n", grom->temperature, TEMPERATURE);342 printf("ERROR: grom->temperature is %.2f, should be %.2f\n", grom->temperature, TEMPERATURE); 343 343 testStatus = 2; 344 344 } 345 345 346 346 if (grom->pressure != PRESSURE) { 347 printf("ERROR: grom->pressure is % f, should be %f\n", grom->pressure, PRESSURE);347 printf("ERROR: grom->pressure is %.2f, should be %.2f\n", grom->pressure, PRESSURE); 348 348 testStatus = 3; 349 349 } 350 350 351 351 if (grom->humidity != HUMIDITY) { 352 printf("ERROR: grom->humidity is % f, should be %f\n", grom->humidity, HUMIDITY);352 printf("ERROR: grom->humidity is %.2f, should be %.2f\n", grom->humidity, HUMIDITY); 353 353 testStatus = 4; 354 354 } 355 355 356 356 if (grom->wavelength != WAVELENGTH) { 357 printf("ERROR: grom->wavelength is % f, should be %f\n", grom->wavelength, WAVELENGTH);357 printf("ERROR: grom->wavelength is %.2f, should be %.2f\n", grom->wavelength, WAVELENGTH); 358 358 testStatus = 5; 359 359 } 360 360 361 361 if (grom->lapseRate != LAPSERATE) { 362 printf("ERROR: grom->lapseRate is % f, should be %f\n", grom->lapseRate, LAPSERATE);362 printf("ERROR: grom->lapseRate is %.2f, should be %.2f\n", grom->lapseRate, LAPSERATE); 363 363 testStatus = 6; 364 364 } … … 369 369 370 370 if (grom-> != ) { 371 printf("ERROR: grom-> is % f, should be %f\n", grom->, );371 printf("ERROR: grom-> is %.2f, should be %.2f\n", grom->, ); 372 372 testStatus = 1; 373 373 } 374 374 */ 375 375 376 printf("grom->latitude is % f\n", grom->latitude);377 printf("grom->sinLat is % f\n", grom->sinLat);378 printf("grom->cosLat is % f\n", grom->cosLat);379 printf("grom->abberationMag is % f\n", grom->abberationMag);380 printf("grom->height is % f\n", grom->height);381 printf("grom->temperature is % f\n", grom->temperature);382 printf("grom->pressure is % f\n", grom->pressure);383 printf("grom->humidity is % f\n", grom->humidity);384 printf("grom->wavelength is % f\n", grom->wavelength);385 printf("grom->lapseRate is % f\n", grom->lapseRate);386 printf("grom->refractA is % f\n", grom->refractA);387 printf("grom->refractB is % f\n", grom->refractB);388 printf("grom->longitudeOffset is % f\n", grom->longitudeOffset);389 // printf("grom->siderealTime is % f\n", grom->siderealTime);376 printf("grom->latitude is %.2f\n", grom->latitude); 377 printf("grom->sinLat is %.2f\n", grom->sinLat); 378 printf("grom->cosLat is %.2f\n", grom->cosLat); 379 printf("grom->abberationMag is %.2f\n", grom->abberationMag); 380 printf("grom->height is %.2f\n", grom->height); 381 printf("grom->temperature is %.2f\n", grom->temperature); 382 printf("grom->pressure is %.2f\n", grom->pressure); 383 printf("grom->humidity is %.2f\n", grom->humidity); 384 printf("grom->wavelength is %.2f\n", grom->wavelength); 385 printf("grom->lapseRate is %.2f\n", grom->lapseRate); 386 printf("grom->refractA is %.2f\n", grom->refractA); 387 printf("grom->refractB is %.2f\n", grom->refractB); 388 printf("grom->longitudeOffset is %.2f\n", grom->longitudeOffset); 389 // printf("grom->siderealTime is %.2f\n", grom->siderealTime); 390 390 391 391 psFree(now); … … 461 461 fpaCoord.x = (double) xFPA; 462 462 fpaCoord.y = (double) y; 463 //printf("------------------ (% f, %f) ------------------\n", fpaCoord.x, fpaCoord.y);463 //printf("------------------ (%.2f, %.2f) ------------------\n", fpaCoord.x, fpaCoord.y); 464 464 psChip* tmpChip = psChipInFPA(&fpaCoord, myFPA); 465 465 myCell = psCellInFPA(&fpaCoord, myFPA); … … 477 477 478 478 if (x != (psS32) cellCoord.x) { 479 printf("ERROR: x coord was % f, should be %d\n", cellCoord.x, x);479 printf("ERROR: x coord was %.2f, should be %d\n", cellCoord.x, x); 480 480 } 481 481 if (y != (psS32) cellCoord.y) { 482 printf("ERROR: y coord was % f, should be %d\n", cellCoord.y, y);482 printf("ERROR: y coord was %.2f, should be %d\n", cellCoord.y, y); 483 483 } 484 484 485 485 psCoordCellToChip(&testCoord, &cellCoord, myCell); 486 486 if (testCoord.x != chipCoord.x) { 487 printf("ERROR: psCoordCellToChip() x coord was % f, should be %d\n", cellCoord.x, x);487 printf("ERROR: psCoordCellToChip() x coord was %.2f, should be %d\n", cellCoord.x, x); 488 488 } 489 489 if (testCoord.y != chipCoord.y) { 490 printf("ERROR: psCoordCellToChip() y coord was % f, should be %d\n", cellCoord.y, y);490 printf("ERROR: psCoordCellToChip() y coord was %.2f, should be %d\n", cellCoord.y, y); 491 491 } 492 492 … … 501 501 psCoordChipToFPA(&testCoord, &chipCoord, tmpChip); 502 502 if (testCoord.x != xFPA) { 503 printf("ERROR: psCoordChipToFPA() x coord was % f, should be %d\n", cellCoord.x, x);503 printf("ERROR: psCoordChipToFPA() x coord was %.2f, should be %d\n", cellCoord.x, x); 504 504 } 505 505 if (testCoord.y != y) { 506 printf("ERROR: psCoordChipToFPA() y coord was % f, should be %d\n", cellCoord.y, y);506 printf("ERROR: psCoordChipToFPA() y coord was %.2f, should be %d\n", cellCoord.y, y); 507 507 } 508 508 509 509 psCoordFPAToTP(&testCoord, &fpaCoord, 0.0, 0.0, myFPA); 510 510 if (testCoord.x != fpaCoord.x) { 511 printf("ERROR: psCoordFPAToTP() x coord was % f, should be %d\n", cellCoord.x, x);511 printf("ERROR: psCoordFPAToTP() x coord was %.2f, should be %d\n", cellCoord.x, x); 512 512 } 513 513 if (testCoord.y != fpaCoord.y) { 514 printf("ERROR: psCoordFPAToTP() y coord was % f, should be %d\n", cellCoord.y, y);514 printf("ERROR: psCoordFPAToTP() y coord was %.2f, should be %d\n", cellCoord.y, y); 515 515 } 516 516 517 517 psCoordCellToFPA(&testCoord, &cellCoord, myCell); 518 518 if (testCoord.x != fpaCoord.x) { 519 printf("ERROR: psCoordFPAToTP() x coord was % f, should be %d\n", cellCoord.x, x);519 printf("ERROR: psCoordFPAToTP() x coord was %.2f, should be %d\n", cellCoord.x, x); 520 520 } 521 521 if (testCoord.y != fpaCoord.y) { 522 printf("ERROR: psCoordFPAToTP() y coord was % f, should be %d\n", cellCoord.y, y);522 printf("ERROR: psCoordFPAToTP() y coord was %.2f, should be %d\n", cellCoord.y, y); 523 523 } 524 524 525 525 psCoordTPToFPA(&testCoord, &fpaCoord, 0.0, 0.0, myFPA); 526 526 if (testCoord.x != fpaCoord.x) { 527 printf("ERROR: psCoordFPAToTP() x coord was % f, should be %d\n", cellCoord.x, x);527 printf("ERROR: psCoordFPAToTP() x coord was %.2f, should be %d\n", cellCoord.x, x); 528 528 } 529 529 if (testCoord.y != fpaCoord.y) { 530 printf("ERROR: psCoordFPAToTP() y coord was % f, should be %d\n", cellCoord.y, y);530 printf("ERROR: psCoordFPAToTP() y coord was %.2f, should be %d\n", cellCoord.y, y); 531 531 } 532 532 } -
trunk/psLib/test/astronomy/verified/tst_psAstrometry01.stdout
r3570 r3638 1 grom->latitude is 1.29 11522 grom->sinLat is 0.96 11543 grom->cosLat is 0.2 760134 grom->abberationMag is 0.00 00005 grom->height is 3055.00 00006 grom->temperature is 7.00 00007 grom->pressure is 8.00 00008 grom->humidity is 20.00 00009 grom->wavelength is 11.00 000010 grom->lapseRate is 20.00 000011 grom->refractA is 0.00 001812 grom->refractB is -0.00 000013 grom->longitudeOffset is 2.36 18881 grom->latitude is 1.29 2 grom->sinLat is 0.96 3 grom->cosLat is 0.28 4 grom->abberationMag is 0.00 5 grom->height is 3055.00 6 grom->temperature is 7.00 7 grom->pressure is 8.00 8 grom->humidity is 20.00 9 grom->wavelength is 11.00 10 grom->lapseRate is 20.00 11 grom->refractA is 0.00 12 grom->refractB is -0.00 13 grom->longitudeOffset is 2.36 14 14 trans1: x = x+y, y = x+y 15 15 -------------------- trans->x coeffs -------------------- -
trunk/psLib/test/collections/Makefile.am
r3381 r3638 33 33 34 34 check_PROGRAMS =$(TESTS) 35 35 36 check_DATA = 37 36 38 TESTS_ENVIRONMENT = perl $(top_srcdir)/test/runTest -verified=$(srcdir)/verified 37 39 38 CLEANFILES = $(TESTS) $(check_DATA) 40 CLEANFILES = $(TESTS) $(check_DATA) temp/* 39 41 40 tests: $( TESTS)42 tests: $(check_DATA) $(TESTS) 41 43 42 44 tst_psVector_SOURCES = tst_psVector.c … … 56 58 tst_psScalar_SOURCES = tst_psScalar.c 57 59 60 test: check -
trunk/psLib/test/dataIO/Makefile.am
r3381 r3638 25 25 26 26 TESTS_ENVIRONMENT = perl $(top_srcdir)/test/runTest -verified=$(srcdir)/verified 27 tests: $(TESTS)28 27 29 CLEANFILES = $(TESTS) $(check_DATA) 28 tests: $(check_DATA) $(TESTS) 29 30 CLEANFILES = $(TESTS) $(check_DATA) multi.fits table.fits temp/* 30 31 31 32 tst_psLookupTable_01_SOURCES = tst_psLookupTable_01.c … … 35 36 cp $? $@ 36 37 38 test: check -
trunk/psLib/test/dataManip/Makefile.am
r3406 r3638 63 63 check_PROGRAMS = $(TESTS) 64 64 65 CLEANFILES = $(TESTS) $(check_DATA) 65 check_DATA = 66 67 CLEANFILES = $(TESTS) $(check_DATA) temp/* 66 68 67 69 TESTS_ENVIRONMENT = perl $(top_srcdir)/test/runTest -verified=$(srcdir)/verified 68 70 69 tests: $(TESTS) 71 tests: $(TESTS) $(check_DATA) 70 72 71 73 tst_psFunc00_SOURCES = tst_psFunc00.c … … 113 115 tst_psRandom_SOURCES = tst_psRandom.c 114 116 tst_psVectorFFT_SOURCES = tst_psVectorFFT.c 115 117 118 test: check -
trunk/psLib/test/fileUtils/Makefile.am
r3381 r3638 25 25 26 26 TESTS_ENVIRONMENT = perl $(top_srcdir)/test/runTest -verified=$(srcdir)/verified 27 tests: $(TESTS)28 27 29 CLEANFILES = $(TESTS) $(check_DATA) 28 tests: $(check_DATA) $(TESTS) 29 30 CLEANFILES = $(TESTS) $(check_DATA) multi.fits table.fits temp/* 30 31 31 32 tst_psLookupTable_01_SOURCES = tst_psLookupTable_01.c … … 35 36 cp $? $@ 36 37 38 test: check -
trunk/psLib/test/image/Makefile.am
r3381 r3638 32 32 sBiOut.fits \ 33 33 sOut.fits 34 34 35 35 TESTS_ENVIRONMENT = perl $(top_srcdir)/test/runTest -verified=$(srcdir)/verified 36 36 37 CLEANFILES = $(TESTS) $(check_DATA) 37 CLEANFILES = $(TESTS) $(check_DATA) temp/* 38 38 39 tests: $( TESTS)39 tests: $(check_DATA) $(TESTS) 40 40 41 41 tst_psImage_SOURCES = tst_psImage.c … … 59 59 sOut.fits: verified/sOut.fits 60 60 cp $? $@ 61 61 62 test: check -
trunk/psLib/test/sysUtils/Makefile.am
r3381 r3638 26 26 check_PROGRAMS =$(TESTS) 27 27 28 check_DATA = 29 28 30 TESTS_ENVIRONMENT = perl $(top_srcdir)/test/runTest -verified=$(srcdir)/verified 29 31 30 CLEANFILES = $(TESTS) $(check_DATA) 32 CLEANFILES = $(TESTS) $(check_DATA) temp/* 31 33 32 tests: $( TESTS)34 tests: $(check_DATA) $(TESTS) 33 35 34 36 tst_psAbort_SOURCES = tst_psAbort.c … … 40 42 tst_psConfigure_SOURCES = tst_psConfigure.c 41 43 44 test: check
Note:
See TracChangeset
for help on using the changeset viewer.
