IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2007, 5:58:26 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/metadatafromobject.c

    r11809 r11820  
    384384        bool            status;
    385385
    386         object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", -16);
     386        object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", 32.32, -16);
    387387        if (!object) {
    388388            exit(EXIT_FAILURE);
     
    479479            exit(EXIT_FAILURE);
    480480        }
     481        if (!psMetadataLookupF32(&status, md, "solang") == 32.32) {
     482            psFree(md);
     483            exit(EXIT_FAILURE);
     484        }
    481485            psFree(md);
    482486            exit(EXIT_FAILURE);
     
    989993        bool            status;
    990994
    991         object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z");
     995        object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32);
    992996        if (!object) {
    993997            exit(EXIT_FAILURE);
     
    10881092            exit(EXIT_FAILURE);
    10891093        }
     1094        if (!psMetadataLookupF32(&status, md, "solang_min") == 32.32) {
     1095            psFree(md);
     1096            exit(EXIT_FAILURE);
     1097        }
     1098        if (!psMetadataLookupF32(&status, md, "solang_max") == 32.32) {
     1099            psFree(md);
     1100            exit(EXIT_FAILURE);
     1101        }
     1102        if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) {
     1103            psFree(md);
     1104            exit(EXIT_FAILURE);
     1105        }
     1106        if (!psMetadataLookupS32(&status, md, "parent") == -32) {
     1107            psFree(md);
     1108            exit(EXIT_FAILURE);
     1109        }
    10901110
    10911111        psFree(md);
     
    18571877        bool            status;
    18581878
    1859         object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", -32, "a string", true);
     1879        object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", true);
    18601880        if (!object) {
    18611881            exit(EXIT_FAILURE);
     
    18851905            exit(EXIT_FAILURE);
    18861906        }
    1887         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1888             psFree(md);
    1889             exit(EXIT_FAILURE);
    1890         }
    1891         if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
    1892             psFree(md);
    1893             exit(EXIT_FAILURE);
    1894         }
    18951907        if (strncmp(psMetadataLookupPtr(&status, md, "kind"), "a string", MAX_STRING_LENGTH)) {
    18961908            psFree(md);
     
    19431955        }
    19441956        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
     1957            psFree(md);
     1958            exit(EXIT_FAILURE);
     1959        }
     1960
     1961        psFree(md);
     1962    }
     1963
     1964    {
     1965        psMetadata      *md;
     1966        p6RunRow        *object;
     1967        bool            status;
     1968
     1969        object = p6RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z");
     1970        if (!object) {
     1971            exit(EXIT_FAILURE);
     1972        }
     1973
     1974        md = p6RunMetadataFromObject(object);
     1975        if (!md) {
     1976            exit(EXIT_FAILURE);
     1977        }
     1978
     1979        psFree(object);
     1980
     1981        if (!psMetadataLookupS32(&status, md, "p6_id") == -32) {
     1982            psFree(md);
     1983            exit(EXIT_FAILURE);
     1984        }
     1985        if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) {
     1986            psFree(md);
     1987            exit(EXIT_FAILURE);
     1988        }
     1989        if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) {
     1990            psFree(md);
     1991            exit(EXIT_FAILURE);
     1992        }
    19451993            psFree(md);
    19461994            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.