IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2008, 5:11:49 PM (18 years ago)
Author:
jhoblitt
Message:

faketool merge

File:
1 edited

Legend:

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

    r17144 r18044  
    440440        }
    441441
     442        if (!fakeRunInsertFits(dbh, fits)) {
     443            exit(EXIT_FAILURE);
     444        }
     445
     446        if (!psFitsClose(fits)) {
     447            exit(EXIT_FAILURE);
     448        }
     449
     450        psDBCleanup(dbh);
     451    }
     452
     453    {
     454        psDB            *dbh;
     455        psFits          *fits;
     456
     457        dbh = psDBInit("localhost", "test", NULL, "test");
     458        if (!dbh) {
     459            exit(EXIT_FAILURE);
     460        }
     461
     462        // open a temp
     463        fits = psFitsOpen(TMP_FILENAME, "r");
     464        if (!fits) {
     465            exit(EXIT_FAILURE);
     466        }
     467
     468        if (!fakeProcessedImfileInsertFits(dbh, fits)) {
     469            exit(EXIT_FAILURE);
     470        }
     471
     472        if (!psFitsClose(fits)) {
     473            exit(EXIT_FAILURE);
     474        }
     475
     476        psDBCleanup(dbh);
     477    }
     478
     479    {
     480        psDB            *dbh;
     481        psFits          *fits;
     482
     483        dbh = psDBInit("localhost", "test", NULL, "test");
     484        if (!dbh) {
     485            exit(EXIT_FAILURE);
     486        }
     487
     488        // open a temp
     489        fits = psFitsOpen(TMP_FILENAME, "r");
     490        if (!fits) {
     491            exit(EXIT_FAILURE);
     492        }
     493
     494        if (!fakeMaskInsertFits(dbh, fits)) {
     495            exit(EXIT_FAILURE);
     496        }
     497
     498        if (!psFitsClose(fits)) {
     499            exit(EXIT_FAILURE);
     500        }
     501
     502        psDBCleanup(dbh);
     503    }
     504
     505    {
     506        psDB            *dbh;
     507        psFits          *fits;
     508
     509        dbh = psDBInit("localhost", "test", NULL, "test");
     510        if (!dbh) {
     511            exit(EXIT_FAILURE);
     512        }
     513
     514        // open a temp
     515        fits = psFitsOpen(TMP_FILENAME, "r");
     516        if (!fits) {
     517            exit(EXIT_FAILURE);
     518        }
     519
    442520        if (!warpRunInsertFits(dbh, fits)) {
    443521            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.