IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2007, 4:55:04 PM (19 years ago)
Author:
jhoblitt
Message:

ippdb 1.2.24

File:
1 edited

Legend:

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

    r13937 r14061  
    77    {
    88        psDB            *dbh;
    9         expTagCounterRow *object;
    10 
    11         dbh = psDBInit("localhost", "test", NULL, "test");
    12         if (!dbh) {
    13             exit(EXIT_FAILURE);
    14         }
    15 
    16         object = expTagCounterRowAlloc(64);
    17         if (!object) {
    18             exit(EXIT_FAILURE);
    19         }
    20 
    21         if (!expTagCounterInsertObject(dbh, object)) {
    22             exit(EXIT_FAILURE);
    23         }
    24 
    25         psFree(object);
    26         psDBCleanup(dbh);
    27     }
    28 
    29     {
    30         psDB            *dbh;
    319        summitExpRow    *object;
    3210
     
    10280        }
    10381
    104         object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string");
     82        object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -64);
    10583        if (!object) {
    10684            exit(EXIT_FAILURE);
     
    146124        }
    147125
    148         object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", "a string");
     126        object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -64, "a string");
    149127        if (!object) {
    150128            exit(EXIT_FAILURE);
     
    168146        }
    169147
    170         object = newExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string");
     148        object = newExpRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string");
    171149        if (!object) {
    172150            exit(EXIT_FAILURE);
     
    190168        }
    191169
    192         object = newImfileRowAlloc("a string", "a string", "a string", "a string");
     170        object = newImfileRowAlloc(-64, "a string", "a string");
    193171        if (!object) {
    194172            exit(EXIT_FAILURE);
     
    212190        }
    213191
    214         object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "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);
     192        object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "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);
    215193        if (!object) {
    216194            exit(EXIT_FAILURE);
     
    234212        }
    235213
    236         object = rawImfileRowAlloc("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", "0001-01-01T00:00:00Z", -16);
     214        object = rawImfileRowAlloc(-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", -16);
    237215        if (!object) {
    238216            exit(EXIT_FAILURE);
     
    256234        }
    257235
    258         object = guidePendingExpRowAlloc(-64, "a string", "a string");
     236        object = guidePendingExpRowAlloc(-64, -64, "a string");
    259237        if (!object) {
    260238            exit(EXIT_FAILURE);
     
    271249    {
    272250        psDB            *dbh;
    273         chipPendingExpRow *object;
    274 
    275         dbh = psDBInit("localhost", "test", NULL, "test");
    276         if (!dbh) {
    277             exit(EXIT_FAILURE);
    278         }
    279 
    280         object = chipPendingExpRowAlloc(-64, "a string", -64, "a string", "a string", "a string", "a string", "a string");
    281         if (!object) {
    282             exit(EXIT_FAILURE);
    283         }
    284 
    285         if (!chipPendingExpInsertObject(dbh, object)) {
    286             exit(EXIT_FAILURE);
    287         }
    288 
    289         psFree(object);
    290         psDBCleanup(dbh);
    291     }
    292 
    293     {
    294         psDB            *dbh;
    295         chipPendingImfileRow *object;
    296 
    297         dbh = psDBInit("localhost", "test", NULL, "test");
    298         if (!dbh) {
    299             exit(EXIT_FAILURE);
    300         }
    301 
    302         object = chipPendingImfileRowAlloc(-64, "a string", "a string");
    303         if (!object) {
    304             exit(EXIT_FAILURE);
    305         }
    306 
    307         if (!chipPendingImfileInsertObject(dbh, object)) {
    308             exit(EXIT_FAILURE);
    309         }
    310 
    311         psFree(object);
    312         psDBCleanup(dbh);
    313     }
    314 
    315     {
    316         psDB            *dbh;
    317         chipProcessedExpRow *object;
    318 
    319         dbh = psDBInit("localhost", "test", NULL, "test");
    320         if (!dbh) {
    321             exit(EXIT_FAILURE);
    322         }
    323 
    324         object = chipProcessedExpRowAlloc(-64, "a string", -64, "a string", "a string", "a string", "a string", "a string");
    325         if (!object) {
    326             exit(EXIT_FAILURE);
    327         }
    328 
    329         if (!chipProcessedExpInsertObject(dbh, object)) {
     251        chipRunRow      *object;
     252
     253        dbh = psDBInit("localhost", "test", NULL, "test");
     254        if (!dbh) {
     255            exit(EXIT_FAILURE);
     256        }
     257
     258        object = chipRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "a string", "a string");
     259        if (!object) {
     260            exit(EXIT_FAILURE);
     261        }
     262
     263        if (!chipRunInsertObject(dbh, object)) {
     264            exit(EXIT_FAILURE);
     265        }
     266
     267        psFree(object);
     268        psDBCleanup(dbh);
     269    }
     270
     271    {
     272        psDB            *dbh;
     273        chipInputImfileRow *object;
     274
     275        dbh = psDBInit("localhost", "test", NULL, "test");
     276        if (!dbh) {
     277            exit(EXIT_FAILURE);
     278        }
     279
     280        object = chipInputImfileRowAlloc(-64, -64, "a string");
     281        if (!object) {
     282            exit(EXIT_FAILURE);
     283        }
     284
     285        if (!chipInputImfileInsertObject(dbh, object)) {
     286            exit(EXIT_FAILURE);
     287        }
     288
     289        psFree(object);
     290        psDBCleanup(dbh);
     291    }
     292
     293    {
     294        psDB            *dbh;
     295        chipProcessedImfileRow *object;
     296
     297        dbh = psDBInit("localhost", "test", NULL, "test");
     298        if (!dbh) {
     299            exit(EXIT_FAILURE);
     300        }
     301
     302        object = chipProcessedImfileRowAlloc(-64, -64, "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, -32, -32, -32, -32, "a string", -16);
     303        if (!object) {
     304            exit(EXIT_FAILURE);
     305        }
     306
     307        if (!chipProcessedImfileInsertObject(dbh, object)) {
    330308            exit(EXIT_FAILURE);
    331309        }
     
    359337    {
    360338        psDB            *dbh;
    361         chipProcessedImfileRow *object;
    362 
    363         dbh = psDBInit("localhost", "test", NULL, "test");
    364         if (!dbh) {
    365             exit(EXIT_FAILURE);
    366         }
    367 
    368         object = chipProcessedImfileRowAlloc(-64, "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, -32, -32, -32, -32, "a string", -16);
    369         if (!object) {
    370             exit(EXIT_FAILURE);
    371         }
    372 
    373         if (!chipProcessedImfileInsertObject(dbh, object)) {
    374             exit(EXIT_FAILURE);
    375         }
    376 
    377         psFree(object);
    378         psDBCleanup(dbh);
    379     }
    380 
    381     {
    382         psDB            *dbh;
    383         camPendingExpRow *object;
    384 
    385         dbh = psDBInit("localhost", "test", NULL, "test");
    386         if (!dbh) {
    387             exit(EXIT_FAILURE);
    388         }
    389 
    390         object = camPendingExpRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string");
    391         if (!object) {
    392             exit(EXIT_FAILURE);
    393         }
    394 
    395         if (!camPendingExpInsertObject(dbh, object)) {
     339        camRunRow       *object;
     340
     341        dbh = psDBInit("localhost", "test", NULL, "test");
     342        if (!dbh) {
     343            exit(EXIT_FAILURE);
     344        }
     345
     346        object = camRunRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", "a string");
     347        if (!object) {
     348            exit(EXIT_FAILURE);
     349        }
     350
     351        if (!camRunInsertObject(dbh, object)) {
    396352            exit(EXIT_FAILURE);
    397353        }
     
    410366        }
    411367
    412         object = camProcessedExpRowAlloc(-64, -64, "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, -32, -32, -32, -32, "a string", -16);
     368        object = camProcessedExpRowAlloc(-64, -64, "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, -32, -32, -32, -32, "a string", -16);
    413369        if (!object) {
    414370            exit(EXIT_FAILURE);
     
    696652        }
    697653
    698         object = detInputExpRowAlloc(-64, -32, "a string", true);
     654        object = detInputExpRowAlloc(-64, -32, -64, true);
    699655        if (!object) {
    700656            exit(EXIT_FAILURE);
     
    718674        }
    719675
    720         object = detProcessedImfileRowAlloc(-64, "a string", "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, "a string", -16);
     676        object = detProcessedImfileRowAlloc(-64, -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, "a string", -16);
    721677        if (!object) {
    722678            exit(EXIT_FAILURE);
     
    740696        }
    741697
    742         object = detProcessedExpRowAlloc(-64, "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, "a string", -16);
     698        object = detProcessedExpRowAlloc(-64, -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, "a string", -16);
    743699        if (!object) {
    744700            exit(EXIT_FAILURE);
     
    850806        }
    851807
    852         object = detResidImfileRowAlloc(-64, -32, "a string", "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);
     808        object = detResidImfileRowAlloc(-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);
    853809        if (!object) {
    854810            exit(EXIT_FAILURE);
     
    872828        }
    873829
    874         object = detResidExpRowAlloc(-64, -32, "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", true, -16);
     830        object = detResidExpRowAlloc(-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);
    875831        if (!object) {
    876832            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.