IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2005, 2:38:58 PM (21 years ago)
Author:
desonia
Message:

changes to allow build outside of source area.

Location:
trunk/psLib/test/types
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/types/Makefile.am

    r4981 r5303  
    11#Makefile for types tests
    22#
    3 AM_CPPFLAGS = $(SRCINC) $(PSLIB_CFLAGS)
     3AM_CPPFLAGS = $(SRCINC) $(PSLIB_CFLAGS) -DVERIFIED_DIR=\"$(srcdir)/verified\"
    44AM_LDFLAGS = -L$(top_builddir)/src -lpslib $(PSLIB_LIBS)
    55AM_CFLAGS = -DXML_CONFIG_FILE="\"$(top_srcdir)/etc/pslib/psTime.xml\""
     6
    67
    78TESTS = \
  • trunk/psLib/test/types/tst_psLookupTable_01.c

    r4547 r5303  
    1212*  @author  Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    15 *  @date  $Date: 2005-07-13 02:47:01 $
     14*  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     15*  @date  $Date: 2005-10-13 00:38:56 $
    1616*
    1717*  Copyright 2004-5 Maui High Performance Computing Center, University of Hawaii
     
    3535const psS32 tableU8_size = 4;
    3636const char tableU8_format[] = "\%d \%d \%d \%ld \%d \%d \%d \%ld \%f \%lf";
    37 const char tableU8_filename[] = "verified/tableU8.dat";
     37const char tableU8_filename[] = VERIFIED_DIR "/tableU8.dat";
    3838const psS32 tableU8_indexCol = 0;
    3939const psS32 tableU8_index[] =
     
    8282const psS32 tableF32_size = 4;
    8383const psS32 tableF32_cols = 9;
    84 const char tableF32_filename[] = "verified/tableF32.dat";
     84const char tableF32_filename[] = VERIFIED_DIR "/tableF32.dat";
    8585const char tableF32_format[] = "\%f \%d \%d \%ld \%d \%d \%d \%ld \%d \%lf";
    8686const char tableF32_indexCol = 0;
     
    133133const psS32 table10_size      = 10;
    134134const char table10_format[] = "\%d \%d \%d \%ld \%d \%d \%d \%ld \%f \%lf";
    135 const char table10_filename[] = "verified/table10.dat";
     135const char table10_filename[] = VERIFIED_DIR "/table10.dat";
    136136const psS32 table10_indexCol = 0;
    137137const psS32  table10_index[]   =
     
    257257
    258258    // Read file and place into an array of vectors
    259     out = psVectorsReadFromFile("verified/tableF32.dat","\%f \%d \%d \%ld \%d \%d \%d \%ld \%*d \%lf");
     259    out = psVectorsReadFromFile(VERIFIED_DIR "/tableF32.dat","\%f \%d \%d \%ld \%d \%d \%d \%ld \%*d \%lf");
    260260    if(out == NULL) {
    261261        psError(PS_ERR_UNKNOWN,true,"Unable to read file into array of vectors");
     
    371371    // Attempt to read vectors from valid file with invalid format
    372372    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message for NULL format");
    373     out = psVectorsReadFromFile("verified/tableF32.dat",NULL);
     373    out = psVectorsReadFromFile(VERIFIED_DIR "/tableF32.dat",NULL);
    374374    if(out != NULL) {
    375375        psError(PS_ERR_UNKNOWN,true,"Did not return NULL with NULL format string");
     
    387387    // Attempt to read vectors from valid file with invalid format specifiers
    388388    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message for invalid format specifier");
    389     out = psVectorsReadFromFile("verified/tableF32.data","\%f \%c \%d");
     389    out = psVectorsReadFromFile(VERIFIED_DIR "/tableF32.data","\%f \%c \%d");
    390390    if(out != NULL) {
    391391        psError(PS_ERR_UNKNOWN,true,"Did not return NULL with invalid format specifier");
     
    395395    // Attempt to read vectors from non-existant file
    396396    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message for non-existant file");
    397     out = psVectorsReadFromFile("verified/nonexistant.dat","\%f \%d \%d");
     397    out = psVectorsReadFromFile("nonexistant.dat","\%f \%d \%d");
    398398    if(out != NULL) {
    399399        psError(PS_ERR_UNKNOWN,true,"Did not return NULL with non-existant file");
     
    403403    // Attempt to read vectors from file with errors in the numbers
    404404    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message for error is file");
    405     out = psVectorsReadFromFile("verified/tableF32_err.dat","\%f \%d \%d \%ld \%d \%d \%d \%ld \%d \%lf");
     405    out = psVectorsReadFromFile(VERIFIED_DIR "/tableF32_err.dat","\%f \%d \%d \%ld \%d \%d \%d \%ld \%d \%lf");
    406406    if(out != NULL) {
    407407        psError(PS_ERR_UNKNOWN,true,"Did not return NULL with file with errors");
  • trunk/psLib/test/types/verified/tst_psLookupTable_01.stderr

    r4589 r5303  
    3939    Following should generate error message for non-existant file
    4040<DATE><TIME>|<HOST>|E|psVectorsReadFromFile (FILE:LINENO)
    41     Failed to open file verified/nonexistant.dat.
     41    Failed to open file nonexistant.dat.
    4242<DATE><TIME>|<HOST>|I|testVectorsReadFromFile
    4343    Following should generate error message for error is file
Note: See TracChangeset for help on using the changeset viewer.