IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 27, 2005, 4:45:12 PM (21 years ago)
Author:
desonia
Message:

tweaked the logic in adding/allocating metadata items.

Location:
trunk/psLib/test/collections
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/collections/tst_psMetadataIO.c

    r3682 r3779  
    1414 *  @author  Robert DeSonia, MHPCC
    1515 *
    16  *  @version $Revision: 1.13 $  $Name: not supported by cvs2svn $
    17  *  @date  $Date: 2005-04-07 20:27:41 $
     16 *  @version $Revision: 1.14 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2005-04-28 02:45:12 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    121121    printPositiveTestHeader(stdout, "psMetadata", "Test B - Read config file with overwrite set false");
    122122    psMetadata *metadata2 = NULL;
    123     psS32 failedLines2 = 0;
     123    psU32 failedLines2 = 0;
    124124    metadata2 = psMetadataParseConfig(metadata2, &failedLines2, "test.config", false);
    125125    printf("Failed lines: %d Expected: 7 ", failedLines2);
     
    131131    printPositiveTestHeader(stdout, "psMetadata", "Test C - Read config file without auto-allocation of metadata");
    132132    psMetadata *metadata3 = psMetadataAlloc();
    133     psS32 failedLines3 = 0;
     133    psU32 failedLines3 = 0;
    134134    metadata3 = psMetadataParseConfig(metadata3, &failedLines3, "test.config", true);
    135135    printf("Failed lines: %d Expected: 6 ", failedLines3);
  • trunk/psLib/test/collections/tst_psMetadata_01.c

    r3682 r3779  
    1818*  @author  Ross Harman, MHPCC
    1919*
    20 *  @version $Revision: 1.24 $  $Name: not supported by cvs2svn $
    21 *  @date  $Date: 2005-04-07 20:27:41 $
     20*  @version $Revision: 1.25 $  $Name: not supported by cvs2svn $
     21*  @date  $Date: 2005-04-28 02:45:12 $
    2222*
    2323*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    126126    printFooter(stdout, "psMetadata", "Test A - Read 1st hdr from simple FITS file", true);
    127127
    128     printf("ID=%d\n",(int)psMemGetId());
    129 
    130128    // Test B - Read 2nd hdr from complex FITS file
    131129
     
    174172    printFooter(stdout, "psMetadata", "Test B - Read 2nd hdr from complex FITS file", true);
    175173
    176     printf("ID=%d\n",(int)psMemGetId());
    177 
    178174    // Test C - Read named hdr from complex FITS file
    179175    printPositiveTestHeader(stdout, "psMetadata", "Test C - Read named hdr from complex FITS file");
  • trunk/psLib/test/collections/verified/tst_psMetadataIO.stdout

    r3690 r3779  
    2626
    2727Contents of metadata table:
    28  Key Name:  comment  Key mdType: 0x0001000a Key Value:                  Key Comment:
     28 Key Name:  comment  Key mdType: 0x0001000a Key Value:                  Key Comment: List of Metadata Items
    2929    Key Name:  comment  Key mdType: 0x00010001 Key Value:            This  Key Comment:
    3030    Key Name:  comment  Key mdType: 0x00010001 Key Value:              is  Key Comment:
     
    7373
    7474Contents of metadata table:
    75  Key Name:  comment  Key mdType: 0x0001000a Key Value:                  Key Comment:
     75 Key Name:  comment  Key mdType: 0x0001000a Key Value:                  Key Comment: List of Metadata Items
    7676    Key Name:  comment  Key mdType: 0x00010001 Key Value:            This  Key Comment:
    7777    Key Name:  comment  Key mdType: 0x00010001 Key Value:              is  Key Comment:
     
    120120
    121121Contents of metadata table:
    122  Key Name:  comment  Key mdType: 0x0001000a Key Value:                  Key Comment:
     122 Key Name:  comment  Key mdType: 0x0001000a Key Value:                  Key Comment: List of Metadata Items
    123123    Key Name:  comment  Key mdType: 0x00010001 Key Value:            This  Key Comment:
    124124    Key Name:  comment  Key mdType: 0x00010001 Key Value:              is  Key Comment:
  • trunk/psLib/test/collections/verified/tst_psMetadata_01.stdout

    r3690 r3779  
    1919---> TESTPOINT PASSED (psMetadata{Test A - Read 1st hdr from simple FITS file} | tst_psMetadata_01.c)
    2020
    21 ID=34
    2221/***************************** TESTPOINT ******************************************\
    2322*             TestFile: tst_psMetadata_01.c                                        *
     
    4544 Key Name:   PCOUNT  Key mdType: 0x00000104  Key Value:               0  Key Comment: required keyword; must = 0
    4645 Key Name: XTENSION  Key mdType: 0x00010001  Key Value:      'IMAGE   '  Key Comment: IMAGE extension
    47  Key Name:   BITPIX  Key mdType: 0x0001000a  Key Value:                  Key Comment:
     46 Key Name:   BITPIX  Key mdType: 0x0001000a  Key Value:                  Key Comment: List of Metadata Items
    4847    Key Name:   BITPIX  Key mdType: 0x00000104  Key Value:             -64  Key Comment: number of bits per data pixel
    4948    Key Name:   BITPIX  Key mdType: 0x00000104  Key Value:             -64  Key Comment: number of bits per data pixel
    5049 Key Name:   GCOUNT  Key mdType: 0x00000104  Key Value:               1  Key Comment: required keyword; must = 1
    51  Key Name:  HISTORY  Key mdType: 0x0001000a  Key Value:                  Key Comment:
     50 Key Name:  HISTORY  Key mdType: 0x0001000a  Key Value:                  Key Comment: List of Metadata Items
    5251    Key Name:  HISTORY  Key mdType: 0x00010001  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T<DATE>
    5352    Key Name:  HISTORY  Key mdType: 0x00010001  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T<DATE>
     
    5857---> TESTPOINT PASSED (psMetadata{Test B - Read 2nd hdr from complex FITS file} | tst_psMetadata_01.c)
    5958
    60 ID=138
    6159/***************************** TESTPOINT ******************************************\
    6260*             TestFile: tst_psMetadata_01.c                                        *
     
    8381 Key Name:   GCOUNT  Key mdType: 0x00000104  Key Value:               1  Key Comment: required keyword; must = 1
    8482 Key Name:   BITPIX  Key mdType: 0x00000104  Key Value:             -64  Key Comment: number of bits per data pixel
    85  Key Name:  HISTORY  Key mdType: 0x0001000a  Key Value:                  Key Comment:
     83 Key Name:  HISTORY  Key mdType: 0x0001000a  Key Value:                  Key Comment: List of Metadata Items
    8684    Key Name:  HISTORY  Key mdType: 0x00010001  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T<DATE>
    8785    Key Name:  HISTORY  Key mdType: 0x00010001  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T<DATE>
Note: See TracChangeset for help on using the changeset viewer.