IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2010, 10:58:11 AM (16 years ago)
Author:
rhenders
Message:

Changes to accomodate new test batch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/src/ippToPsps.c

    r27684 r27845  
    1818#include "ippToPsps.h"
    1919
     20extern int ippToPsps_batchTest(IppToPsps *data);
    2021extern int ippToPsps_batchInit(IppToPsps *data);
    2122extern int ippToPsps_batchDetection(IppToPsps *data);
     
    126127typedef enum {
    127128
     129    PRODUCT_TEST,
    128130    PRODUCT_INIT,
    129131    PRODUCT_DETECTION,
     
    166168
    167169        if (!tmp) this->product = PRODUCT_UNDEFINED;
     170        else if (strcmp(tmp, "test") == 0) this->product = PRODUCT_TEST;
    168171        else if (strcmp(tmp, "init") == 0) this->product = PRODUCT_INIT;
    169172        else if (strcmp(tmp, "det") == 0) this->product = PRODUCT_DETECTION;
     
    199202        switch(this->product) {
    200203
     204            case PRODUCT_TEST:
     205                this->exitCode = ippToPsps_batchTest(this);
     206                break;
    201207            case PRODUCT_INIT:
    202208                this->exitCode = ippToPsps_batchInit(this);
     
    266272    }
    267273
     274    if (this->product == PRODUCT_TEST)
     275        psStringAppend(&this->configsDir, "/test");
    268276    if (this->product == PRODUCT_INIT)
    269277        psStringAppend(&this->configsDir, "/init");
Note: See TracChangeset for help on using the changeset viewer.