IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 16, 2004, 8:53:35 AM (22 years ago)
Author:
harman
Message:

Added new time math functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psTime_04.c

    r2392 r2725  
    1414 *  @author  Ross Harman, MHPCC
    1515 *
    16  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    17  *  @date  $Date: 2004-11-22 20:52:45 $
     16 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2004-12-16 18:53:35 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2929    // Test A - Initialize time
    3030    printPositiveTestHeader(stdout, "psTime", "Test A - Initialize time");
    31     bool status = true;
    32     status = psTimeInit("../../config/psTime.config");
    33     psTimeFinalize();
     31    psLibInit(true, "../../config/psTime.config");
     32    psLibFinalize();
    3433    printFooter(stdout, "psTime", "Test A - Initialize time", true);
    3534
     
    3837    printNegativeTestHeader(stdout,"psTime", "Test B - Attempt to open non-existant time config file",
    3938                            "Failed to open file 'zzz'.  Check if it exists and it has the proper permissions.", 0);
    40     status = psTimeInit("zzz");
     39    psLibInit(true, "zzz");
    4140    printFooter(stdout, "psTime", "Test B - Attempt to open non-existant time config file", true);
    4241
     
    4544    printNegativeTestHeader(stdout,"psTime", "Test C - Attempt to open non-existant time data files",
    4645                            "Failed to open file 'zzz'.  Check if it exists and it has the proper permissions.", 0);
    47     status = psTimeInit("./test.psTime.config1");
    48     psTimeFinalize();
     46    psLibInit(true, "./test.psTime.config1");
     47    psLibFinalize();
    4948    printFooter(stdout, "psTime", "Test C - Attempt to open non-existant time data files", true);
    5049
     
    5352    printNegativeTestHeader(stdout,"psTime", "Test D - Attempt to read incorrect number of files",
    5453                            "Incorrect number of table files entered. Found: 3. Expected: 4.", 0);
    55     status = psTimeInit("./test.psTime.config2");
    56     psTimeFinalize();
     54    psLibInit(true, "./test.psTime.config2");
     55    psLibFinalize();
    5756    printFooter(stdout, "psTime", "Test D - Attempt to read incorrect number of files", true);
    5857
     
    6160    printNegativeTestHeader(stdout,"psTime", "Test E - Attempt to read incorrect number of from values",
    6261                            "Incorrect vector size. Size: 3, Expected 4.", 0);
    63     status = psTimeInit("./test.psTime.config3");
    64     psTimeFinalize();
     62    psLibInit(true, "./test.psTime.config3");
     63    psLibFinalize();
    6564    printFooter(stdout, "psTime", "Test E - Attempt to read incorrect number of from values", true);
    6665
     
    6968    printNegativeTestHeader(stdout,"psTime", "Test F - Attempt to read data file with typo in number",
    7069                            "Unable to parse string, number on line 16.", 0);
    71     status = psTimeInit("./test.psTime.config4");
    72     psTimeFinalize();
     70    psLibInit(true, "./test.psTime.config4");
     71    psLibFinalize();
    7372    printFooter(stdout, "psTime", "Test F - Attempt to read data file with typo in number", true);
    7473
     
    7675    // Test G - Free data
    7776    printPositiveTestHeader(stdout, "psTime", "Test G - Free data");
    78     psTimeFinalize();
     77    psLibFinalize();
    7978    if( psMemCheckLeaks(0, NULL, stdout,false) != 0 ) {
    8079        psError(PS_ERR_UNKNOWN,true,"Memory leak detected.");
Note: See TracChangeset for help on using the changeset viewer.