IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 2, 2008, 10:49:57 AM (18 years ago)
Author:
gusciora
Message:

Modified file reads to look for dataFiles and then ../dataFiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/config/tap_pmConfigCommand.c

    r14881 r15986  
    55 * This code will test the pmConfigCommand() routine.
    66 *
    7  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-09-18 18:58:52 $
     7 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-01-02 20:49:09 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3737        str[0] = "ARGS:";
    3838        str[1] = "-site";
    39         str[2] = "data/SampleIPPConfig";
     39        str[2] = "../dataFiles/SampleIPPConfig";
    4040        psS32 argc = 3;
    4141        pmConfig *config = pmConfigRead(&argc, str, "RecipeName");
     42        if (!config) {
     43            str[2] = "dataFiles/SampleIPPConfig";
     44            config = pmConfigRead(&argc, str, "RecipeName");
     45        }
    4246        ok(config != NULL, "pmConfigRead() successful");
    4347        ok(!pmConfigDatabaseCommand(NULL, config), "pmConfigDatabaseCommand() returned NULL with NULL command input param");
     
    6569        str[0] = "ARGS:";
    6670        str[1] = "-site";
    67         str[2] = "data/SampleIPPConfig";
     71        str[2] = "../dataFiles/SampleIPPConfig";
    6872        psS32 argc = 3;
    6973        pmConfig *config = pmConfigRead(&argc, str, "RecipeName");
     74        if (!config) {
     75            str[2] = "dataFiles/SampleIPPConfig";
     76            config = pmConfigRead(&argc, str, "RecipeName");
     77        }
    7078        ok(config != NULL, "pmConfigRead() successful");
    7179        char *testCmd = "command";
     
    8290        str[0] = "ARGS:";
    8391        str[1] = "-site";
    84         str[2] = "data/SampleIPPConfig";
     92        str[2] = "../dataFiles/SampleIPPConfig";
    8593        psS32 argc = 3;
    8694        pmConfig *config = pmConfigRead(&argc, str, "RecipeName");
     95        if (!config) {
     96            str[2] = "dataFiles/SampleIPPConfig";
     97            config = pmConfigRead(&argc, str, "RecipeName");
     98        }
    8799        ok(config != NULL, "pmConfigRead() successful");
    88100        psString testCmd = psStringCopy("my command");
Note: See TracChangeset for help on using the changeset viewer.