IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2025, 4:42:12 PM (14 months ago)
Author:
eugene
Message:

remove old deprecated tests, add some new ones

Location:
trunk/psLib/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test

    • Property svn:ignore
      •  

        old new  
        66*.da
        77gmon.out
         8test.00.jpg
         9test.01.jpg
         10test.02.jpg
         11test.03.jpg
         12test.04.jpg
         13test.05.jpg
         14test.06.jpg
         15test.07.jpg
         16test.08.jpg
         17test.09.jpg
         18test.10.jpg
         19test.11.jpg
         20test.12.jpg
         21test.im.fits
         22test.mk.fits
         23test.sm1.fits
         24test.sm2.fits
         25test.sm3.fits
         26test.sm4.fits
         27tmpImages
         28tst_psTrace02_OUT
  • trunk/psLib/test/imageops

    • Property svn:ignore
      •  

        old new  
        3838tap_psImageMapFit
        3939tap_psImageMapFit2
         40tap_psImageCovariance
         41tap_psImageSmoothMask_Threaded
         42test-suite.log
  • trunk/psLib/test/imageops/tap_psImageGeomManip.c

    r21169 r42822  
    528528
    529529        psImage *in;
    530         psImage *out;
    531         psImage *out2;
    532530        psS32 rows = 64;
    533531        psS32 cols = 64;
     
    544542        // Verify the returned psImage structure pointer is NULL and program
    545543        // execution doesn't stop, if input parameter input is NULL.
    546         out2 = psImageRoll(NULL,NULL,0,0);
     544        psImage *out2 = psImageRoll(NULL,NULL,0,0);
    547545        if (out2 != NULL) {
    548546            psError(PS_ERR_UNKNOWN, true,"psImageRoll did not return NULL though input image was NULL!?");
     
    551549
    552550        psFree(in);
    553         psFree(out);
    554 
    555         #define testRollType(DATATYPE) \
     551        psFree(out2);
     552
     553#define testRollType(DATATYPE) {                          \
    556554        in = psImageAlloc(rows1,cols1,PS_TYPE_##DATATYPE); \
    557555        \
     
    564562        \
    565563        errorFlag = false; \
    566         out = psImageRoll(NULL,in,rows1/4,cols1/4); \
     564        psImage *out = psImageRoll(NULL,in,rows1/4,cols1/4);    \
    567565        for (psS32 row=0;row<rows1;row++) { \
    568566            ps##DATATYPE *inRow = in->data.DATATYPE[(row+rows1/4)%rows1]; \
     
    579577        psFree(in); \
    580578        psFree(out); \
    581         ok(!errorFlag, "psImageRoll() produced the correct data values");
     579        ok(!errorFlag, "psImageRoll() produced the correct data values"); }
    582580
    583581        testRollType(U8);
     
    636634        system("mkdir temp");
    637635        psS32 index = 0;
    638         psBool fail = false;
    639636        psF32 radianRot;
    640637
     
    711708                diag("verified psF32 image failed to be read (%d deg. rotation)", rot);
    712709                errorFlag = true;
    713                 fail = true;
    714710            } else {
    715711                if(fTruth->numRows != fOut->numRows || fTruth->numCols != fOut->numCols) {
     
    788784                     "(%d deg. rotation) BILINEAR",rot);
    789785                errorFlag = true;
    790                 fail = true;
    791786            } else {
    792787                if (sBiTruth->numRows != sBiOut->numRows ||
Note: See TracChangeset for help on using the changeset viewer.