IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9423 for trunk/ippdb/tests


Ignore:
Timestamp:
Oct 9, 2006, 1:43:03 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.49

Location:
trunk/ippdb/tests
Files:
3 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/Makefile.am

    r7461 r9423  
    5151    droptable \
    5252    insert \
    53     pop \
    5453    insertobject \
    55     popobject \
    5654    insertfits \
    57     popfits \
    5855    selectrowsfits \
    5956    metadatafromobject \
  • trunk/ippdb/tests/alloc.c

    r9307 r9423  
    10221022        detRunRow       *object;
    10231023
    1024         object = detRunRowAlloc(-32, "a string", "a string"    );
    1025 
    1026         if (!object) {
    1027             exit(EXIT_FAILURE);
    1028         }
    1029 
     1024        object = detRunRowAlloc(-32, -32, "a string", "a string"    );
     1025
     1026        if (!object) {
     1027            exit(EXIT_FAILURE);
     1028        }
     1029
     1030        if (!object->det_id == -32) {
     1031            psFree(object);
     1032            exit(EXIT_FAILURE);
     1033        }
    10301034        if (!object->iteration == -32) {
    10311035            psFree(object);
  • trunk/ippdb/tests/insert.c

    r9307 r9423  
    358358        }
    359359
    360         if (!detRunInsert(dbh, -32, "a string", "a string")) {
     360        if (!detRunInsert(dbh, -32, -32, "a string", "a string")) {
    361361            exit(EXIT_FAILURE);
    362362        }
  • trunk/ippdb/tests/insertobject.c

    r9307 r9423  
    520520        }
    521521
    522         object = detRunRowAlloc(-32, "a string", "a string");
     522        object = detRunRowAlloc(-32, -32, "a string", "a string");
    523523        if (!object) {
    524524            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r9307 r9423  
    12081208        bool            status;
    12091209
    1210         object = detRunRowAlloc(-32, "a string", "a string");
     1210        object = detRunRowAlloc(-32, -32, "a string", "a string");
    12111211        if (!object) {
    12121212            exit(EXIT_FAILURE);
     
    12201220        psFree(object);
    12211221
     1222        if (!psMetadataLookupS32(&status, md, "det_id") == -32) {
     1223            psFree(md);
     1224            exit(EXIT_FAILURE);
     1225        }
    12221226        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
    12231227            psFree(md);
  • trunk/ippdb/tests/objectfrommetadata.c

    r9307 r9423  
    18511851
    18521852        md = psMetadataAlloc();
     1853        if (!psMetadataAddS32(md, PS_LIST_TAIL, "det_id", 0, NULL, -32)) {
     1854            psFree(md);
     1855            exit(EXIT_FAILURE);
     1856        }
    18531857        if (!psMetadataAddS32(md, PS_LIST_TAIL, "iteration", 0, NULL, -32)) {
    18541858            psFree(md);
     
    18721876        psFree(md);
    18731877
     1878        if (!object->det_id == -32) {
     1879            psFree(object);
     1880            exit(EXIT_FAILURE);
     1881        }
    18741882        if (!object->iteration == -32) {
    18751883            psFree(object);
  • trunk/ippdb/tests/testsuite.at

    r7461 r9423  
    6060
    6161###
    62 AT_SETUP([Pop()])
    63 AT_KEYWORDS([Pop])
    64 
    65 AT_CHECK([dbsetup])
    66 # run insert so there is a row in the table
    67 AT_CHECK([insert])
    68 AT_CHECK([pop])
    69 AT_CHECK([dbcleanup])
    70 
    71 AT_CLEANUP
    72 
    73 ###
    7462AT_SETUP([InsertObject()])
    7563AT_KEYWORDS([InsertObject])
     
    7765AT_CHECK([dbsetup])
    7866AT_CHECK([insertobject])
    79 AT_CHECK([dbcleanup])
    80 
    81 AT_CLEANUP
    82 
    83 ###
    84 AT_SETUP([PopObject()])
    85 AT_KEYWORDS([PopObject])
    86 
    87 AT_CHECK([dbsetup])
    88 # run insert so there is a row in the table
    89 AT_CHECK([insert])
    90 AT_CHECK([popobject])
    9167AT_CHECK([dbcleanup])
    9268
     
    10177AT_CHECK([insert])
    10278# run popfis so there is afits file to read
    103 AT_CHECK([popfits])
     79AT_CHECK([selectrowsfits])
    10480AT_CHECK([insertfits])
    105 AT_CHECK([dbcleanup])
    106 if [ test -f "blargh" ] ; then
    107     rm -f "blargh"
    108 fi
    109 
    110 AT_CLEANUP
    111 
    112 ###
    113 AT_SETUP([PopFits()])
    114 AT_KEYWORDS([PopFits])
    115 
    116 AT_CHECK([dbsetup])
    117 # run insert so there is a row in the table
    118 AT_CHECK([insert])
    119 AT_CHECK([popfits])
    12081AT_CHECK([dbcleanup])
    12182if [ test -f "blargh" ] ; then
Note: See TracChangeset for help on using the changeset viewer.