IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 19, 2007, 11:13:15 AM (18 years ago)
Author:
gusciora
Message:

Modified tests so that they all read config from the ../dataFiles directory,
then try the dataFiles directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/concepts/tap_pmConceptsUpdate.c

    r14882 r15650  
    8484    }
    8585
    86     bool rc = pmConfigFileRead(&cell->hdu->format, "../camera/data/camera0/format0.config", "Camera format 0");
     86    // First try to read data from ../dataFiles, then try dataFiles.
     87    bool rc = pmConfigFileRead(&cell->hdu->format, "../dataFiles/camera0/format0.config", "Camera format 0");
    8788    if (!rc) {
    88         diag("pmConfigFileRead() was unsuccessful (from generateSimpleCell())");
     89        rc = pmConfigFileRead(&cell->hdu->format, "dataFiles/camera0/format0.config", "Camera format 0");
     90        if (!rc) {
     91            diag("pmConfigFileRead() was unsuccessful (from generateSimpleCell())");
     92        }
    8993    }
    9094
     
    122126    psMetadataAddS32(chip->analysis, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM);
    123127    psMetadataAddS32(chip->concepts, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM);
    124 //    chip->hdu = pmHDUAlloc("chipExtName");
    125 //
    126 //    bool rc = pmConfigFileRead(&chip->hdu->format, "../camera/data/camera0/format0.config", "Camera format 0");
    127 //    if (!rc) {
    128 //        diag("pmConfigFileRead() was unsuccessful (from generateSimpleChip())");
    129 //    }
    130 //
    131128    psArrayRealloc(chip->cells, NUM_CELLS);
    132129    for (int i = 0 ; i < NUM_CELLS ; i++) {
     
    153150    psMetadataAddS32((psMetadata *) fpa->camera, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM);
    154151    psMetadataAddS32(fpa->concepts, PS_LIST_HEAD, MISC_NAME, 0, NULL, MISC_NUM);
    155 //    fpa->hdu = pmHDUAlloc("fpaExtName");
    156 //
    157 //    bool rc = pmConfigFileRead(&fpa->hdu->format, "../camera/data/camera0/format0.config", "Camera format 0");
    158 //    if (!rc) {
    159 //        diag("pmConfigFileRead() was unsuccessful (from generateSimpleFPA())");
    160 //    }
    161152
    162153    psArrayRealloc(fpa->chips, NUM_CHIPS);
Note: See TracChangeset for help on using the changeset viewer.