Changeset 1404
- Timestamp:
- Aug 6, 2004, 11:50:14 AM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 46 edited
-
psLib.kdevses (modified) (1 diff)
-
src/collections/psVector.c (modified) (2 diffs)
-
src/dataManip/psFFT.c (modified) (10 diffs)
-
src/dataManip/psVectorFFT.c (modified) (10 diffs)
-
src/fft/psVectorFFT.c (modified) (10 diffs)
-
src/image/psImageExtraction.c (modified) (7 diffs)
-
src/image/psImageExtraction.h (modified) (2 diffs)
-
src/mathtypes/psVector.c (modified) (2 diffs)
-
test/FullUnitTest (modified) (3 diffs)
-
test/astronomy/verified/tst_psMetadata_01.stderr (modified) (1 diff)
-
test/astronomy/verified/tst_psMetadata_01.stdout (modified) (3 diffs)
-
test/astronomy/verified/tst_psMetadata_02.stderr (modified) (1 diff)
-
test/collections/verified/tst_psBitSet_01.stderr (modified) (1 diff)
-
test/collections/verified/tst_psBitSet_05.stderr (modified) (1 diff)
-
test/collections/verified/tst_psBitSet_06.stderr (modified) (1 diff)
-
test/collections/verified/tst_psBitSet_08.stderr (modified) (1 diff)
-
test/collections/verified/tst_psList.stderr (modified) (5 diffs)
-
test/collections/verified/tst_psVector.stderr (modified) (1 diff)
-
test/collections/verified/tst_psVectorSort_03.stderr (modified) (1 diff)
-
test/collections/verified/tst_psVectorSort_04.stderr (modified) (1 diff)
-
test/dataManip/tst_psVectorFFT.c (modified) (16 diffs)
-
test/dataManip/verified/tst_psMatrix02.stderr (modified) (1 diff)
-
test/dataManip/verified/tst_psMatrix03.stderr (modified) (1 diff)
-
test/dataManip/verified/tst_psMatrix04.stderr (modified) (1 diff)
-
test/dataManip/verified/tst_psMatrix07.stderr (modified) (1 diff)
-
test/dataManip/verified/tst_psMatrixVectorArithmetic02.stdout (modified) (6 diffs)
-
test/dataManip/verified/tst_psMatrixVectorArithmetic03.stderr (modified) (1 diff)
-
test/dataManip/verified/tst_psVectorFFT.stderr (modified) (1 diff)
-
test/image/tst_psImageExtraction.c (modified) (13 diffs)
-
test/image/verified/tst_psImage.stderr (modified) (3 diffs)
-
test/image/verified/tst_psImageFFT.stderr (modified) (1 diff)
-
test/image/verified/tst_psImageManip.stderr (modified) (7 diffs)
-
test/image/verified/tst_psImageStats01.stderr (modified) (1 diff)
-
test/runTest (modified) (3 diffs)
-
test/sysUtils/tst_psTrace01.c (modified) (2 diffs)
-
test/sysUtils/verified/atst_psAbort_01.stderr (modified) (1 diff)
-
test/sysUtils/verified/atst_psAbort_02.stderr (modified) (1 diff)
-
test/sysUtils/verified/atst_psAbort_03.stderr (modified) (1 diff)
-
test/sysUtils/verified/tst_psError.stderr (modified) (3 diffs)
-
test/sysUtils/verified/tst_psLogMsg00.stderr (modified) (1 diff)
-
test/sysUtils/verified/tst_psLogMsg01.stderr (modified) (1 diff)
-
test/sysUtils/verified/tst_psLogMsg02.stderr (modified) (2 diffs)
-
test/sysUtils/verified/tst_psLogMsg03.stderr (modified) (1 diff)
-
test/sysUtils/verified/tst_psLogMsg03.stdout (modified) (1 diff)
-
test/sysUtils/verified/tst_psMemory.stderr (modified) (9 diffs)
-
test/sysUtils/verified/tst_psStringCopy.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/psLib.kdevses
r1393 r1404 2 2 <!DOCTYPE KDevPrjSession> 3 3 <KDevPrjSession> 4 <DocsAndViews NumberOfDocuments="3" > 5 <Doc0 NumberOfViews="1" URL="file:/home/desonia/psLib/src/astronomy/psPhotometry.h" > 6 <View0 line="0" Type="???" > 7 <AdditionalSettings Top="1" Width="1210" Attach="1" Height="700" Left="1" MinMaxMode="0" /> 8 </View0> 9 </Doc0> 10 <Doc1 NumberOfViews="1" URL="file:/home/desonia/psLib/src/astronomy/psCoord.h" > 11 <View0 line="197" Type="???" > 12 <AdditionalSettings Top="1" Width="1210" Attach="1" Height="672" Left="1" MinMaxMode="0" /> 13 </View0> 14 </Doc1> 15 <Doc2 NumberOfViews="1" URL="file:/home/desonia/psLib/src/astronomy/psCoord.c" > 16 <View0 line="26" Type="???" > 17 <AdditionalSettings Top="1" Width="1210" Attach="1" Height="672" Left="1" MinMaxMode="0" /> 18 </View0> 19 </Doc2> 20 </DocsAndViews> 4 <DocsAndViews NumberOfDocuments="0" /> 21 5 <pluginList> 22 6 <kdevbookmarks> -
trunk/psLib/src/collections/psVector.c
r1385 r1404 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-08-0 4 23:37:39$10 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-08-06 21:50:13 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 117 117 } 118 118 119 psVector *psVectorRecycle( psVector *restrict in, psElemType type, unsigned int nalloc)119 psVector *psVectorRecycle( psVector *restrict in, unsigned int nalloc, psElemType type ) 120 120 { 121 121 psElemType elemType; -
trunk/psLib/src/dataManip/psFFT.c
r1385 r1404 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2004-08-0 4 23:37:39$7 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2004-08-06 21:50:13 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 484 484 numElements = in->n; 485 485 486 out = psVectorRecycle( out, PS_TYPE_C32, numElements);486 out = psVectorRecycle( out, numElements, PS_TYPE_C32 ); 487 487 out->n = numElements; 488 488 … … 542 542 psLogMsg( __func__, PS_LOG_WARN, "Real portion of a non-Complex type called called for. " 543 543 "Just a vector copy was performed." ); 544 out = psVectorRecycle( out, type, numElements);544 out = psVectorRecycle( out, numElements, type ); 545 545 out->n = numElements; 546 546 memcpy( out->data.V, in->data.V, numElements * PSELEMTYPE_SIZEOF( type ) ); … … 552 552 psC32* inVec = in->data.C32; 553 553 554 out = psVectorRecycle( out, PS_TYPE_F32, numElements);554 out = psVectorRecycle( out, numElements, PS_TYPE_F32 ); 555 555 out->n = numElements; 556 556 outVec = out->data.F32; … … 588 588 psLogMsg( __func__, PS_LOG_WARN, "Imaginary portion of a non-Complex type called for. " 589 589 "A zeroed vector was returned." ); 590 out = psVectorRecycle( out, type, numElements);590 out = psVectorRecycle( out, numElements, type ); 591 591 out->n = numElements; 592 592 memset( out->data.V, 0, PSELEMTYPE_SIZEOF( type ) * numElements ); … … 598 598 psC32* inVec = in->data.C32; 599 599 600 out = psVectorRecycle( out, PS_TYPE_F32, numElements);600 out = psVectorRecycle( out, numElements, PS_TYPE_F32 ); 601 601 out->n = numElements; 602 602 outVec = out->data.F32; … … 650 650 psF32* imagVec = imag->data.F32; 651 651 652 out = psVectorRecycle( out, PS_TYPE_C32, numElements);652 out = psVectorRecycle( out, numElements, PS_TYPE_C32 ); 653 653 out->n = numElements; 654 654 outVec = out->data.C32; … … 687 687 "Vector copy was performed instead." ); 688 688 689 out = psVectorRecycle( out, type, numElements);689 out = psVectorRecycle( out, numElements, type ); 690 690 out->n = numElements; 691 691 memcpy( out->data.V, in->data.V, PSELEMTYPE_SIZEOF( type ) * numElements ); … … 697 697 psC32* inVec = in->data.C32; 698 698 699 out = psVectorRecycle( out, PS_TYPE_C32, numElements);699 out = psVectorRecycle( out, numElements, PS_TYPE_C32 ); 700 700 out->n = numElements; 701 701 outVec = out->data.C32; … … 746 746 psF32 inAbs2; 747 747 748 out = psVectorRecycle( out, PS_TYPE_F32, outNumElements);748 out = psVectorRecycle( out, outNumElements, PS_TYPE_F32 ); 749 749 out->n = outNumElements; 750 750 outVec = out->data.F32; -
trunk/psLib/src/dataManip/psVectorFFT.c
r1385 r1404 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2004-08-0 4 23:37:39$7 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2004-08-06 21:50:13 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 484 484 numElements = in->n; 485 485 486 out = psVectorRecycle( out, PS_TYPE_C32, numElements);486 out = psVectorRecycle( out, numElements, PS_TYPE_C32 ); 487 487 out->n = numElements; 488 488 … … 542 542 psLogMsg( __func__, PS_LOG_WARN, "Real portion of a non-Complex type called called for. " 543 543 "Just a vector copy was performed." ); 544 out = psVectorRecycle( out, type, numElements);544 out = psVectorRecycle( out, numElements, type ); 545 545 out->n = numElements; 546 546 memcpy( out->data.V, in->data.V, numElements * PSELEMTYPE_SIZEOF( type ) ); … … 552 552 psC32* inVec = in->data.C32; 553 553 554 out = psVectorRecycle( out, PS_TYPE_F32, numElements);554 out = psVectorRecycle( out, numElements, PS_TYPE_F32 ); 555 555 out->n = numElements; 556 556 outVec = out->data.F32; … … 588 588 psLogMsg( __func__, PS_LOG_WARN, "Imaginary portion of a non-Complex type called for. " 589 589 "A zeroed vector was returned." ); 590 out = psVectorRecycle( out, type, numElements);590 out = psVectorRecycle( out, numElements, type ); 591 591 out->n = numElements; 592 592 memset( out->data.V, 0, PSELEMTYPE_SIZEOF( type ) * numElements ); … … 598 598 psC32* inVec = in->data.C32; 599 599 600 out = psVectorRecycle( out, PS_TYPE_F32, numElements);600 out = psVectorRecycle( out, numElements, PS_TYPE_F32 ); 601 601 out->n = numElements; 602 602 outVec = out->data.F32; … … 650 650 psF32* imagVec = imag->data.F32; 651 651 652 out = psVectorRecycle( out, PS_TYPE_C32, numElements);652 out = psVectorRecycle( out, numElements, PS_TYPE_C32 ); 653 653 out->n = numElements; 654 654 outVec = out->data.C32; … … 687 687 "Vector copy was performed instead." ); 688 688 689 out = psVectorRecycle( out, type, numElements);689 out = psVectorRecycle( out, numElements, type ); 690 690 out->n = numElements; 691 691 memcpy( out->data.V, in->data.V, PSELEMTYPE_SIZEOF( type ) * numElements ); … … 697 697 psC32* inVec = in->data.C32; 698 698 699 out = psVectorRecycle( out, PS_TYPE_C32, numElements);699 out = psVectorRecycle( out, numElements, PS_TYPE_C32 ); 700 700 out->n = numElements; 701 701 outVec = out->data.C32; … … 746 746 psF32 inAbs2; 747 747 748 out = psVectorRecycle( out, PS_TYPE_F32, outNumElements);748 out = psVectorRecycle( out, outNumElements, PS_TYPE_F32 ); 749 749 out->n = outNumElements; 750 750 outVec = out->data.F32; -
trunk/psLib/src/fft/psVectorFFT.c
r1385 r1404 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2004-08-0 4 23:37:39$7 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2004-08-06 21:50:13 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 484 484 numElements = in->n; 485 485 486 out = psVectorRecycle( out, PS_TYPE_C32, numElements);486 out = psVectorRecycle( out, numElements, PS_TYPE_C32 ); 487 487 out->n = numElements; 488 488 … … 542 542 psLogMsg( __func__, PS_LOG_WARN, "Real portion of a non-Complex type called called for. " 543 543 "Just a vector copy was performed." ); 544 out = psVectorRecycle( out, type, numElements);544 out = psVectorRecycle( out, numElements, type ); 545 545 out->n = numElements; 546 546 memcpy( out->data.V, in->data.V, numElements * PSELEMTYPE_SIZEOF( type ) ); … … 552 552 psC32* inVec = in->data.C32; 553 553 554 out = psVectorRecycle( out, PS_TYPE_F32, numElements);554 out = psVectorRecycle( out, numElements, PS_TYPE_F32 ); 555 555 out->n = numElements; 556 556 outVec = out->data.F32; … … 588 588 psLogMsg( __func__, PS_LOG_WARN, "Imaginary portion of a non-Complex type called for. " 589 589 "A zeroed vector was returned." ); 590 out = psVectorRecycle( out, type, numElements);590 out = psVectorRecycle( out, numElements, type ); 591 591 out->n = numElements; 592 592 memset( out->data.V, 0, PSELEMTYPE_SIZEOF( type ) * numElements ); … … 598 598 psC32* inVec = in->data.C32; 599 599 600 out = psVectorRecycle( out, PS_TYPE_F32, numElements);600 out = psVectorRecycle( out, numElements, PS_TYPE_F32 ); 601 601 out->n = numElements; 602 602 outVec = out->data.F32; … … 650 650 psF32* imagVec = imag->data.F32; 651 651 652 out = psVectorRecycle( out, PS_TYPE_C32, numElements);652 out = psVectorRecycle( out, numElements, PS_TYPE_C32 ); 653 653 out->n = numElements; 654 654 outVec = out->data.C32; … … 687 687 "Vector copy was performed instead." ); 688 688 689 out = psVectorRecycle( out, type, numElements);689 out = psVectorRecycle( out, numElements, type ); 690 690 out->n = numElements; 691 691 memcpy( out->data.V, in->data.V, PSELEMTYPE_SIZEOF( type ) * numElements ); … … 697 697 psC32* inVec = in->data.C32; 698 698 699 out = psVectorRecycle( out, PS_TYPE_C32, numElements);699 out = psVectorRecycle( out, numElements, PS_TYPE_C32 ); 700 700 out->n = numElements; 701 701 outVec = out->data.C32; … … 746 746 psF32 inAbs2; 747 747 748 out = psVectorRecycle( out, PS_TYPE_F32, outNumElements);748 out = psVectorRecycle( out, outNumElements, PS_TYPE_F32 ); 749 749 out->n = outNumElements; 750 750 outVec = out->data.F32; -
trunk/psLib/src/image/psImageExtraction.c
r1385 r1404 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-08-0 4 23:37:39$11 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-06 21:50:13 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 230 230 231 231 psVector* psImageSlice( psVector* out, 232 psVector* slicePositions, 232 233 const psImage* restrict in, 233 234 const psImage* restrict mask, … … 321 322 psVector* maskVec = NULL; 322 323 psMaskType* maskData = NULL; 324 psU32* outPosition = NULL; 323 325 324 326 // recycle output to make a proper sized/type output structure 325 327 // n.b. type is double as that is the type given for all stats in psStats. 326 out = psVectorRecycle( out, PS_TYPE_F64, numCols ); 328 out = psVectorRecycle( out, numCols, PS_TYPE_F64); 329 if (slicePositions != NULL) { 330 slicePositions = psVectorRecycle(slicePositions,numCols,PS_TYPE_U32); 331 outPosition = slicePositions->data.U32; 332 } 327 333 outData = out->data.F64; 328 334 if ( delta < 0 ) { … … 355 361 (void)p_psGetStatValue(myStats,&statVal); \ 356 362 *outData = statVal; \ 363 if (outPosition != NULL) { \ 364 *(outPosition++) = col+c; \ 365 } \ 357 366 outData += delta; \ 358 367 } \ … … 385 394 psVector* maskVec = NULL; 386 395 int elementSize = PSELEMTYPE_SIZEOF( type ); 396 psU32* outPosition = NULL; 387 397 388 398 // fill in psVectors to fake out the statistics functions. … … 398 408 // recycle output to make a proper sized/type output structure 399 409 // n.b. type is double as that is the type given for all stats in psStats. 400 out = psVectorRecycle( out, PS_TYPE_F64, numRows ); 410 out = psVectorRecycle( out, numRows, PS_TYPE_F64 ); 411 if (slicePositions != NULL) { 412 slicePositions = psVectorRecycle(slicePositions,numRows,PS_TYPE_U32); 413 outPosition = slicePositions->data.U32; 414 } 401 415 outData = out->data.F64; 402 416 if ( delta < 0 ) { … … 413 427 ( void ) p_psGetStatValue( myStats, &statVal ); // we know it works cause we tested it above 414 428 *outData = statVal; 429 if (outPosition != NULL) { 430 *(outPosition++) = row+r; 431 } 415 432 outData += delta; 416 433 } -
trunk/psLib/src/image/psImageExtraction.h
r1374 r1404 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-08-0 4 00:55:17$11 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-06 21:50:13 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 68 68 psVector* psImageSlice( 69 69 psVector* out, 70 psVector* slicePositions, 70 71 const psImage* restrict input, 71 72 const psImage* restrict mask, -
trunk/psLib/src/mathtypes/psVector.c
r1385 r1404 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-08-0 4 23:37:39$10 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-08-06 21:50:13 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 117 117 } 118 118 119 psVector *psVectorRecycle( psVector *restrict in, psElemType type, unsigned int nalloc)119 psVector *psVectorRecycle( psVector *restrict in, unsigned int nalloc, psElemType type ) 120 120 { 121 121 psElemType elemType; -
trunk/psLib/test/FullUnitTest
r1198 r1404 19 19 # RETURN : integer number of tests which failed 20 20 # 21 # $Revision: 1.1 0$ $Name: not supported by cvs2svn $22 # $Date: 2004-0 7-08 19:34:18$21 # $Revision: 1.11 $ $Name: not supported by cvs2svn $ 22 # $Date: 2004-08-06 21:50:13 $ 23 23 # 24 24 # Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 555 555 chop $hostname; 556 556 while( <OUTFILE> ) { 557 s/\d+:\d+:\d+/ <DATE> /; 558 s/\s+\d+:\d+:\d+\w/ <TIME> /; 559 s/$hostname/<HOST>/; 557 s/\s+\d+:\d+:\d+\w/<TIME>/g; 558 s/\d+:\d+:\d+/<DATE>/g; 559 s/$hostname/<HOST>/g; 560 s/: Line \d+/: Line <LINENO>/g; 561 s/\:\d+/\:<LINENO>/g; 560 562 # Filter lines with *** malloc. This is an artifact of Mac testing of 561 563 # memory functions … … 575 577 # Replace the variable date, time and host information with constants 576 578 while( <OUTFILE> ) { 577 s/\d+:\d+:\d+/ <DATE> /; 578 s/\s+\d+:\d+:\d+\w/ <TIME> /; 579 s/$hostname/<HOST>/; 579 s/\s+\d+:\d+:\d+\w/<TIME>/g; 580 s/\d+:\d+:\d+/<DATE>/g; 581 s/$hostname/<HOST>/g; 582 s/: Line \d+/: Line <LINENO>/g; 583 s/\:\d+/\:<LINENO>/g; 580 584 # Filter lines with *** malloc. This is an artifact of Mac testing of 581 585 # memory functions -
trunk/psLib/test/astronomy/verified/tst_psMetadata_01.stderr
r1395 r1404 1 <DATE> <TIME> |<HOST>|E|psMetadataFRead|Null FITS file descriptor not allowed 2 <DATE> <TIME> |<HOST>|E|psMetadataFRead|Null extName and extNum = 0 not allowed 3 <DATE> <TIME> |<HOST>|E|psMetadataFRead|FITS error while locating header 22: tried to move past end of file 4 <DATE> <TIME> |<HOST>|E|psMetadataFRead|FITS error while locating header AARGH: illegal HDU number 1 <DATE><TIME>|<HOST>|E|psMetadataFRead|Null FITS file descriptor not allowed 2 <DATE><TIME>|<HOST>|E|psMetadataFRead|Null extname AND extnum = 0 not allowed 3 <DATE><TIME>|<HOST>|E|psMetadataFRead|FITS error while locating header: tried to move past end of file -
trunk/psLib/test/astronomy/verified/tst_psMetadata_01.stdout
r1402 r1404 7 7 FITS file open status: OK - no error 8 8 9 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE> 10 Key Name: NAXIS Key Type: 2 Key Value: 0 Key Comment: number of data axes 11 Key Name: BITPIX Key Type: 2 Key Value: 8 Key Comment: number of bits per data pixel 9 12 Key Name: SIMPLE Key Type: 1 Key Value: 1 Key Comment: file does conform to FITS standard 10 Key Name: BITPIX Key Type: 2 Key Value: 8 Key Comment: number of bits per data pixel11 Key Name: NAXIS Key Type: 2 Key Value: 0 Key Comment: number of data axes12 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T <DATE>13 13 14 14 ---> TESTPOINT PASSED (psMetadata{Test A - Read 1st hdr from simple FITS file} | tst_psMetadata_01.c) … … 22 22 FITS file open status: OK - no error 23 23 24 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE> 25 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE> 26 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE> 27 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE> 28 Key Name: EXTNAME Key Type: 5 Key Value: 'MY_DATA_1' Key Comment: 29 Key Name: BITPIX Key Type: 2 Key Value: -64 Key Comment: number of bits per data pixel 30 Key Name: GCOUNT Key Type: 2 Key Value: 1 Key Comment: required keyword; must = 1 31 Key Name: PCOUNT Key Type: 2 Key Value: 0 Key Comment: required keyword; must = 0 32 Key Name: NAXIS1 Key Type: 2 Key Value: 64 Key Comment: length of data axis 1 33 Key Name: NAXIS Key Type: 2 Key Value: 1 Key Comment: number of data axes 34 Key Name: BITPIX Key Type: 2 Key Value: -64 Key Comment: number of bits per data pixel 24 35 Key Name: XTENSION Key Type: 5 Key Value: 'IMAGE ' Key Comment: IMAGE extension 25 Key Name: BITPIX Key Type: 2 Key Value: -64 Key Comment: number of bits per data pixel26 Key Name: NAXIS Key Type: 2 Key Value: 1 Key Comment: number of data axes27 Key Name: NAXIS1 Key Type: 2 Key Value: 64 Key Comment: length of data axis 128 Key Name: PCOUNT Key Type: 2 Key Value: 0 Key Comment: required keyword; must = 029 Key Name: GCOUNT Key Type: 2 Key Value: 1 Key Comment: required keyword; must = 130 Key Name: BITPIX Key Type: 2 Key Value: -64 Key Comment: number of bits per data pixel31 Key Name: EXTNAME Key Type: 5 Key Value: 'MY_DATA_1' Key Comment:32 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T <DATE>33 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T <DATE>34 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T <DATE>35 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T <DATE>36 36 37 37 ---> TESTPOINT PASSED (psMetadata{Test B - Read 2nd hdr from complex FITS file} | tst_psMetadata_01.c) … … 45 45 FITS file open status: OK - no error 46 46 47 Key Name: XTENSION Key Type: 5 Key Value: 'IMAGE ' Key Comment: IMAGE extension 47 Key Name: COMMENT Key Type: 5 Key Value: Key Comment: and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H 48 Key Name: COMMENT Key Type: 5 Key Value: Key Comment: FITS (Flexible Image Transport System) format is defined in 'Astronomy 49 Key Name: EXTEND Key Type: 1 Key Value: 1 Key Comment: FITS dataset may contain extensions 50 Key Name: NAXIS1 Key Type: 2 Key Value: 64 Key Comment: length of data axis 1 51 Key Name: NAXIS Key Type: 2 Key Value: 1 Key Comment: number of data axes 48 52 Key Name: BITPIX Key Type: 2 Key Value: -64 Key Comment: number of bits per data pixel 49 Key Name: NAXIS Key Type: 2 Key Value: 1 Key Comment: number of data axes 50 Key Name: NAXIS1 Key Type: 2 Key Value: 64 Key Comment: length of data axis 1 51 Key Name: PCOUNT Key Type: 2 Key Value: 0 Key Comment: required keyword; must = 0 52 Key Name: GCOUNT Key Type: 2 Key Value: 1 Key Comment: required keyword; must = 1 53 Key Name: EXTNAME Key Type: 5 Key Value: 'MY_DATA_2' Key Comment: 54 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T <DATE> 55 Key Name: HISTORY Key Type: 5 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T <DATE> 53 Key Name: SIMPLE Key Type: 1 Key Value: 1 Key Comment: file does conform to FITS standard 56 54 57 55 ---> TESTPOINT PASSED (psMetadata{Test C - Read named hdr from complex FITS file} | tst_psMetadata_01.c) -
trunk/psLib/test/astronomy/verified/tst_psMetadata_02.stderr
r1402 r1404 1 <DATE> <TIME> |<HOST>|E|psMetadataItemA|Null value for namenot allowed2 <DATE> <TIME>|<HOST>|E|psMetadataItemA|Invalid psMetadataType: 63 <DATE> <TIME>|<HOST>|E|psMetadataAddIt|Null metadata collection not allowed4 <DATE> <TIME>|<HOST>|E|psMetadataAddIt|Null metadata item not allowed5 <DATE> <TIME>|<HOST>|E|psMetadataAddIt|Metadata already exists in metadata collection. Item not added. Name: myItem21 <DATE><TIME>|<HOST>|E|psMetadataItemA|Null value for string not allowed 2 <DATE><TIME>|<HOST>|E|psMetadataItemA|Invalid psMetadataType: 6 3 <DATE><TIME>|<HOST>|E|psMetadataAddIt|Null metadata collection not allowed 4 <DATE><TIME>|<HOST>|E|psMetadataAddIt|Null metadata item not allowed 5 <DATE><TIME>|<HOST>|E|psMetadataAddIt|Metadata already exists in metadata collection. Item not added. Name: myItem2 -
trunk/psLib/test/collections/verified/tst_psBitSet_01.stderr
r1198 r1404 1 <DATE> <TIME> |<HOST>|E| psBitSetTest| : Line 151- Bit position too small: -42 <DATE> <TIME> |<HOST>|E| psBitSetTest| : Line 154- Bit position too large: 2003 <DATE> <TIME> |<HOST>|E| psBitSetTest| : Line 148- Null psBitSet for inBitSet argument4 <DATE> <TIME> |<HOST>|E| psBitSetSet| : Line 129- Bit position too small: -45 <DATE> <TIME> |<HOST>|E| psBitSetSet| : Line 132- Bit position too large: 2006 <DATE> <TIME> |<HOST>|E| psBitSetSet| : Line 126- Null psBitSet for inBitSet argument1 <DATE><TIME>|<HOST>|E| psBitSetTest| : Line <LINENO> - Bit position too small: -4 2 <DATE><TIME>|<HOST>|E| psBitSetTest| : Line <LINENO> - Bit position too large: 200 3 <DATE><TIME>|<HOST>|E| psBitSetTest| : Line <LINENO> - Null psBitSet for inBitSet argument 4 <DATE><TIME>|<HOST>|E| psBitSetSet| : Line <LINENO> - Bit position too small: -4 5 <DATE><TIME>|<HOST>|E| psBitSetSet| : Line <LINENO> - Bit position too large: 200 6 <DATE><TIME>|<HOST>|E| psBitSetSet| : Line <LINENO> - Null psBitSet for inBitSet argument -
trunk/psLib/test/collections/verified/tst_psBitSet_05.stderr
r1198 r1404 1 <DATE> <TIME> |<HOST>|E| psBitSetOp| : Line 197- psBitSet sizes not the same1 <DATE><TIME>|<HOST>|E| psBitSetOp| : Line <LINENO> - psBitSet sizes not the same -
trunk/psLib/test/collections/verified/tst_psBitSet_06.stderr
r1198 r1404 1 <DATE> <TIME> |<HOST>|E| psBitSetOp| : Line 224- Invalid psBitMask binary operation: ZZXOR2 <DATE> <TIME> |<HOST>|E| psBitSetAlloc| : Line 88- Allocation size must be > 0: size = -41 <DATE><TIME>|<HOST>|E| psBitSetOp| : Line <LINENO> - Invalid psBitMask binary operation: ZZXOR 2 <DATE><TIME>|<HOST>|E| psBitSetAlloc| : Line <LINENO> - Allocation size must be > 0: size = -4 -
trunk/psLib/test/collections/verified/tst_psBitSet_08.stderr
r1198 r1404 1 <DATE> <TIME> |<HOST>|E| psBitSetNot| : Line 238- Null psBitSet for inBitSet argument1 <DATE><TIME>|<HOST>|E| psBitSetNot| : Line <LINENO> - Null psBitSet for inBitSet argument -
trunk/psLib/test/collections/verified/tst_psList.stderr
r1198 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|I| testListAlloc|psListAlloc shall create a psList with either 0 or 1 element.7 <DATE><TIME>|<HOST>|I| testListAlloc|psListAlloc shall create a psList with either 0 or 1 element. 8 8 9 9 ---> TESTPOINT PASSED (psList{psListAlloc} | tst_psList.c) … … 15 15 \**********************************************************************************/ 16 16 17 <DATE> <TIME>|<HOST>|I| testListAdd|psListAdd shall add an element to list18 <DATE> <TIME>|<HOST>|I| testListAdd|Following should error with invalid insert location19 <DATE> <TIME>|<HOST>|W| psListAdd|The given insert location (-10) for psListAdd is invalid.20 <DATE> <TIME>|<HOST>|I| testListAdd|Following should be a warning.21 <DATE> <TIME>|<HOST>|W| psListAdd|Invalid index 9 (only 6 elements in psList); assuming tail.17 <DATE><TIME>|<HOST>|I| testListAdd|psListAdd shall add an element to list 18 <DATE><TIME>|<HOST>|I| testListAdd|Following should error with invalid insert location 19 <DATE><TIME>|<HOST>|W| psListAdd|The given insert location (-10) for psListAdd is invalid. 20 <DATE><TIME>|<HOST>|I| testListAdd|Following should be a warning. 21 <DATE><TIME>|<HOST>|W| psListAdd|Invalid index 9 (only 6 elements in psList); assuming tail. 22 22 23 23 ---> TESTPOINT PASSED (psList{psListAdd} | tst_psList.c) … … 29 29 \**********************************************************************************/ 30 30 31 <DATE> <TIME>|<HOST>|I| testListGet|Following should be an error32 <DATE> <TIME> |<HOST>|E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:259).31 <DATE><TIME>|<HOST>|I| testListGet|Following should be an error 32 <DATE><TIME>|<HOST>|E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:<LINENO>). 33 33 34 34 ---> TESTPOINT PASSED (psList{psListGet} | tst_psList.c) … … 40 40 \**********************************************************************************/ 41 41 42 <DATE> <TIME>|<HOST>|I| testListRemove|Following should be an error43 <DATE> <TIME>|<HOST>|E| psListRemove|list parameter found to be NULL in psListRemove44 <DATE> <TIME>|<HOST>|I| testListRemove|Next message should be an error45 <DATE> <TIME>|<HOST>|E| psListRemove|Couldn't position to given index (-4) to remove element from list.46 <DATE> <TIME>|<HOST>|I| testListRemove|Next message should be an error47 <DATE> <TIME>|<HOST>|E| psListRemove|Couldn't position to given index (-2) to remove element from list.48 <DATE> <TIME>|<HOST>|I| testListRemove|Next message should be an error49 <DATE> <TIME>|<HOST>|E| psListRemove|Failed to find item in given psList.50 <DATE> <TIME>|<HOST>|I| testListRemove|Next message should be an error51 <DATE> <TIME>|<HOST>|E| psListRemove|Failed to find item in given psList.42 <DATE><TIME>|<HOST>|I| testListRemove|Following should be an error 43 <DATE><TIME>|<HOST>|E| psListRemove|list parameter found to be NULL in psListRemove 44 <DATE><TIME>|<HOST>|I| testListRemove|Next message should be an error 45 <DATE><TIME>|<HOST>|E| psListRemove|Couldn't position to given index (-4) to remove element from list. 46 <DATE><TIME>|<HOST>|I| testListRemove|Next message should be an error 47 <DATE><TIME>|<HOST>|E| psListRemove|Couldn't position to given index (-2) to remove element from list. 48 <DATE><TIME>|<HOST>|I| testListRemove|Next message should be an error 49 <DATE><TIME>|<HOST>|E| psListRemove|Failed to find item in given psList. 50 <DATE><TIME>|<HOST>|I| testListRemove|Next message should be an error 51 <DATE><TIME>|<HOST>|E| psListRemove|Failed to find item in given psList. 52 52 53 53 ---> TESTPOINT PASSED (psList{psListRemove} | tst_psList.c) … … 68 68 \**********************************************************************************/ 69 69 70 <DATE> <TIME>|<HOST>|I|testListIterato| psListSetIterator/psListGetNext/psListGetPrev shall move the list cursor to the specified location71 <DATE> <TIME>|<HOST>|I|testListIterato|Following should error with 'Unexpected null pointer'72 <DATE> <TIME> |<HOST>|E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:259).73 <DATE> <TIME>|<HOST>|I|testListIterato|Following should error with 'Can't move to an unknown position.'74 <DATE> <TIME>|<HOST>|E|listSetIterator|Can't move to an unknown position. Not moving the iterator position.70 <DATE><TIME>|<HOST>|I|testListIterato| psListSetIterator/psListGetNext/psListGetPrev shall move the list cursor to the specified location 71 <DATE><TIME>|<HOST>|I|testListIterato|Following should error with 'Unexpected null pointer' 72 <DATE><TIME>|<HOST>|E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:<LINENO>). 73 <DATE><TIME>|<HOST>|I|testListIterato|Following should error with 'Can't move to an unknown position.' 74 <DATE><TIME>|<HOST>|E|listSetIterator|Can't move to an unknown position. Not moving the iterator position. 75 75 76 76 ---> TESTPOINT PASSED (psList{psListIterator} | tst_psList.c) -
trunk/psLib/test/collections/verified/tst_psVector.stderr
r1227 r1404 1 <DATE> <TIME>|<HOST>|I| main|Following should be an error message.2 <DATE> <TIME>|<HOST>|E| psVectorAlloc|Invalid value for nalloc. nalloc: 03 <DATE> <TIME>|<HOST>|I| main|Following should be an error message.4 <DATE> <TIME>|<HOST>|E|psVectorRealloc|Null input vector1 <DATE><TIME>|<HOST>|I| main|Following should be an error message. 2 <DATE><TIME>|<HOST>|E| psVectorAlloc|Invalid value for nalloc. nalloc: 0 3 <DATE><TIME>|<HOST>|I| main|Following should be an error message. 4 <DATE><TIME>|<HOST>|E|psVectorRealloc|Null input vector -
trunk/psLib/test/collections/verified/tst_psVectorSort_03.stderr
r1303 r1404 1 <DATE> <TIME> |<HOST>|E| psVectorSort| : Line 178- Input and output vector sizes are not equal: in=5 out=62 <DATE> <TIME> |<HOST>|E| psVectorSort| : Line 184- Input and output vectors are not same type: in=1028 out=10321 <DATE><TIME>|<HOST>|E| psVectorSort| : Line <LINENO> - Input and output vector sizes are not equal: in=5 out=6 2 <DATE><TIME>|<HOST>|E| psVectorSort| : Line <LINENO> - Input and output vectors are not same type: in=1028 out=1032 -
trunk/psLib/test/collections/verified/tst_psVectorSort_04.stderr
r1233 r1404 1 <DATE> <TIME> |<HOST>|E| psVectorSort| : Line 160- Null input vector1 <DATE><TIME>|<HOST>|E| psVectorSort| : Line <LINENO> - Null input vector -
trunk/psLib/test/dataManip/tst_psVectorFFT.c
r1365 r1404 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-08-0 2 19:43:23 $8 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-08-06 21:50:13 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 21 21 img = psImageAlloc(c,r,PS_TYPE_##TYP); \ 22 22 for (unsigned int row=0;row<r;row++) { \ 23 ps##TYP* imgRow = img->data.TYP[row]; \24 for (unsigned int col=0;col<c;col++) { \25 imgRow[col] = (ps##TYP)(valueFcn); \26 } \27 }28 23 ps##TYP* imgRow = img->data.TYP[row]; \ 24 for (unsigned int col=0;col<c;col++) { \ 25 imgRow[col] = (ps##TYP)(valueFcn); \ 26 } \ 27 } 28 29 29 static int testVectorFFT( void ); 30 30 static int testVectorRealImaginary( void ); … … 53 53 } 54 54 }; 55 55 56 56 int main( int argc, char* argv[] ) 57 57 { 58 58 psLogSetLevel( PS_LOG_INFO ); 59 59 60 60 return ( ! runTestSuite( stderr, "psFFT", tests, argc, argv ) ); 61 61 } … … 66 66 psVector* vec2 = NULL; 67 67 psVector* vec3 = NULL; 68 68 69 69 /* 70 70 1. assign a vector to a sinisoid … … 74 74 5. compare to original (should be equal to within a reasonable error) 75 75 */ 76 76 77 77 // 1. assign a vector to a sinisoid 78 78 vec = psVectorAlloc( 100, PS_TYPE_F32 ); 79 79 vec->n = vec->nalloc; 80 80 for ( unsigned int n = 0; n < 100; n++ ) { 81 vec->data.F32[ n ] = sinf( ( psF32 ) n / 50.0f * M_PI );82 }83 81 vec->data.F32[ n ] = sinf( ( psF32 ) n / 50.0f * M_PI ); 82 } 83 84 84 // 2. perform a forward transform 85 85 vec2 = psVectorFFT( NULL, vec, PS_FFT_FORWARD ); 86 86 if ( vec2->type.type != PS_TYPE_C32 ) { 87 psError( __func__, "FFT didn't produce complex values?" ); 88 return 1; 87 psError( __func__, "FFT didn't produce complex values?" ); 88 return 1; 89 } 90 91 92 // 3. verify that the only significant component cooresponds to the freqency of the input in step 1. 93 for ( unsigned int n = 0; n < 100; n++ ) { 94 if ( n == 1 || n == 99 ) { 95 if ( fabsf( cabsf( vec2->data.C32[ n ] ) - 50.0f ) > 0.1f ) { 96 psError( __func__, "FFT didn't work for vector (n=%d)", n ); 97 return 2; 98 } 99 } else { 100 if ( fabsf( cabsf( vec2->data.C32[ n ] ) ) > 0.1f ) { 101 psError( __func__, "FFT didn't work for vector (n=%d)", n ); 102 return 3; 103 } 89 104 } 90 91 92 // 3. verify that the only significant component cooresponds to the freqency of the input in step 1. 93 for ( unsigned int n = 0; n < 100; n++ ) { 94 if ( n == 1 || n == 99 ) { 95 if ( fabsf( cabsf( vec2->data.C32[ n ] ) - 50.0f ) > 0.1f ) { 96 psError( __func__, "FFT didn't work for vector (n=%d)", n ); 97 return 2; 98 } 99 } else { 100 if ( fabsf( cabsf( vec2->data.C32[ n ] ) ) > 0.1f ) { 101 psError( __func__, "FFT didn't work for vector (n=%d)", n ); 102 return 3; 103 } 104 } 105 } 106 105 } 106 107 107 // 4. perform a reverse transform 108 108 vec3 = psVectorFFT( NULL, vec2, PS_FFT_REVERSE ); 109 109 if ( vec3->type.type != PS_TYPE_C32 ) { 110 psError( __func__, "FFT didn't produce complex values?" ); 111 return 4; 110 psError( __func__, "FFT didn't produce complex values?" ); 111 return 4; 112 } 113 for ( unsigned int n = 0; n < 100; n++ ) { 114 psF32 val = sinf( ( psF32 ) n / 50.0f * M_PI ); 115 psF32 vecVal = crealf( vec3->data.C32[ n ] ) / 100; 116 if ( fabsf( vecVal - val ) > 0.1f ) { 117 psError( __func__, "Reverse FFT didn't give me the original vector back (n=%d) (%.2f vs %.2f)", 118 n, vecVal, val ); 119 return 5; 112 120 } 113 for ( unsigned int n = 0; n < 100; n++ ) { 114 psF32 val = sinf( ( psF32 ) n / 50.0f * M_PI ); 115 psF32 vecVal = crealf( vec3->data.C32[ n ] ) / 100; 116 if ( fabsf( vecVal - val ) > 0.1f ) { 117 psError( __func__, "Reverse FFT didn't give me the original vector back (n=%d) (%.2f vs %.2f)", 118 n, vecVal, val ); 119 return 5; 120 } 121 } 122 121 } 122 123 123 psFree( vec ); 124 124 psFree( vec2 ); 125 125 psFree( vec3 ); 126 126 127 127 return 0; 128 128 } … … 133 133 psVector* vec2 = NULL; 134 134 psVector* vec3 = NULL; 135 135 136 136 /* 137 137 1. create a C32 complex vector with distinctly different real and imaginary parts. … … 139 139 3. compare results to the real/imaginary components of input 140 140 */ 141 141 142 142 // 1. create a C32 complex vector with distinctly different real and imaginary parts. 143 143 vec = psVectorAlloc( 100, PS_TYPE_C32 ); 144 144 vec->n = vec->nalloc; 145 145 for ( unsigned int n = 0; n < 100; n++ ) { 146 vec->data.C32[ n ] = n + I * ( n * 2 );147 }148 146 vec->data.C32[ n ] = n + I * ( n * 2 ); 147 } 148 149 149 // 2. call psVectorReal and psVectorImaginary 150 150 vec2 = psVectorReal( vec2, vec ); 151 151 if ( vec2 == NULL ) { 152 psError( __func__, "psVectorReal returned a NULL?" );153 return 1;154 }152 psError( __func__, "psVectorReal returned a NULL?" ); 153 return 1; 154 } 155 155 if ( vec2->type.type != PS_TYPE_F32 ) { 156 psError( __func__, "psVectorReal returned a wrong type (%d)?",157 vec2->type.type );158 return 2;159 }160 156 psError( __func__, "psVectorReal returned a wrong type (%d)?", 157 vec2->type.type ); 158 return 2; 159 } 160 161 161 vec3 = psVectorImaginary( vec3, vec ); 162 162 if ( vec3 == NULL ) { 163 psError( __func__, "psVectorImaginary returned a NULL?" ); 164 return 3; 163 psError( __func__, "psVectorImaginary returned a NULL?" ); 164 return 3; 165 } 166 if ( vec3->type.type != PS_TYPE_F32 ) { 167 psError( __func__, "psVectorImaginary returned a wrong type (%d)?", 168 vec3->type.type ); 169 return 4; 170 } 171 172 // 3. compare results to the real/imaginary components of input 173 for ( unsigned int n = 0; n < 100; n++ ) { 174 psF32 r = n; 175 psF32 i = ( n * 2 ); 176 if ( fabsf( vec2->data.F32[ n ] - r ) > FLT_EPSILON ) { 177 psError( __func__, "psVectorReal didn't return the real portion at n=%d", 178 n ); 179 return 5; 165 180 } 166 if ( vec3->type.type != PS_TYPE_F32) {167 psError( __func__, "psVectorImaginary returned a wrong type (%d)?",168 vec3->type.type);169 return 4;181 if ( fabsf( vec3->data.F32[ n ] - i ) > FLT_EPSILON ) { 182 psError( __func__, "psVectorImaginary didn't return the real portion at n=%d", 183 n ); 184 return 6; 170 185 } 171 172 // 3. compare results to the real/imaginary components of input 173 for ( unsigned int n = 0; n < 100; n++ ) { 174 psF32 r = n; 175 psF32 i = ( n * 2 ); 176 if ( fabsf( vec2->data.F32[ n ] - r ) > FLT_EPSILON ) { 177 psError( __func__, "psVectorReal didn't return the real portion at n=%d", 178 n ); 179 return 5; 180 } 181 if ( fabsf( vec3->data.F32[ n ] - i ) > FLT_EPSILON ) { 182 psError( __func__, "psVectorImaginary didn't return the real portion at n=%d", 183 n ); 184 return 6; 185 } 186 } 187 186 } 187 188 188 psFree( vec ); 189 189 psFree( vec2 ); 190 190 psFree( vec3 ); 191 191 192 192 return 0; 193 193 } … … 198 198 psVector* vec2 = NULL; 199 199 psVector* vec3 = NULL; 200 200 201 201 /* 202 202 1. create two unique psF32 vectors of the same size … … 205 205 4. call psVectorReal and psVectorImaginary on step 2 results 206 206 5. compare step 4 results to input. 207 207 208 208 6. create a psF32 and a psF64 vector of the same size 209 209 7. call psVectorComplex 210 210 8. verify that an appropriate error occurred. 211 211 212 212 9. create two psf32 vectors of different sizes 213 213 10. call psVectorComplex 214 214 11. verify thet an appropriate error occurred. 215 215 */ 216 216 217 217 // 1. create two unique psF32 vectors of the same size 218 218 vec = psVectorAlloc( 100, PS_TYPE_F32 ); … … 221 221 vec2->n = vec2->nalloc; 222 222 for ( unsigned int n = 0; n < 100; n++ ) { 223 vec->data.F32[ n ] = n;224 vec2->data.F32[ n ] = ( n * 2 );225 }226 223 vec->data.F32[ n ] = n; 224 vec2->data.F32[ n ] = ( n * 2 ); 225 } 226 227 227 // 2. call psVectorComplex 228 228 vec3 = psVectorComplex( vec3, vec, vec2 ); 229 229 230 230 // 3. verify that the result is a psC32 231 231 if ( vec3->type.type != PS_TYPE_C32 ) { 232 psError( __func__, "Vector Type from psVectorComplex is not complex? (%d)",233 vec3->type.type );234 return 1;235 }236 232 psError( __func__, "Vector Type from psVectorComplex is not complex? (%d)", 233 vec3->type.type ); 234 return 1; 235 } 236 237 237 // 4. call psVectorReal and psVectorImaginary on step 2 results (not needed, just use crealf/cimagf) 238 238 // 5. compare step 4 results to input. 239 239 for ( unsigned int n = 0; n < 100; n++ ) { 240 if ( fabsf( crealf( vec3->data.C32[ n ] ) - n ) > FLT_EPSILON ||241 fabsf( cimagf( vec3->data.C32[ n ] ) - ( n * 2 ) ) > FLT_EPSILON ) {242 psError( __func__, "psVectorComplex result is invalid (n=%d, %.2f+%.2fi)",243 n, crealf( vec3->data.C32[ n ] ), cimagf( vec3->data.C32[ n ] ) );244 return 2;245 };246 }247 248 240 if ( fabsf( crealf( vec3->data.C32[ n ] ) - n ) > FLT_EPSILON || 241 fabsf( cimagf( vec3->data.C32[ n ] ) - ( n * 2 ) ) > FLT_EPSILON ) { 242 psError( __func__, "psVectorComplex result is invalid (n=%d, %.2f+%.2fi)", 243 n, crealf( vec3->data.C32[ n ] ), cimagf( vec3->data.C32[ n ] ) ); 244 return 2; 245 }; 246 } 247 248 249 249 // 6. create a psF32 and a psF64 vector of the same size 250 vec2 = psVectorRecycle( vec2, PS_TYPE_F64, 100);251 250 vec2 = psVectorRecycle( vec2, 100, PS_TYPE_F64 ); 251 252 252 // 7. call psVectorComplex 253 253 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error (type mismatch)." ); … … 255 255 // 8. verify that an appropriate error occurred. (this partially has to be done via inspection) 256 256 if ( vec3 != NULL ) { 257 psError( __func__, "psVectorComplex returned a vector though input types mismatched." );258 return 3;259 }260 257 psError( __func__, "psVectorComplex returned a vector though input types mismatched." ); 258 return 3; 259 } 260 261 261 // 9. create two psf32 vectors of different sizes 262 vec2 = psVectorRecycle( vec2, PS_TYPE_F32, 200);263 262 vec2 = psVectorRecycle( vec2, 200, PS_TYPE_F32 ); 263 264 264 // 10. call psVectorComplex 265 265 vec3 = psVectorComplex( vec3, vec, vec2 ); 266 266 267 267 // 11. verify thet an appropriate error occurred. (actually, it isn't an error...) 268 268 if ( vec3->n != 100 ) { 269 psError( __func__, "psVectorComplex returned a larger vector than the input supported (%d).", vec3->n );270 return 4;271 }272 269 psError( __func__, "psVectorComplex returned a larger vector than the input supported (%d).", vec3->n ); 270 return 4; 271 } 272 273 273 psFree( vec ); 274 274 psFree( vec2 ); 275 275 psFree( vec3 ); 276 276 277 277 return 0; 278 278 } … … 282 282 psVector * vec = NULL; 283 283 psVector* vec2 = NULL; 284 284 285 285 /* 286 286 1. create a psC32 with unique real and imaginary values. … … 289 289 4. verify each value is conjugate of input (a+bi -> a-bi) 290 290 */ 291 291 292 292 // 1. create a psC32 with unique real and imaginary values. 293 293 vec = psVectorAlloc( 100, PS_TYPE_C32 ); 294 294 vec->n = vec->nalloc; 295 295 for ( unsigned int n = 0; n < 100; n++ ) { 296 vec->data.C32[ n ] = n + I * ( n * 2 );297 }298 296 vec->data.C32[ n ] = n + I * ( n * 2 ); 297 } 298 299 299 // 2. call psVectorConjugate 300 300 vec2 = psVectorConjugate( vec2, vec ); 301 301 302 302 // 3. verify result is psC32 303 303 if ( vec2->type.type != PS_TYPE_C32 ) { 304 psError( __func__, "the psVectorConjugate didn't return a C32 vector" );305 return 1;306 }307 304 psError( __func__, "the psVectorConjugate didn't return a C32 vector" ); 305 return 1; 306 } 307 308 308 // 4. verify each value is conjugate of input (a+bi -> a-bi) 309 309 for ( unsigned int n = 0; n < 100; n++ ) { 310 if ( fabsf( crealf( vec->data.C32[ n ] ) - crealf( vec2->data.C32[ n ] ) ) > FLT_EPSILON ||311 fabsf( cimagf( vec->data.C32[ n ] ) + cimagf( vec2->data.C32[ n ] ) ) > FLT_EPSILON ) {312 psError( __func__, "psVectorComplex result is invalid (n=%d, %.2f+%.2fi)",313 n, crealf( vec2->data.C32[ n ] ), cimagf( vec2->data.C32[ n ] ) );314 return 2;315 };316 }317 318 psFree( vec ); 319 psFree( vec2 ); 320 310 if ( fabsf( crealf( vec->data.C32[ n ] ) - crealf( vec2->data.C32[ n ] ) ) > FLT_EPSILON || 311 fabsf( cimagf( vec->data.C32[ n ] ) + cimagf( vec2->data.C32[ n ] ) ) > FLT_EPSILON ) { 312 psError( __func__, "psVectorComplex result is invalid (n=%d, %.2f+%.2fi)", 313 n, crealf( vec2->data.C32[ n ] ), cimagf( vec2->data.C32[ n ] ) ); 314 return 2; 315 }; 316 } 317 318 psFree( vec ); 319 psFree( vec2 ); 320 321 321 return 0; 322 322 } … … 327 327 psVector* vec2 = NULL; 328 328 psF32 val; 329 329 330 330 /* 331 331 1. create a psC32 vector with unique real and imaginary components … … 334 334 4. verify the values are the square of the absolute values of the original 335 335 */ 336 336 337 337 // 1. create a psC32 vector with unique real and imaginary components 338 338 vec = psVectorAlloc( 100, PS_TYPE_C32 ); 339 339 vec->n = vec->nalloc; 340 340 for ( unsigned int n = 0; n < 100; n++ ) { 341 vec->data.C32[ n ] = n + I * sinf( ( ( psF32 ) n ) / 50.f * M_PI );342 }343 341 vec->data.C32[ n ] = n + I * sinf( ( ( psF32 ) n ) / 50.f * M_PI ); 342 } 343 344 344 // 2. call psVectorPowerSpectrum 345 345 vec2 = psVectorPowerSpectrum( vec2, vec ); 346 346 347 347 // 3. verify result is psF32 348 348 if ( vec2->type.type != PS_TYPE_F32 ) { 349 psError( __func__, "the type was not PS_TYPE_F32." );350 return 1;351 }352 349 psError( __func__, "the type was not PS_TYPE_F32." ); 350 return 1; 351 } 352 353 353 // 4. verify the values are the square of the absolute values of the original 354 354 // (ADD specifies something else) … … 357 357 // P_N/2 = |C_N/2|^2/N^2 358 358 // where j = 1,2,...,(N/2-1) 359 359 360 360 val = cabsf( vec->data.C32[ 0 ] ) * cabsf( vec->data.C32[ 0 ] ) / 100 / 100; 361 361 if ( fabsf( vec2->data.F32[ 0 ] - val ) > FLT_EPSILON ) { 362 psError( __func__, "psVectorPowerSpectrum result is invalid (n=0, %.2f %.2f)", 363 vec2->data.F32[ 0 ], val ); 362 psError( __func__, "psVectorPowerSpectrum result is invalid (n=0, %.2f %.2f)", 363 vec2->data.F32[ 0 ], val ); 364 return 2; 365 }; 366 367 for ( unsigned int n = 1; n < 50; n++ ) { 368 val = ( cabsf( vec->data.C32[ n ] ) * cabsf( vec->data.C32[ n ] ) + 369 cabsf( vec->data.C32[ 100 - n ] ) * cabsf( vec->data.C32[ 100 - n ] ) ) / 100 / 100; 370 371 if ( fabsf( val - vec2->data.F32[ n ] ) > FLT_EPSILON ) { 372 psError( __func__, "psVectorPowerSpectrum result is invalid (n=%d, %.2f %.2f)", 373 n, vec2->data.F32[ n ], val ); 364 374 return 2; 365 375 }; 366 367 for ( unsigned int n = 1; n < 50; n++ ) { 368 val = ( cabsf( vec->data.C32[ n ] ) * cabsf( vec->data.C32[ n ] ) + 369 cabsf( vec->data.C32[ 100 - n ] ) * cabsf( vec->data.C32[ 100 - n ] ) ) / 100 / 100; 370 371 if ( fabsf( val - vec2->data.F32[ n ] ) > FLT_EPSILON ) { 372 psError( __func__, "psVectorPowerSpectrum result is invalid (n=%d, %.2f %.2f)", 373 n, vec2->data.F32[ n ], val ); 374 return 2; 375 }; 376 } 377 376 } 377 378 378 val = cabsf( vec->data.C32[ 50 ] ) * cabsf( vec->data.C32[ 50 ] ) / 100 / 100; 379 379 if ( fabsf( vec2->data.F32[ 50 ] - val ) > FLT_EPSILON ) { 380 psError( __func__, "psVectorPowerSpectrum result is invalid (n=50, %.2f %.2f)",381 vec2->data.F32[ 0 ], val );382 return 2;383 };384 385 psFree( vec ); 386 psFree( vec2 ); 387 388 return 0; 389 } 380 psError( __func__, "psVectorPowerSpectrum result is invalid (n=50, %.2f %.2f)", 381 vec2->data.F32[ 0 ], val ); 382 return 2; 383 }; 384 385 psFree( vec ); 386 psFree( vec2 ); 387 388 return 0; 389 } -
trunk/psLib/test/dataManip/verified/tst_psMatrix02.stderr
r1198 r1404 1 <DATE> <TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: Pointer to inImage is same as outImage.2 <DATE> <TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: inImage or its data is NULL.3 <DATE> <TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: inImage not PS_TYPE_F64.4 <DATE> <TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: inImage not square array.5 <DATE> <TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: outImage not PS_TYPE_F64.6 <DATE> <TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: outImage not square array.1 <DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: Pointer to inImage is same as outImage. 2 <DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: inImage or its data is NULL. 3 <DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: inImage not PS_TYPE_F64. 4 <DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: inImage not square array. 5 <DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: outImage not PS_TYPE_F64. 6 <DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: outImage not square array. -
trunk/psLib/test/dataManip/verified/tst_psMatrix03.stderr
r1198 r1404 1 <DATE> <TIME>|<HOST>|E| psMatrixLUD|Invalid operation: inImage or its data is NULL.2 <DATE> <TIME>|<HOST>|E|psMatrixLUSolve|Invalid operation: inVector or its data is NULL.3 <DATE> <TIME>|<HOST>|E|psMatrixLUSolve|Invalid operation: inImage or its data is NULL.1 <DATE><TIME>|<HOST>|E| psMatrixLUD|Invalid operation: inImage or its data is NULL. 2 <DATE><TIME>|<HOST>|E|psMatrixLUSolve|Invalid operation: inVector or its data is NULL. 3 <DATE><TIME>|<HOST>|E|psMatrixLUSolve|Invalid operation: inImage or its data is NULL. -
trunk/psLib/test/dataManip/verified/tst_psMatrix04.stderr
r1198 r1404 1 <DATE> <TIME>|<HOST>|E| psMatrixInvert|Invalid operation: inImage or its data is NULL.2 <DATE> <TIME>|<HOST>|E| psMatrixInvert|Invalid operation: determinant argument is NULL.1 <DATE><TIME>|<HOST>|E| psMatrixInvert|Invalid operation: inImage or its data is NULL. 2 <DATE><TIME>|<HOST>|E| psMatrixInvert|Invalid operation: determinant argument is NULL. -
trunk/psLib/test/dataManip/verified/tst_psMatrix07.stderr
r1198 r1404 1 <DATE> <TIME>|<HOST>|E|psMatrixToVecto|Invalid operation: inImage or its data is NULL.2 <DATE> <TIME>|<HOST>|E|psMatrixToVecto|Image does not have dim with 1 col or 1 row: (2 x 2).3 <DATE> <TIME>|<HOST>|E|psVectorToMatri|Invalid operation: inVector or its data is NULL.1 <DATE><TIME>|<HOST>|E|psMatrixToVecto|Invalid operation: inImage or its data is NULL. 2 <DATE><TIME>|<HOST>|E|psMatrixToVecto|Image does not have dim with 1 col or 1 row: (2 x 2). 3 <DATE><TIME>|<HOST>|E|psVectorToMatri|Invalid operation: inVector or its data is NULL. -
trunk/psLib/test/dataManip/verified/tst_psMatrixVectorArithmetic02.stdout
r1403 r1404 664 664 665 665 Output: 666 2.51 +0.00i 2.51+0.00i667 2.51 +0.00i 2.51+0.00i668 2.51 +0.00i 2.51+0.00i666 2.51-0.00i 2.51-0.00i 667 2.51-0.00i 2.51-0.00i 668 2.51-0.00i 2.51-0.00i 669 669 670 670 … … 1168 1168 1169 1169 Output: 1170 89 891171 89 891172 89 891170 90 90 1171 90 90 1172 90 90 1173 1173 1174 1174 … … 1360 1360 1361 1361 Output: 1362 89 891363 89 891364 89 891362 90 90 1363 90 90 1364 90 90 1365 1365 1366 1366 … … 2296 2296 2297 2297 Output: 2298 2.51 +0.00i2299 2.51 +0.00i2300 2.51 +0.00i2298 2.51-0.00i 2299 2.51-0.00i 2300 2.51-0.00i 2301 2301 2302 2302 … … 2800 2800 2801 2801 Output: 2802 89 2803 89 2804 89 2802 90 2803 90 2804 90 2805 2805 2806 2806 … … 2992 2992 2993 2993 Output: 2994 89 2995 89 2996 89 2994 90 2995 90 2996 90 2997 2997 2998 2998 -
trunk/psLib/test/dataManip/verified/tst_psMatrixVectorArithmetic03.stderr
r1403 r1404 1 <DATE> <TIME> |<HOST>|E| psBinaryOp|: Line 403- Null out argument2 <DATE> <TIME> |<HOST>|E| psBinaryOp|: Line 409- Null in1 argument3 <DATE> <TIME> |<HOST>|E| psBinaryOp|: Line 415- Null in2 argument4 <DATE> <TIME> |<HOST>|E| psBinaryOp|: Line 420- Null op argument5 <DATE> <TIME> |<HOST>|E| psUnaryOp|: Line 718- Null out argument6 <DATE> <TIME> |<HOST>|E| psUnaryOp|: Line 724- Null in argument7 <DATE> <TIME> |<HOST>|E| psUnaryOp|: Line 729- Null op argument8 <DATE> <TIME> |<HOST>|E| psBinaryOp|: Line 432- Element types for arguments inconsistent: (1028, 1032, 1032)9 <DATE> <TIME> |<HOST>|E| psUnaryOp|: Line 739- Element types for arguments inconsistent: (1028, 1032)10 <DATE> <TIME>|<HOST>|E| psBinaryOp|: Inconsistent element count: numRows: 2 vs 3 numCols: 2 vs 311 <DATE> <TIME>|<HOST>|E| psUnaryOp|: Inconsistent element count: numRows: 2 vs 3 numCols: 2 vs 312 <DATE> <TIME>|<HOST>|E| psBinaryOp|: Inconsistent element count: 2 vs 313 <DATE> <TIME>|<HOST>|E| psBinaryOp|: Inconsistent element count: 2 vs 314 <DATE> <TIME> |<HOST>|E| psUnaryOp|: Line 745- Dimensionality for arguments inconsistent: (1, 3)15 <DATE> <TIME>|<HOST>|E| psNanDiv|: Divide by zero16 <DATE> <TIME>|<HOST>|E| psNanDiv|: Divide by zero17 <DATE> <TIME>|<HOST>|E| psNanDiv|: Divide by zero18 <DATE> <TIME>|<HOST>|E| psNanDiv|: Divide by zero19 <DATE> <TIME>|<HOST>|E| psNanDiv|: Divide by zero20 <DATE> <TIME>|<HOST>|E| psNanDiv|: Divide by zero21 <DATE> <TIME>|<HOST>|E| psNanDiv|: Divide by zero22 <DATE> <TIME>|<HOST>|E| psNanDiv|: Divide by zero23 <DATE> <TIME>|<HOST>|E| psNanDiv|: Divide by zero24 <DATE> <TIME>|<HOST>|E| psBinaryOp|: Minimum operation not supported for complex numbers25 <DATE> <TIME>|<HOST>|E| psBinaryOp|: Maximum operation not supported for complex numbers26 <DATE> <TIME>|<HOST>|E| psBinaryOp|: Invalid operation: yarg27 <DATE> <TIME>|<HOST>|E| psUnaryOp|: Invalid operation: yarg1 <DATE><TIME>|<HOST>|E| psBinaryOp|: Line <LINENO> - Null out argument 2 <DATE><TIME>|<HOST>|E| psBinaryOp|: Line <LINENO> - Null in1 argument 3 <DATE><TIME>|<HOST>|E| psBinaryOp|: Line <LINENO> - Null in2 argument 4 <DATE><TIME>|<HOST>|E| psBinaryOp|: Line <LINENO> - Null op argument 5 <DATE><TIME>|<HOST>|E| psUnaryOp|: Line <LINENO> - Null out argument 6 <DATE><TIME>|<HOST>|E| psUnaryOp|: Line <LINENO> - Null in argument 7 <DATE><TIME>|<HOST>|E| psUnaryOp|: Line <LINENO> - Null op argument 8 <DATE><TIME>|<HOST>|E| psBinaryOp|: Line <LINENO> - Element types for arguments inconsistent: (1028, 1032, 1032) 9 <DATE><TIME>|<HOST>|E| psUnaryOp|: Line <LINENO> - Element types for arguments inconsistent: (1028, 1032) 10 <DATE><TIME>|<HOST>|E| psBinaryOp|: Inconsistent element count: numRows: 2 vs 3 numCols: 2 vs 3 11 <DATE><TIME>|<HOST>|E| psUnaryOp|: Inconsistent element count: numRows: 2 vs 3 numCols: 2 vs 3 12 <DATE><TIME>|<HOST>|E| psBinaryOp|: Inconsistent element count: 2 vs 3 13 <DATE><TIME>|<HOST>|E| psBinaryOp|: Inconsistent element count: 2 vs 3 14 <DATE><TIME>|<HOST>|E| psUnaryOp|: Line <LINENO> - Dimensionality for arguments inconsistent: (1, 3) 15 <DATE><TIME>|<HOST>|E| psNanDiv|: Divide by zero 16 <DATE><TIME>|<HOST>|E| psNanDiv|: Divide by zero 17 <DATE><TIME>|<HOST>|E| psNanDiv|: Divide by zero 18 <DATE><TIME>|<HOST>|E| psNanDiv|: Divide by zero 19 <DATE><TIME>|<HOST>|E| psNanDiv|: Divide by zero 20 <DATE><TIME>|<HOST>|E| psNanDiv|: Divide by zero 21 <DATE><TIME>|<HOST>|E| psNanDiv|: Divide by zero 22 <DATE><TIME>|<HOST>|E| psNanDiv|: Divide by zero 23 <DATE><TIME>|<HOST>|E| psNanDiv|: Divide by zero 24 <DATE><TIME>|<HOST>|E| psBinaryOp|: Minimum operation not supported for complex numbers 25 <DATE><TIME>|<HOST>|E| psBinaryOp|: Maximum operation not supported for complex numbers 26 <DATE><TIME>|<HOST>|E| psBinaryOp|: Invalid operation: yarg 27 <DATE><TIME>|<HOST>|E| psUnaryOp|: Invalid operation: yarg -
trunk/psLib/test/dataManip/verified/tst_psVectorFFT.stderr
r1221 r1404 23 23 \**********************************************************************************/ 24 24 25 <DATE> <TIME>|<HOST>|I|testVectorCompl|Following should be an error (type mismatch).26 <DATE> <TIME>|<HOST>|E|psVectorComplex|The inputs to psVectorComplex must be the same type.25 <DATE><TIME>|<HOST>|I|testVectorCompl|Following should be an error (type mismatch). 26 <DATE><TIME>|<HOST>|E|psVectorComplex|The inputs to psVectorComplex must be the same type. 27 27 28 28 ---> TESTPOINT PASSED (psFFT{psVectorComplex} | tst_psVectorFFT.c) -
trunk/psLib/test/image/tst_psImageExtraction.c
r1364 r1404 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-08-0 2 18:30:10$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-08-06 21:50:14 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 } 28 28 }; 29 29 30 30 int main( int argc, char* argv[] ) 31 31 { … … 41 41 psVector* out = NULL; 42 42 psImage* image = psImageAlloc( c, r, PS_TYPE_F32 ); 43 psVector* positions = psVectorAlloc( r, PS_TYPE_U32 ); 43 44 psImage* mask = psImageAlloc( c, r, PS_TYPE_MASK ); 44 45 psStats* stat = psStatsAlloc( PS_STAT_SAMPLE_MEDIAN ); 45 46 46 47 /* 47 48 This function shall extract pixels from a specified region of a psImage 48 49 structure into a vector using a specified statistical method. 49 50 50 51 Verify the returned psVector structure contains expected data, if the 51 52 input psImage input has known data and the psStats structure specifies … … 57 58 58 59 */ 59 60 60 61 for ( int row = 0;row < r;row++ ) { 61 psF32* imageRow = image->data.F32[ row ]; 62 psMaskType* maskRow = image->data.V[ row ]; 63 psF32 rowOffset = ( psF32 ) row / ( psF32 ) r; 64 for ( int col = 0;col < c;col++ ) { 65 imageRow[ col ] = ( psF32 ) col + rowOffset; 66 maskRow[ col ] = 0; 67 } 62 psF32* imageRow = image->data.F32[ row ]; 63 psMaskType* maskRow = image->data.V[ row ]; 64 psF32 rowOffset = ( psF32 ) row / ( psF32 ) r; 65 for ( int col = 0;col < c;col++ ) { 66 imageRow[ col ] = ( psF32 ) col + rowOffset; 67 maskRow[ col ] = 0; 68 68 } 69 69 } 70 70 71 // test MxN case 71 72 72 73 #define PSIMAGESLICE_TEST1(M,N,DIRECTION,TRUTH_SIZE,TRUTHPIX_X,TRUTHPIX_Y,TESTNUM) \ 73 out = psImageSlice(out, image,mask,1,c/10,r/10,M,N,DIRECTION,stat); \74 out = psImageSlice(out,positions,image,mask,1,c/10,r/10,M,N,DIRECTION,stat); \ 74 75 \ 75 76 if (out->n != TRUTH_SIZE) { \ 76 psError(__func__,"Number of results is wrong (%d, not %d)", \ 77 out->n,n); \ 78 return TESTNUM*2+1; \ 79 } \ 77 psError(__func__,"Number of results is wrong (%d, not %d)", \ 78 out->n,n); \ 79 return TESTNUM*4+1; \ 80 } \ 81 \ 82 if (positions->n != TRUTH_SIZE) { \ 83 psError(__func__,"Number of results for positions vector is wrong (%d, not %d)", \ 84 out->n,n); \ 85 return TESTNUM*4+2; \ 86 } \ 80 87 \ 81 88 for (int i=0;i<out->n;i++) { \ 82 if (abs(out->data.F64[i]-image->data.F32[r/10+TRUTHPIX_Y][c/10+TRUTHPIX_X]) > 1.0/(psF32)r) { \ 83 psError(__func__,"Improper result at position %d.",i); \ 84 return TESTNUM*2+2; \ 85 } \ 86 } 87 89 if (abs(out->data.F64[i]-image->data.F32[r/10+TRUTHPIX_Y][c/10+TRUTHPIX_X]) > 1.0/(psF32)r) { \ 90 psError(__func__,"Improper result at position %d.",i); \ 91 return TESTNUM*4+3; \ 92 } \ 93 if (DIRECTION == PS_CUT_X_POS || DIRECTION == PS_CUT_X_NEG) { \ 94 if (positions->data.U32[i] != c/10+TRUTHPIX_X) { \ 95 psError(__func__,"Improper postions result @ %d.",i); \ 96 return TESTNUM*4+4; \ 97 } \ 98 } else { \ 99 if (positions->data.U32[i] != r/10+TRUTHPIX_Y) { \ 100 psError(__func__,"Improper postions result @ %d.",i); \ 101 return TESTNUM*4+4; \ 102 } \ 103 } \ 104 } 105 88 106 // test MxN case 89 107 PSIMAGESLICE_TEST1( m, n, PS_CUT_X_POS, m, i, n / 2, 0 ); … … 91 109 PSIMAGESLICE_TEST1( m, n, PS_CUT_Y_POS, n, m / 2, i, 2 ); 92 110 PSIMAGESLICE_TEST1( m, n, PS_CUT_Y_NEG, n, m / 2, n - 1 - i, 3 ); 93 111 94 112 // test Mx1 case 95 113 PSIMAGESLICE_TEST1( m, 1, PS_CUT_X_POS, m, i, 0, 4 ); … … 97 115 PSIMAGESLICE_TEST1( m, 1, PS_CUT_Y_POS, 1, m / 2, 0, 6 ); 98 116 PSIMAGESLICE_TEST1( m, 1, PS_CUT_Y_NEG, 1, m / 2, 0, 7 ); 99 117 100 118 // test 1xN case 101 119 PSIMAGESLICE_TEST1( 1, n, PS_CUT_X_POS, 1, 0, n / 2, 8 ); … … 103 121 PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_POS, n, 0, n - 1 - i, 10 ); 104 122 PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_NEG, n, 0, n - 1 - i, 11 ); 105 123 106 124 // test 1x1 case 107 125 PSIMAGESLICE_TEST1( 1, 1, PS_CUT_X_POS, 1, 0, 0, 12 ); … … 109 127 PSIMAGESLICE_TEST1( 1, 1, PS_CUT_Y_POS, 1, 0, 0, 14 ); 110 128 PSIMAGESLICE_TEST1( 1, 1, PS_CUT_Y_NEG, 1, 0, 0, 15 ); 111 129 112 130 /* 113 131 Verify the returned psVector structure pointer is null and program 114 132 execution doesn't stop, if input psImage input is null. 115 116 */ 117 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 118 out = psImageSlice( out, NULL, NULL, 0, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat );119 if ( out != NULL ) { 120 psError( __func__, "Giving a NULL image, psImageSlice didn't return NULL as expected" );121 return 41;122 }123 124 133 134 */ 135 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 136 out = psImageSlice( out, NULL, NULL, NULL, 0, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat ); 137 if ( out != NULL ) { 138 psError( __func__, "Giving a NULL image, psImageSlice didn't return NULL as expected" ); 139 return 101; 140 } 141 142 125 143 /* 126 144 Verify the returned psVector structure pointer is null and program … … 128 146 */ 129 147 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 130 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, NULL );131 if ( out != NULL ) { 132 psError( __func__, "Giving a NULL stat struct, psImageSlice didn't return NULL as expected" );133 return 42;134 }135 136 /* 137 148 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, NULL ); 149 if ( out != NULL ) { 150 psError( __func__, "Giving a NULL stat struct, psImageSlice didn't return NULL as expected" ); 151 return 102; 152 } 153 154 /* 155 138 156 Verify the returned psVector structure pointer is null and program 139 157 executions doesn't stop, if the input direction is not set to one of … … 141 159 */ 142 160 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 143 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, 1, 5, stat );144 if ( out != NULL ) { 145 psError( __func__, "Giving a bogus direction flag, psImageSlice didn't return NULL as expected" );146 return 43;147 }148 161 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, 1, 5, stat ); 162 if ( out != NULL ) { 163 psError( __func__, "Giving a bogus direction flag, psImageSlice didn't return NULL as expected" ); 164 return 103; 165 } 166 149 167 /* 150 168 Verify the returned psVector structure pointer is null and program … … 152 170 */ 153 171 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 154 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 0, 0, PS_CUT_X_POS, stat );155 if ( out != NULL ) { 156 psError( __func__, "Giving a 0x0 region, psImageSlice didn't return NULL as expected" );157 return 44;158 }159 172 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 0, 0, PS_CUT_X_POS, stat ); 173 if ( out != NULL ) { 174 psError( __func__, "Giving a 0x0 region, psImageSlice didn't return NULL as expected" ); 175 return 104; 176 } 177 160 178 /* 161 179 Verify the returned psVector structure pointer is null and program … … 164 182 */ 165 183 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 166 out = psImageSlice( out, image, mask, 1, c + 1, r / 10, 1, 1, PS_CUT_X_POS, stat );167 if ( out != NULL ) { 168 psError( __func__, "Giving an invalid x position, psImageSlice didn't return NULL as expected" );169 return 45;170 }171 172 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 173 out = psImageSlice( out, image, mask, 1, c / 10, r + 1, 1, 1, PS_CUT_X_POS, stat );174 if ( out != NULL ) { 175 psError( __func__, "Giving an invalid y position, psImageSlice didn't return NULL as expected" );176 return 46;177 }178 179 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 180 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, c, 1, PS_CUT_X_POS, stat );181 if ( out != NULL ) { 182 psError( __func__, "Giving an invalid numCols, psImageSlice didn't return NULL as expected" );183 return 47;184 }185 186 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 187 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, r, PS_CUT_X_POS, stat );188 if ( out != NULL ) { 189 psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" );190 return 48;191 }192 184 out = psImageSlice( out, NULL, image, mask, 1, c + 1, r / 10, 1, 1, PS_CUT_X_POS, stat ); 185 if ( out != NULL ) { 186 psError( __func__, "Giving an invalid x position, psImageSlice didn't return NULL as expected" ); 187 return 105; 188 } 189 190 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 191 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r + 1, 1, 1, PS_CUT_X_POS, stat ); 192 if ( out != NULL ) { 193 psError( __func__, "Giving an invalid y position, psImageSlice didn't return NULL as expected" ); 194 return 106; 195 } 196 197 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 198 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, c, 1, PS_CUT_X_POS, stat ); 199 if ( out != NULL ) { 200 psError( __func__, "Giving an invalid numCols, psImageSlice didn't return NULL as expected" ); 201 return 107; 202 } 203 204 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 205 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, r, PS_CUT_X_POS, stat ); 206 if ( out != NULL ) { 207 psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" ); 208 return 108; 209 } 210 193 211 /* 194 212 Verify the returned psVector structure pointer is null and program … … 198 216 psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." ); 199 217 stat->options = 0; 200 out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat );201 if ( out != NULL ) { 202 psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" );203 return 49;204 }205 218 out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat ); 219 if ( out != NULL ) { 220 psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" ); 221 return 109; 222 } 223 206 224 psFree( image ); 225 psFree( positions ); 207 226 psFree( mask ); 208 227 psFree( out ); 209 228 psFree( stat ); 210 229 211 230 return 0; 212 231 213 232 } 214 233 215 216 217 218 219 220 221 -
trunk/psLib/test/image/verified/tst_psImage.stderr
r1212 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|I| testImageAlloc|#546 - psImageAlloc shall allocate memory for a psImage structure8 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 101h9 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).10 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 102h11 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).12 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 104h13 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).14 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 108h15 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).16 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 301h17 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).18 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 302h19 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).20 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 304h21 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).22 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 308h23 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).24 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 404h25 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).26 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 408h27 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).28 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 808h29 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).30 <DATE> <TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 810h31 <DATE> <TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).7 <DATE><TIME>|<HOST>|I| testImageAlloc|#546 - psImageAlloc shall allocate memory for a psImage structure 8 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 101h 9 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 10 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 102h 11 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 12 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 104h 13 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 14 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 108h 15 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 16 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 301h 17 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 18 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 302h 19 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 20 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 304h 21 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 22 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 308h 23 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 24 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 404h 25 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 26 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 408h 27 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 28 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 808h 29 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 30 <DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 810h 31 <DATE><TIME>|<HOST>|E| psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0). 32 32 33 33 ---> TESTPOINT PASSED (psImage{psImageAlloc} | tst_psImage.c) … … 39 39 \**********************************************************************************/ 40 40 41 <DATE> <TIME>|<HOST>|I|testImageSubset|memcpy(&preSubsetStruct,original,sizeof(psImage));42 <DATE> <TIME>|<HOST>|I|testImageSubset|subset1 = psImageAlloc(c/4,r/4,PS_TYPE_U8);43 <DATE> <TIME>|<HOST>|I|testImageSubset|subset2 = psImageSubset(subset1,original,c/2,r/2,c/4,r/4);44 <DATE> <TIME>|<HOST>|I|testImageSubset|subset3 = psImageSubset(NULL,original,c/2,r/2,0,0);45 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure is equal to the input psImage structure parameter out, if input parameter out is specified.46 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify a new psImage structure is created, if input parameter out is set to null.47 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure contains expected values in the row member, if the input psImage structure image contains known values.48 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members nrow and ncol are equal to the input parameter nrow and ncol respectively.49 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member type is equal to the input psImage structure member type.50 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members row0 and col0 are equal to the input parameters row0 and col0 respectively.51 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member parent is equal to the input psImage structure pointer image.52 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member Nchildren is equal to zero.53 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member children is null.54 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the input psImage structure image only has the following members changed: 1) Nchildren is increased by one. 2) parent contains pointer psImage structure out at parent[Nchildren-1].55 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameter image is null. Also verified the input psImage structure is not modified.56 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...57 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because input image or its pixel buffer is NULL.58 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters nrow and/or ncol are zero. Also verify input psImage structure is not modified.59 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...60 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because number of rows or columns are zero (64x0).61 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...62 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because number of rows or columns are zero (0x128).63 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters row0 and col0 are not within the range of values of psImage structure image.64 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...65 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (128,0) is not a valid pixel location.66 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...67 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (0,256) is not a valid pixel location.68 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...69 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (-1,0) is not a valid pixel location.70 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...71 <DATE> <TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (0,-1) is not a valid pixel location.72 <DATE> <TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop if the input parameters nrow, ncol, row0 and col0 specify a range of data not within the input psImage structure image. Also verify the input psImage structure is not modified.73 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...74 <DATE> <TIME> |<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:128,0:128]).75 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...76 <DATE> <TIME> |<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[0:64,128:256]).77 <DATE> <TIME>|<HOST>|I|testImageSubset|An error should follow...78 <DATE> <TIME> |<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:128,128:256]).79 <DATE> <TIME>|<HOST>|I|testImageSubset|psImageFreeChildren shall deallocate any children images of a psImage structure41 <DATE><TIME>|<HOST>|I|testImageSubset|memcpy(&preSubsetStruct,original,sizeof(psImage)); 42 <DATE><TIME>|<HOST>|I|testImageSubset|subset1 = psImageAlloc(c/4,r/4,PS_TYPE_U8); 43 <DATE><TIME>|<HOST>|I|testImageSubset|subset2 = psImageSubset(subset1,original,c/2,r/2,c/4,r/4); 44 <DATE><TIME>|<HOST>|I|testImageSubset|subset3 = psImageSubset(NULL,original,c/2,r/2,0,0); 45 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure is equal to the input psImage structure parameter out, if input parameter out is specified. 46 <DATE><TIME>|<HOST>|I|testImageSubset|Verify a new psImage structure is created, if input parameter out is set to null. 47 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure contains expected values in the row member, if the input psImage structure image contains known values. 48 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members nrow and ncol are equal to the input parameter nrow and ncol respectively. 49 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member type is equal to the input psImage structure member type. 50 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members row0 and col0 are equal to the input parameters row0 and col0 respectively. 51 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member parent is equal to the input psImage structure pointer image. 52 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member Nchildren is equal to zero. 53 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member children is null. 54 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the input psImage structure image only has the following members changed: 1) Nchildren is increased by one. 2) parent contains pointer psImage structure out at parent[Nchildren-1]. 55 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameter image is null. Also verified the input psImage structure is not modified. 56 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 57 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because input image or its pixel buffer is NULL. 58 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters nrow and/or ncol are zero. Also verify input psImage structure is not modified. 59 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 60 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because number of rows or columns are zero (64x0). 61 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 62 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because number of rows or columns are zero (0x128). 63 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters row0 and col0 are not within the range of values of psImage structure image. 64 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 65 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (128,0) is not a valid pixel location. 66 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 67 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (0,256) is not a valid pixel location. 68 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 69 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (-1,0) is not a valid pixel location. 70 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 71 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image because col0,row0 (0,-1) is not a valid pixel location. 72 <DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop if the input parameters nrow, ncol, row0 and col0 specify a range of data not within the input psImage structure image. Also verify the input psImage structure is not modified. 73 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 74 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:<LINENO>,0:<LINENO>]). 75 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 76 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[0:<LINENO>,128:<LINENO>]). 77 <DATE><TIME>|<HOST>|I|testImageSubset|An error should follow... 78 <DATE><TIME>|<HOST>|E| psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:<LINENO>,128:<LINENO>]). 79 <DATE><TIME>|<HOST>|I|testImageSubset|psImageFreeChildren shall deallocate any children images of a psImage structure 80 80 81 81 ---> TESTPOINT PASSED (psImage{psImageSubset} | tst_psImage.c) … … 87 87 \**********************************************************************************/ 88 88 89 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU890 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU1691 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU3292 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS893 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS1694 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS3295 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psF3296 <DATE> <TIME>|<HOST>|I| testImageCopy|Image Copy Test for psF6497 <DATE> <TIME>|<HOST>|I| testImageCopy|An error should follow...98 <DATE> <TIME>|<HOST>|E| psImageCopy|Can not copy image because input image or its pixel buffer is NULL.89 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU8 90 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU16 91 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psU32 92 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS8 93 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS16 94 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psS32 95 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psF32 96 <DATE><TIME>|<HOST>|I| testImageCopy|Image Copy Test for psF64 97 <DATE><TIME>|<HOST>|I| testImageCopy|An error should follow... 98 <DATE><TIME>|<HOST>|E| psImageCopy|Can not copy image because input image or its pixel buffer is NULL. 99 99 100 100 ---> TESTPOINT PASSED (psImage{psImageCopy} | tst_psImage.c) -
trunk/psLib/test/image/verified/tst_psImageFFT.stderr
r1221 r1404 23 23 \**********************************************************************************/ 24 24 25 <DATE> <TIME>|<HOST>|I|testImageComple|Following should be an error (type mismatch).26 <DATE> <TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same type.27 <DATE> <TIME>|<HOST>|I|testImageComple|Following should be an error (size mismatch).28 <DATE> <TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same dimensions.25 <DATE><TIME>|<HOST>|I|testImageComple|Following should be an error (type mismatch). 26 <DATE><TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same type. 27 <DATE><TIME>|<HOST>|I|testImageComple|Following should be an error (size mismatch). 28 <DATE><TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same dimensions. 29 29 30 30 ---> TESTPOINT PASSED (psFFT{psImageComplex} | tst_psImageFFT.c) -
trunk/psLib/test/image/verified/tst_psImageManip.stderr
r1358 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|I| testImageClip|psImageClip shall limit the minimum and maximum data value within a psImage structure8 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of F64 imagery9 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of F32 imagery10 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of S32 imagery11 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of S16 imagery12 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of S8 imagery13 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of U32 imagery14 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of U16 imagery15 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of U8 imagery16 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of C32 imagery17 <DATE> <TIME>|<HOST>|I| testImageClip|Testing clipping of C64 imagery18 <DATE> <TIME>|<HOST>|I| testImageClip|Following should be an error (max<min)19 <DATE> <TIME>|<HOST>|E| psImageClip|psImageClip can not be invoked with max < min.7 <DATE><TIME>|<HOST>|I| testImageClip|psImageClip shall limit the minimum and maximum data value within a psImage structure 8 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of F64 imagery 9 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of F32 imagery 10 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of S32 imagery 11 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of S16 imagery 12 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of S8 imagery 13 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of U32 imagery 14 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of U16 imagery 15 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of U8 imagery 16 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of C32 imagery 17 <DATE><TIME>|<HOST>|I| testImageClip|Testing clipping of C64 imagery 18 <DATE><TIME>|<HOST>|I| testImageClip|Following should be an error (max<min) 19 <DATE><TIME>|<HOST>|E| psImageClip|psImageClip can not be invoked with max < min. 20 20 21 21 ---> TESTPOINT PASSED (psImage{psImageClip} | tst_psImageManip.c) … … 27 27 \**********************************************************************************/ 28 28 29 <DATE> <TIME>|<HOST>|I|testImageClipNA|psImageClipNaN shall modified pixel values of NaN with a specified value29 <DATE><TIME>|<HOST>|I|testImageClipNA|psImageClipNaN shall modified pixel values of NaN with a specified value 30 30 31 31 ---> TESTPOINT PASSED (psImage{psImageClipNAN} | tst_psImageManip.c) … … 37 37 \**********************************************************************************/ 38 38 39 <DATE> <TIME>|<HOST>|I|testImageClipCo|psImageClipNaN shall modified pixel values of NaN with a specified value40 <DATE> <TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC3241 <DATE> <TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC6442 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:43 <DATE> <TIME>|<HOST>|E|psImageClipComp|Can not perform clip on NULL image44 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:45 <DATE> <TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space.46 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:47 <DATE> <TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the imaginary image space.48 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:49 <DATE> <TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space.50 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:51 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmin (-6.80565e+38+0i) is outside of image's psC32 pixel range52 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:53 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmin (6.80565e+38+0i) is outside of image's psC32 pixel range54 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:55 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmin (-0-6.80565e+38i) is outside of image's psC32 pixel range56 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:57 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmin (0+6.80565e+38i) is outside of image's psC32 pixel range58 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:59 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmax (-6.80565e+38+0i) is outside of image's psC32 pixel range60 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:61 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmax (6.80565e+38+0i) is outside of image's psC32 pixel range62 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:63 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmax (-0-6.80565e+38i) is outside of image's psC32 pixel range64 <DATE> <TIME>|<HOST>|I|testImageClipCo|Following should be an error:65 <DATE> <TIME>|<HOST>|E|psImageClipComp|Specified vmax (0+6.80565e+38i) is outside of image's psC32 pixel range39 <DATE><TIME>|<HOST>|I|testImageClipCo|psImageClipNaN shall modified pixel values of NaN with a specified value 40 <DATE><TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC32 41 <DATE><TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC64 42 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 43 <DATE><TIME>|<HOST>|E|psImageClipComp|Can not perform clip on NULL image 44 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 45 <DATE><TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space. 46 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 47 <DATE><TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the imaginary image space. 48 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 49 <DATE><TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space. 50 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 51 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (-6.80565e+38+0i) is outside of image's psC32 pixel range 52 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 53 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (6.80565e+38+0i) is outside of image's psC32 pixel range 54 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 55 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (-0-6.80565e+38i) is outside of image's psC32 pixel range 56 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 57 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (0+6.80565e+38i) is outside of image's psC32 pixel range 58 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 59 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (-6.80565e+38+0i) is outside of image's psC32 pixel range 60 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 61 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (6.80565e+38+0i) is outside of image's psC32 pixel range 62 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 63 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (-0-6.80565e+38i) is outside of image's psC32 pixel range 64 <DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error: 65 <DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (0+6.80565e+38i) is outside of image's psC32 pixel range 66 66 67 67 ---> TESTPOINT PASSED (psImage{psImageClipComplexRegion} | tst_psImageManip.c) … … 73 73 \**********************************************************************************/ 74 74 75 <DATE> <TIME>|<HOST>|I|testImageOverla|Following should error as overlay isn't within image boundaries76 <DATE> <TIME>|<HOST>|E|psImageOverlayS|Overlay image (32,64 -> 159,319) is partially outside of the input image (128 x 256).77 <DATE> <TIME>|<HOST>|I|testImageOverla|Following should error as overlay is NULL78 <DATE> <TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL.79 <DATE> <TIME>|<HOST>|I|testImageOverla|Following should error as image input is NULL80 <DATE> <TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL.75 <DATE><TIME>|<HOST>|I|testImageOverla|Following should error as overlay isn't within image boundaries 76 <DATE><TIME>|<HOST>|E|psImageOverlayS|Overlay image (32,64 -> 159,319) is partially outside of the input image (128 x 256). 77 <DATE><TIME>|<HOST>|I|testImageOverla|Following should error as overlay is NULL 78 <DATE><TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL. 79 <DATE><TIME>|<HOST>|I|testImageOverla|Following should error as image input is NULL 80 <DATE><TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL. 81 81 82 82 ---> TESTPOINT PASSED (psImage{psImageOverlay} | tst_psImageManip.c) … … 88 88 \**********************************************************************************/ 89 89 90 <DATE> <TIME>|<HOST>|E| psImageRebin|Input image is NULL.91 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.92 <DATE> <TIME>|<HOST>|E| psImageRebin|The scale must be positive.93 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.94 <DATE> <TIME>|<HOST>|E| psImageRebin|The stats input can not be NULL.95 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.96 <DATE> <TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type.97 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.98 <DATE> <TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type.99 <DATE> <TIME>|<HOST>|I| testImageRebin|Following should be an error.100 <DATE> <TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type.90 <DATE><TIME>|<HOST>|E| psImageRebin|Input image is NULL. 91 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 92 <DATE><TIME>|<HOST>|E| psImageRebin|The scale must be positive. 93 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 94 <DATE><TIME>|<HOST>|E| psImageRebin|The stats input can not be NULL. 95 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 96 <DATE><TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type. 97 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 98 <DATE><TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type. 99 <DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error. 100 <DATE><TIME>|<HOST>|E| psImageRebin|The stat options didn't specify a single supported statistic type. 101 101 102 102 ---> TESTPOINT PASSED (psImage{psImageRebin} | tst_psImageManip.c) … … 108 108 \**********************************************************************************/ 109 109 110 <DATE> <TIME>|<HOST>|I| testImageRoll|Following should generate an error.111 <DATE> <TIME>|<HOST>|E| psImageRoll|Input image can not be NULL.110 <DATE><TIME>|<HOST>|I| testImageRoll|Following should generate an error. 111 <DATE><TIME>|<HOST>|E| psImageRoll|Input image can not be NULL. 112 112 113 113 ---> TESTPOINT PASSED (psImage{psImageRoll} | tst_psImageManip.c) … … 119 119 \**********************************************************************************/ 120 120 121 <DATE> <TIME>|<HOST>|I|testImageRotate|Following should be an error122 <DATE> <TIME>|<HOST>|E| psImageRotate|The input image was NULL.121 <DATE><TIME>|<HOST>|I|testImageRotate|Following should be an error 122 <DATE><TIME>|<HOST>|E| psImageRotate|The input image was NULL. 123 123 124 124 ---> TESTPOINT PASSED (psImage{psImageRotate} | tst_psImageManip.c) -
trunk/psLib/test/image/verified/tst_psImageStats01.stderr
r1365 r1404 1 <DATE> <TIME>|<HOST>|E| psImageStats|The input image can not be NULL.2 <DATE> <TIME>|<HOST>|E| psImageStats|The input psStats struct can not be NULL.3 <DATE> <TIME>|<HOST>|E| psImageStats|No statistic option/operation was specified.1 <DATE><TIME>|<HOST>|E| psImageStats|The input image can not be NULL. 2 <DATE><TIME>|<HOST>|E| psImageStats|The input psStats struct can not be NULL. 3 <DATE><TIME>|<HOST>|E| psImageStats|No statistic option/operation was specified. -
trunk/psLib/test/runTest
r1212 r1404 30 30 # 31 31 # $Revison: $ $Name: not supported by cvs2svn $ 32 # $Date: 2004-0 7-13 01:37:58$32 # $Date: 2004-08-06 21:50:13 $ 33 33 # 34 34 # Copyright 2004 Maui High Performance Computering Center, University of Hawaii … … 133 133 chop $hostname; 134 134 while( <OUTFILE> ) { 135 s/\d+:\d+:\d+/ <DATE> /; 136 s/\s+\d+:\d+:\d+\w/ <TIME> /; 137 s/$hostname/<HOST>/; 135 s/\s+\d+:\d+:\d+\w/<TIME>/g; 136 s/\d+:\d+:\d+/<DATE>/g; 137 s/$hostname/<HOST>/g; 138 s/: Line \d+/: Line <LINENO>/g; 139 s/\:\d+/\:<LINENO>/g; 138 140 # Filter lines with malloc. This is an artifact of memory testing 139 141 # with the Mac testbed … … 156 158 # Replace the variable date, time and host information with constants 157 159 while( <OUTFILE> ) { 158 s/\d+:\d+:\d+/ <DATE> /; 159 s/\s+\d+:\d+:\d+\w/ <TIME> /; 160 s/$hostname/<HOST>/; 160 s/\s+\d+:\d+:\d+\w/<TIME>/g; 161 s/\d+:\d+:\d+/<DATE>/g; 162 s/$hostname/<HOST>/g; 163 s/: Line \d+/: Line <LINENO>/g; 164 s/\:\d+/\:<LINENO>/g; 161 165 # Filter lines with malloc. This is an artifact of memory testing 162 166 # with the Mac testbed -
trunk/psLib/test/sysUtils/tst_psTrace01.c
r1136 r1404 21 21 22 22 lev = psTraceGetLevel("."); 23 if (lev != DEFAULT_TRACE_LEVEL) {23 if (lev != PS_DEFAULT_TRACE_LEVEL) { 24 24 printf("ERROR: expected trace level was %d, actual was %d\n", 25 25 i, lev); … … 40 40 41 41 psTraceReset(); 42 if (( DEFAULT_TRACE_LEVEL != psTraceGetLevel(".")) ||43 ( DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a")) ||44 ( DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a.b")) ||45 ( DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a.b.c"))) {42 if ((PS_DEFAULT_TRACE_LEVEL != psTraceGetLevel(".")) || 43 (PS_DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a")) || 44 (PS_DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a.b")) || 45 (PS_DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a.b.c"))) { 46 46 printf("ERROR: trace levels were not reset properly\n"); 47 47 successFlag = false; -
trunk/psLib/test/sysUtils/verified/atst_psAbort_01.stderr
r1198 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|A| main|ALL TYPES intval = 1 longval = 2 floatval = 3.010000 charval = E strval = E R R O R7 <DATE><TIME>|<HOST>|A| main|ALL TYPES intval = 1 longval = 2 floatval = 3.010000 charval = E strval = E R R O R -
trunk/psLib/test/sysUtils/verified/atst_psAbort_02.stderr
r1198 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|A| __LINE__|NO_VALUES7 <DATE><TIME>|<HOST>|A| __LINE__|NO_VALUES -
trunk/psLib/test/sysUtils/verified/atst_psAbort_03.stderr
r1198 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|A| |7 <DATE><TIME>|<HOST>|A| | -
trunk/psLib/test/sysUtils/verified/tst_psError.stderr
r1198 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|E| main|ALL TYPES intval = 1 longval = 2 floatval = 3.010000 charval = E strval = E R R O R7 <DATE><TIME>|<HOST>|E| main|ALL TYPES intval = 1 longval = 2 floatval = 3.010000 charval = E strval = E R R O R 8 8 9 9 ---> TESTPOINT PASSED (psError{Multiple type values in error message} | tst_psError.c) … … 15 15 \**********************************************************************************/ 16 16 17 <DATE> <TIME>|<HOST>|E| __LINE__|NO VALUES17 <DATE><TIME>|<HOST>|E| __LINE__|NO VALUES 18 18 19 19 ---> TESTPOINT PASSED (psError{String values in error message} | tst_psError.c) … … 25 25 \**********************************************************************************/ 26 26 27 <DATE> <TIME>|<HOST>|E| |27 <DATE><TIME>|<HOST>|E| | 28 28 29 29 ---> TESTPOINT PASSED (psError{Empty strings in error message} | tst_psError.c) -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg00.stderr
r1198 r1404 1 <DATE> <TIME>|<HOST>|A| main|Hello World! My level is 0 0.000000 beep beep2 <DATE> <TIME>|<HOST>|E| main|Hello World! My level is 1 1.000000 beep beep3 <DATE> <TIME>|<HOST>|W| main|Hello World! My level is 2 2.000000 beep beep4 <DATE> <TIME>|<HOST>|I| main|Hello World! My level is 3 3.000000 beep beep5 <DATE> <TIME>|<HOST>|A| main|Hello World! My level is 0 0.000000 beep beep6 <DATE> <TIME>|<HOST>|E| main|Hello World! My level is 1 1.000000 beep beep7 <DATE> <TIME>|<HOST>|W| main|Hello World! My level is 2 2.000000 beep beep8 <DATE> <TIME>|<HOST>|I| main|Hello World! My level is 3 3.000000 beep beep1 <DATE><TIME>|<HOST>|A| main|Hello World! My level is 0 0.000000 beep beep 2 <DATE><TIME>|<HOST>|E| main|Hello World! My level is 1 1.000000 beep beep 3 <DATE><TIME>|<HOST>|W| main|Hello World! My level is 2 2.000000 beep beep 4 <DATE><TIME>|<HOST>|I| main|Hello World! My level is 3 3.000000 beep beep 5 <DATE><TIME>|<HOST>|A| main|Hello World! My level is 0 0.000000 beep beep 6 <DATE><TIME>|<HOST>|E| main|Hello World! My level is 1 1.000000 beep beep 7 <DATE><TIME>|<HOST>|W| main|Hello World! My level is 2 2.000000 beep beep 8 <DATE><TIME>|<HOST>|I| main|Hello World! My level is 3 3.000000 beep beep -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg01.stderr
r1198 r1404 1 <DATE> <TIME>|<HOST>|A| main|Hello World! My level is 02 <DATE> <TIME>|<HOST>|E| main|Hello World! My level is 13 <DATE> <TIME>|<HOST>|W| main|Hello World! My level is 24 <DATE> <TIME>|<HOST>|I| main|Hello World! My level is 35 <DATE> <TIME>|<HOST>|4| main|Hello World! My level is 46 <DATE> <TIME>|<HOST>|5| main|Hello World! My level is 57 <DATE> <TIME>|<HOST>|6| main|Hello World! My level is 68 <DATE> <TIME>|<HOST>|7| main|Hello World! My level is 79 <DATE> <TIME>|<HOST>|8| main|Hello World! My level is 810 <DATE> <TIME>|<HOST>|9| main|Hello World! My level is 911 <DATE> <TIME>|<HOST>|4| main|This should be displayed (level 4)1 <DATE><TIME>|<HOST>|A| main|Hello World! My level is 0 2 <DATE><TIME>|<HOST>|E| main|Hello World! My level is 1 3 <DATE><TIME>|<HOST>|W| main|Hello World! My level is 2 4 <DATE><TIME>|<HOST>|I| main|Hello World! My level is 3 5 <DATE><TIME>|<HOST>|4| main|Hello World! My level is 4 6 <DATE><TIME>|<HOST>|5| main|Hello World! My level is 5 7 <DATE><TIME>|<HOST>|6| main|Hello World! My level is 6 8 <DATE><TIME>|<HOST>|7| main|Hello World! My level is 7 9 <DATE><TIME>|<HOST>|8| main|Hello World! My level is 8 10 <DATE><TIME>|<HOST>|9| main|Hello World! My level is 9 11 <DATE><TIME>|<HOST>|4| main|This should be displayed (level 4) -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stderr
r1198 r1404 1 1 ------------- psLogSetFormat() ------------- 2 <DATE> <TIME>|<HOST>|A| main|Hello World! My level is 03 <DATE> <TIME>|<HOST>|E| main|Hello World! My level is 14 <DATE> <TIME>|<HOST>|W| main|Hello World! My level is 25 <DATE> <TIME>|<HOST>|I| main|Hello World! My level is 32 <DATE><TIME>|<HOST>|A| main|Hello World! My level is 0 3 <DATE><TIME>|<HOST>|E| main|Hello World! My level is 1 4 <DATE><TIME>|<HOST>|W| main|Hello World! My level is 2 5 <DATE><TIME>|<HOST>|I| main|Hello World! My level is 3 6 6 ------------- psLogSetFormat(NULL) ------------- 7 7 ------------- psLogSetFormat(T) ------------- 8 <DATE> <TIME>|9 <DATE> <TIME>|10 <DATE> <TIME>|11 <DATE> <TIME>|8 <DATE><TIME>| 9 <DATE><TIME>| 10 <DATE><TIME>| 11 <DATE><TIME>| 12 12 ------------- psLogSetFormat(H) ------------- 13 13 <HOST>| … … 31 31 Hello World! My level is 3 32 32 ------------- psLogSetFormat(THLNM) ------------- 33 <DATE> <TIME>|<HOST>|A| main|Hello World! My level is 034 <DATE> <TIME>|<HOST>|E| main|Hello World! My level is 135 <DATE> <TIME>|<HOST>|W| main|Hello World! My level is 236 <DATE> <TIME>|<HOST>|I| main|Hello World! My level is 337 <DATE> <TIME>|<HOST>|A| Under 15 chars|Hello World!38 <DATE> <TIME>|<HOST>|A|This string is |Hello World!39 <DATE> <TIME>|<HOST>|A| main|Line #140 <DATE> <TIME>|<HOST>|A| main|Line #241 <DATE> <TIME>|<HOST>|A| main|Line #342 <DATE> <TIME>|<HOST>|A| main|Line #433 <DATE><TIME>|<HOST>|A| main|Hello World! My level is 0 34 <DATE><TIME>|<HOST>|E| main|Hello World! My level is 1 35 <DATE><TIME>|<HOST>|W| main|Hello World! My level is 2 36 <DATE><TIME>|<HOST>|I| main|Hello World! My level is 3 37 <DATE><TIME>|<HOST>|A| Under 15 chars|Hello World! 38 <DATE><TIME>|<HOST>|A|This string is |Hello World! 39 <DATE><TIME>|<HOST>|A| main|Line #1 40 <DATE><TIME>|<HOST>|A| main|Line #2 41 <DATE><TIME>|<HOST>|A| main|Line #3 42 <DATE><TIME>|<HOST>|A| main|Line #4 -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stderr
r1198 r1404 1 <DATE> <TIME>|<HOST>|A| main|Hello World! My level is 02 <DATE> <TIME>|<HOST>|E| main|Hello World! My level is 13 <DATE> <TIME>|<HOST>|W| main|Hello World! My level is 24 <DATE> <TIME>|<HOST>|I| main|Hello World! My level is 31 <DATE><TIME>|<HOST>|A| main|Hello World! My level is 0 2 <DATE><TIME>|<HOST>|E| main|Hello World! My level is 1 3 <DATE><TIME>|<HOST>|W| main|Hello World! My level is 2 4 <DATE><TIME>|<HOST>|I| main|Hello World! My level is 3 -
trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stdout
r1276 r1404 8 8 ------------- psLogSetDestination(PS_LOG_TO_STDERR) ------------- 9 9 ------------- psLogSetDestination(PS_LOG_TO_STDOUT) ------------- 10 <DATE> <TIME>|<HOST>|A| main|Hello World! My level is 011 <DATE> <TIME>|<HOST>|E| main|Hello World! My level is 112 <DATE> <TIME>|<HOST>|W| main|Hello World! My level is 213 <DATE> <TIME>|<HOST>|I| main|Hello World! My level is 310 <DATE><TIME>|<HOST>|A| main|Hello World! My level is 0 11 <DATE><TIME>|<HOST>|E| main|Hello World! My level is 1 12 <DATE><TIME>|<HOST>|W| main|Hello World! My level is 2 13 <DATE><TIME>|<HOST>|I| main|Hello World! My level is 3 14 14 --------------- psLogSetDestination(file:log.txt) --------------- 15 15 --------------------- The Contents of log.txt ------------------- 16 <DATE> <TIME>|<HOST>|A| main|Hello World! My level is 017 <DATE> <TIME>|<HOST>|E| main|Hello World! My level is 118 <DATE> <TIME>|<HOST>|W| main|Hello World! My level is 219 <DATE> <TIME>|<HOST>|I| main|Hello World! My level is 316 <DATE><TIME>|<HOST>|A| main|Hello World! My level is 0 17 <DATE><TIME>|<HOST>|E| main|Hello World! My level is 1 18 <DATE><TIME>|<HOST>|W| main|Hello World! My level is 2 19 <DATE><TIME>|<HOST>|I| main|Hello World! My level is 3 20 20 --------------- psLogSetDestination(file:/eva/log.txt) ---------- 21 21 -
trunk/psLib/test/sysUtils/verified/tst_psMemory.stderr
r1372 r1404 5 5 \**********************************************************************************/ 6 6 7 <DATE> <TIME>|<HOST>|I|TPCheckBufferPo|psAlloc shall allocate memory blocks writeable by caller.7 <DATE><TIME>|<HOST>|I|TPCheckBufferPo|psAlloc shall allocate memory blocks writeable by caller. 8 8 9 9 ---> TESTPOINT PASSED (psMemory{checkBufferPositive} | tst_psMemory.c) … … 15 15 \**********************************************************************************/ 16 16 17 <DATE> <TIME>|<HOST>|I| TPOutOfMemory|Upon requesting more memory than is available, psalloc shall call the psMemExhaustedCallback.18 <DATE> <TIME>|<HOST>|I|TPOutOfMemoryEx|Custom MemExhaustedCallback was invoked.19 <DATE> <TIME> |<HOST>|A| p_psAlloc|Failed to allocate 4294966295 bytes at tst_psMemory.c:228 17 <DATE><TIME>|<HOST>|I| TPOutOfMemory|Upon requesting more memory than is available, psalloc shall call the psMemExhaustedCallback. 18 <DATE><TIME>|<HOST>|I|TPOutOfMemoryEx|Custom MemExhaustedCallback was invoked. 19 <DATE><TIME>|<HOST>|A| p_psAlloc|Failed to allocate 4294966295 bytes at tst_psMemory.c:<LINENO> 20 20 21 21 ---> TESTPOINT PASSED (psMemory{outOfMemory} | tst_psMemory.c) … … 27 27 \**********************************************************************************/ 28 28 29 <DATE> <TIME>|<HOST>|I|TPReallocOutOfM|Upon requesting more memory than is available, psRealloc shall call the psMemExhaustedCallback.30 <DATE> <TIME> |<HOST>|A| p_psRealloc|Failed to reallocate -1001 bytes at tst_psMemory.c:193 29 <DATE><TIME>|<HOST>|I|TPReallocOutOfM|Upon requesting more memory than is available, psRealloc shall call the psMemExhaustedCallback. 30 <DATE><TIME>|<HOST>|A| p_psRealloc|Failed to reallocate -1001 bytes at tst_psMemory.c:<LINENO> 31 31 32 32 ---> TESTPOINT PASSED (psMemory{reallocOutOfMemory} | tst_psMemory.c) … … 38 38 \**********************************************************************************/ 39 39 40 <DATE> <TIME>|<HOST>|I| TPrealloc|psRealloc shall increase/decrease memory buffer while preserving contents41 <DATE> <TIME>|<HOST>|I| TPrealloc|Expanding memory buffer.42 <DATE> <TIME>|<HOST>|I| TPrealloc|Shrinking memory buffer.40 <DATE><TIME>|<HOST>|I| TPrealloc|psRealloc shall increase/decrease memory buffer while preserving contents 41 <DATE><TIME>|<HOST>|I| TPrealloc|Expanding memory buffer. 42 <DATE><TIME>|<HOST>|I| TPrealloc|Shrinking memory buffer. 43 43 44 44 ---> TESTPOINT PASSED (psMemory{psRealloc} | tst_psMemory.c) … … 50 50 \**********************************************************************************/ 51 51 52 <DATE> <TIME>|<HOST>|I|TPallocCallback|call to psAlloc/psRealloc shall generate a callback if specified memory ID is allocated.53 <DATE> <TIME>|<HOST>|I|memAllocateCall|block 2 was (re)allocated54 <DATE> <TIME>|<HOST>|I|memAllocateCall|block 3 was (re)allocated55 <DATE> <TIME>|<HOST>|I|memFreeCallback|block 2 was freed56 <DATE> <TIME>|<HOST>|I|memFreeCallback|block 3 was freed57 <DATE> <TIME>|<HOST>|I|memAllocateCall|block 4 was (re)allocated58 <DATE> <TIME>|<HOST>|I|memAllocateCall|block 4 was (re)allocated59 <DATE> <TIME>|<HOST>|I|memFreeCallback|block 4 was freed52 <DATE><TIME>|<HOST>|I|TPallocCallback|call to psAlloc/psRealloc shall generate a callback if specified memory ID is allocated. 53 <DATE><TIME>|<HOST>|I|memAllocateCall|block 2 was (re)allocated 54 <DATE><TIME>|<HOST>|I|memAllocateCall|block 3 was (re)allocated 55 <DATE><TIME>|<HOST>|I|memFreeCallback|block 2 was freed 56 <DATE><TIME>|<HOST>|I|memFreeCallback|block 3 was freed 57 <DATE><TIME>|<HOST>|I|memAllocateCall|block 4 was (re)allocated 58 <DATE><TIME>|<HOST>|I|memAllocateCall|block 4 was (re)allocated 59 <DATE><TIME>|<HOST>|I|memFreeCallback|block 4 was freed 60 60 61 61 ---> TESTPOINT PASSED (psMemory{allocCallback} | tst_psMemory.c) … … 67 67 \**********************************************************************************/ 68 68 69 <DATE> <TIME>|<HOST>|I| TPcheckLeaks|psMemCheckLeaks shall return the number of blocks above an ID that are still allocated70 <DATE> <TIME>|<HOST>|I| TPcheckLeaks|following psMemCheckLeaks call should produce one instance.69 <DATE><TIME>|<HOST>|I| TPcheckLeaks|psMemCheckLeaks shall return the number of blocks above an ID that are still allocated 70 <DATE><TIME>|<HOST>|I| TPcheckLeaks|following psMemCheckLeaks call should produce one instance. 71 71 file:line ID 72 tst_psMemory.c: 378173 <DATE> <TIME>|<HOST>|I| TPcheckLeaks|Testing psMemCheckLeaks again with a different leak location74 <DATE> <TIME>|<HOST>|I| TPcheckLeaks|following psMemCheckLeaks call should produce one error.72 tst_psMemory.c:<LINENO> 1 73 <DATE><TIME>|<HOST>|I| TPcheckLeaks|Testing psMemCheckLeaks again with a different leak location 74 <DATE><TIME>|<HOST>|I| TPcheckLeaks|following psMemCheckLeaks call should produce one error. 75 75 file:line ID 76 tst_psMemory.c: 4081177 <DATE> <TIME>|<HOST>|I| TPcheckLeaks|Testing psMemCheckLeaks again with multiple leak locations.78 <DATE> <TIME>|<HOST>|I| TPcheckLeaks|following psMemCheckLeaks call should produce two errors.76 tst_psMemory.c:<LINENO> 11 77 <DATE><TIME>|<HOST>|I| TPcheckLeaks|Testing psMemCheckLeaks again with multiple leak locations. 78 <DATE><TIME>|<HOST>|I| TPcheckLeaks|following psMemCheckLeaks call should produce two errors. 79 79 file:line ID 80 tst_psMemory.c: 4361681 tst_psMemory.c: 4361480 tst_psMemory.c:<LINENO> 16 81 tst_psMemory.c:<LINENO> 14 82 82 83 83 ---> TESTPOINT PASSED (psMemory{checkLeaks} | tst_psMemory.c) … … 89 89 \**********************************************************************************/ 90 90 91 <DATE> <TIME>|<HOST>|I|TPmemCorruption|psMemCheckCorruption shall detect memory corruptions92 <DATE> <TIME>|<HOST>|I|TPmemCorruption|psMemCheckCorruption should output an error message and memProblemCallback callback should be called.93 <DATE> <TIME>|<HOST>|E|psMemCheckCorru|Memory Corruption: memory block 1 is corrupted (buffer underflow)94 <DATE> <TIME> |<HOST>|I|memProblemCallb|memory callback called for id 1 (psMemCheckCorruption:260).91 <DATE><TIME>|<HOST>|I|TPmemCorruption|psMemCheckCorruption shall detect memory corruptions 92 <DATE><TIME>|<HOST>|I|TPmemCorruption|psMemCheckCorruption should output an error message and memProblemCallback callback should be called. 93 <DATE><TIME>|<HOST>|E|psMemCheckCorru|Memory Corruption: memory block 1 is corrupted (buffer underflow) 94 <DATE><TIME>|<HOST>|I|memProblemCallb|memory callback called for id 1 (psMemCheckCorruption:<LINENO>). 95 95 96 96 ---> TESTPOINT PASSED (psMemory{psMemCorruption} | tst_psMemory.c) … … 102 102 \**********************************************************************************/ 103 103 104 <DATE> <TIME>|<HOST>|I|TPFreeReference|memory reference count shall be incrementable/decrementable105 <DATE> <TIME>|<HOST>|I|TPFreeReference|psFree shall be just decrement a multiple refererenced pointer.104 <DATE><TIME>|<HOST>|I|TPFreeReference|memory reference count shall be incrementable/decrementable 105 <DATE><TIME>|<HOST>|I|TPFreeReference|psFree shall be just decrement a multiple refererenced pointer. 106 106 107 107 ---> TESTPOINT PASSED (psMemory{freeReferencedMemory} | tst_psMemory.c) … … 113 113 \**********************************************************************************/ 114 114 115 <DATE> <TIME>|<HOST>|I| TPmultipleFree|Next should be an error about multiple freeing.116 <DATE> <TIME>|<HOST>|E| checkMemBlock|Memory Corruption: memory block 1 was freed but still used.117 <DATE> <TIME> |<HOST>|E|memProblemCallb|Block 1 allocated at tst_psMemory.c:548 freed more than once at tst_psMemory.c:553 118 <DATE> <TIME> |<HOST>|A|memProblemCallb|Detected a problem in the memory system at tst_psMemory.c:553 115 <DATE><TIME>|<HOST>|I| TPmultipleFree|Next should be an error about multiple freeing. 116 <DATE><TIME>|<HOST>|E| checkMemBlock|Memory Corruption: memory block 1 was freed but still used. 117 <DATE><TIME>|<HOST>|E|memProblemCallb|Block 1 allocated at tst_psMemory.c:<LINENO> freed more than once at tst_psMemory.c:<LINENO> 118 <DATE><TIME>|<HOST>|A|memProblemCallb|Detected a problem in the memory system at tst_psMemory.c:<LINENO> 119 119 120 120 ---> TESTPOINT PASSED (psMemory{multipleFree} | tst_psMemory.c) -
trunk/psLib/test/sysUtils/verified/tst_psStringCopy.stderr
r1198 r1404 50 50 \**********************************************************************************/ 51 51 52 <DATE> <TIME>|<HOST>|E| psString.c|psStringNCopy with negative count specified -552 <DATE><TIME>|<HOST>|E| psString.c|psStringNCopy with negative count specified -5 53 53 54 54 ---> TESTPOINT PASSED (psStringNCopy{Copy string with negative size} | tst_psStringCopy.c)
Note:
See TracChangeset
for help on using the changeset viewer.
