IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2007, 4:42:05 PM (19 years ago)
Author:
jhoblitt
Message:

update

File:
1 edited

Legend:

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

    r15343 r15420  
    1313        }
    1414
    15         if (!pzDataStoreInsert(dbh, "a string", "a string", "a string")) {
    16             exit(EXIT_FAILURE);
    17         }
    18 
    19         psDBCleanup(dbh);
    20     }
    21 
    22     {
    23         psDB            *dbh;
    24 
    25         dbh = psDBInit("localhost", "test", NULL, "test");
    26         if (!dbh) {
    27             exit(EXIT_FAILURE);
    28         }
    29 
    3015        if (!summitExpInsert(dbh, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", -32)) {
    3116            exit(EXIT_FAILURE);
     
    7358        }
    7459
    75         if (!pzPendingImfileInsert(dbh, "a string", "a string", "a string", "a string", "a string")) {
     60        if (!pzPendingImfileInsert(dbh, "a string", "a string", "a string", "a string", "a string", -64)) {
    7661            exit(EXIT_FAILURE);
    7762        }
     
    10388        }
    10489
    105         if (!pzDoneImfileInsert(dbh, "a string", "a string", "a string", "a string", "a string", "a string")) {
    106             exit(EXIT_FAILURE);
    107         }
    108 
    109         psDBCleanup(dbh);
    110     }
    111 
    112     {
    113         psDB            *dbh;
    114 
    115         dbh = psDBInit("localhost", "test", NULL, "test");
    116         if (!dbh) {
    117             exit(EXIT_FAILURE);
    118         }
    119 
    120         if (!newExpInsert(dbh, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string")) {
     90        if (!pzDoneImfileInsert(dbh, "a string", "a string", "a string", "a string", "a string", -64, "a string")) {
     91            exit(EXIT_FAILURE);
     92        }
     93
     94        psDBCleanup(dbh);
     95    }
     96
     97    {
     98        psDB            *dbh;
     99
     100        dbh = psDBInit("localhost", "test", NULL, "test");
     101        if (!dbh) {
     102            exit(EXIT_FAILURE);
     103        }
     104
     105        if (!newExpInsert(dbh, -64, "a string", "a string", "a string", "a string", -32, "a string", "a string")) {
    121106            exit(EXIT_FAILURE);
    122107        }
     
    148133        }
    149134
    150         if (!rawExpInsert(dbh, -64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16)) {
     135        if (!rawExpInsert(dbh, -64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", -32, "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16)) {
    151136            exit(EXIT_FAILURE);
    152137        }
     
    193178        }
    194179
    195         if (!chipRunInsert(dbh, -64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string")) {
     180        if (!chipRunInsert(dbh, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string")) {
     181            exit(EXIT_FAILURE);
     182        }
     183
     184        psDBCleanup(dbh);
     185    }
     186
     187    {
     188        psDB            *dbh;
     189
     190        dbh = psDBInit("localhost", "test", NULL, "test");
     191        if (!dbh) {
     192            exit(EXIT_FAILURE);
     193        }
     194
     195        if (!chipInputImfileInsert(dbh, -64, -64, "a string")) {
    196196            exit(EXIT_FAILURE);
    197197        }
     
    328328        }
    329329
    330         if (!warpSkyfileInsert(dbh, -64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, -16)) {
     330        if (!warpSkyfileInsert(dbh, -64, "a string", "a string", "a string", "a string", 64.64, 64.64)) {
    331331            exit(EXIT_FAILURE);
    332332        }
     
    358358        }
    359359
    360         if (!diffInputSkyfileInsert(dbh, -64, true, -64, -64, "a string", "a string", "a string")) {
    361             exit(EXIT_FAILURE);
    362         }
    363 
    364         psDBCleanup(dbh);
    365     }
    366 
    367     {
    368         psDB            *dbh;
    369 
    370         dbh = psDBInit("localhost", "test", NULL, "test");
    371         if (!dbh) {
    372             exit(EXIT_FAILURE);
    373         }
    374 
    375         if (!diffSkyfileInsert(dbh, -64, "a string", "a string", 64.64, 64.64, -16)) {
     360        if (!diffInputSkyfileInsert(dbh, -64, -64, "a string", "a string", "a string", true)) {
     361            exit(EXIT_FAILURE);
     362        }
     363
     364        psDBCleanup(dbh);
     365    }
     366
     367    {
     368        psDB            *dbh;
     369
     370        dbh = psDBInit("localhost", "test", NULL, "test");
     371        if (!dbh) {
     372            exit(EXIT_FAILURE);
     373        }
     374
     375        if (!diffSkyfileInsert(dbh, -64, "a string", "a string", 64.64, 64.64)) {
    376376            exit(EXIT_FAILURE);
    377377        }
     
    418418        }
    419419
    420         if (!stackSumSkyfileInsert(dbh, -64, "a string", "a string", 64.64, 64.64, -16)) {
     420        if (!stackSumSkyfileInsert(dbh, -64, "a string", "a string", 64.64, 64.64)) {
    421421            exit(EXIT_FAILURE);
    422422        }
     
    553553        }
    554554
    555         if (!detResidImfileInsert(dbh, -64, -32, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16)) {
    556             exit(EXIT_FAILURE);
    557         }
    558 
    559         psDBCleanup(dbh);
    560     }
    561 
    562     {
    563         psDB            *dbh;
    564 
    565         dbh = psDBInit("localhost", "test", NULL, "test");
    566         if (!dbh) {
    567             exit(EXIT_FAILURE);
    568         }
    569 
    570         if (!detResidExpInsert(dbh, -64, -32, -64, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", true, -16)) {
     555        if (!detResidImfileInsert(dbh, -64, -32, -64, "a string", "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16)) {
     556            exit(EXIT_FAILURE);
     557        }
     558
     559        psDBCleanup(dbh);
     560    }
     561
     562    {
     563        psDB            *dbh;
     564
     565        dbh = psDBInit("localhost", "test", NULL, "test");
     566        if (!dbh) {
     567            exit(EXIT_FAILURE);
     568        }
     569
     570        if (!detResidExpInsert(dbh, -64, -32, -64, "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", true, -16)) {
    571571            exit(EXIT_FAILURE);
    572572        }
     
    584584
    585585        if (!detRunSummaryInsert(dbh, -64, -32, 64.64, 64.64, 64.64, true, -16)) {
    586             exit(EXIT_FAILURE);
    587         }
    588 
    589         psDBCleanup(dbh);
    590     }
    591 
    592     {
    593         psDB            *dbh;
    594 
    595         dbh = psDBInit("localhost", "test", NULL, "test");
    596         if (!dbh) {
    597             exit(EXIT_FAILURE);
    598         }
    599 
    600         if (!detRegisteredImfileInsert(dbh, -64, -32, "a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16)) {
    601             exit(EXIT_FAILURE);
    602         }
    603 
    604         psDBCleanup(dbh);
    605     }
    606 
    607     {
    608         psDB            *dbh;
    609 
    610         dbh = psDBInit("localhost", "test", NULL, "test");
    611         if (!dbh) {
    612             exit(EXIT_FAILURE);
    613         }
    614 
    615         if (!detCorrectedExpInsert(dbh, -64, -64, "a string", -64, "a string", "a string", "a string", -16)) {
    616             exit(EXIT_FAILURE);
    617         }
    618 
    619         psDBCleanup(dbh);
    620     }
    621 
    622     {
    623         psDB            *dbh;
    624 
    625         dbh = psDBInit("localhost", "test", NULL, "test");
    626         if (!dbh) {
    627             exit(EXIT_FAILURE);
    628         }
    629 
    630         if (!detCorrectedImfileInsert(dbh, -64, -64, "a string", "a string", "a string", -16)) {
    631             exit(EXIT_FAILURE);
    632         }
    633 
    634         psDBCleanup(dbh);
    635     }
    636 
    637     {
    638         psDB            *dbh;
    639 
    640         dbh = psDBInit("localhost", "test", NULL, "test");
    641         if (!dbh) {
    642             exit(EXIT_FAILURE);
    643         }
    644 
    645         if (!magicRunInsert(dbh, -64, "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z")) {
    646             exit(EXIT_FAILURE);
    647         }
    648 
    649         psDBCleanup(dbh);
    650     }
    651 
    652     {
    653         psDB            *dbh;
    654 
    655         dbh = psDBInit("localhost", "test", NULL, "test");
    656         if (!dbh) {
    657             exit(EXIT_FAILURE);
    658         }
    659 
    660         if (!magicInputSkyfileInsert(dbh, -64, -64, "a string")) {
    661             exit(EXIT_FAILURE);
    662         }
    663 
    664         psDBCleanup(dbh);
    665     }
    666 
    667     {
    668         psDB            *dbh;
    669 
    670         dbh = psDBInit("localhost", "test", NULL, "test");
    671         if (!dbh) {
    672             exit(EXIT_FAILURE);
    673         }
    674 
    675         if (!magicTreeInsert(dbh, -64, "a string", "a string")) {
    676             exit(EXIT_FAILURE);
    677         }
    678 
    679         psDBCleanup(dbh);
    680     }
    681 
    682     {
    683         psDB            *dbh;
    684 
    685         dbh = psDBInit("localhost", "test", NULL, "test");
    686         if (!dbh) {
    687             exit(EXIT_FAILURE);
    688         }
    689 
    690         if (!magicNodeResultInsert(dbh, -64, "a string", "a string")) {
    691             exit(EXIT_FAILURE);
    692         }
    693 
    694         psDBCleanup(dbh);
    695     }
    696 
    697     {
    698         psDB            *dbh;
    699 
    700         dbh = psDBInit("localhost", "test", NULL, "test");
    701         if (!dbh) {
    702             exit(EXIT_FAILURE);
    703         }
    704 
    705         if (!magicMaskInsert(dbh, -64, "a string")) {
    706             exit(EXIT_FAILURE);
    707         }
    708 
    709         psDBCleanup(dbh);
    710     }
    711 
    712     {
    713         psDB            *dbh;
    714 
    715         dbh = psDBInit("localhost", "test", NULL, "test");
    716         if (!dbh) {
    717             exit(EXIT_FAILURE);
    718         }
    719 
    720         if (!magicSkyfileMaskInsert(dbh, -64, -64, "a string")) {
    721586            exit(EXIT_FAILURE);
    722587        }
Note: See TracChangeset for help on using the changeset viewer.