IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5303


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
Files:
5 edited

Legend:

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

    r5227 r5303  
    11#Makefile for imageops tests of psLib
    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)
    55
  • trunk/psLib/test/imageops/tst_psImageGeomManip.c

    r5057 r5303  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-09-15 21:22:22 $
     8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-10-13 00:38:53 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    496496
    497497    The following steps of the testpoint are done manually via inspection of
    498     temp/fOut.fits & temp/sOut.fits.
     498    fOut.fits & sOut.fits.
    499499
    500500        * Verify the returned psImage structure contains expected values, if
     
    538538    mkdir("temp",0777);
    539539    remove
    540         ("temp/out.fits");
     540        ("fOut.fits");
     541    remove
     542        ("sOut.fits");
     543    remove
     544        ("fBiOut.fits");
     545    remove
     546        ("sBiOut.fits");
    541547    psS32 index = 0;
    542548    psBool fail = false;
    543549    psF32 radianRot;
    544550
    545     psFits* fOutFile = psFitsAlloc("temp/fOut.fits");
    546     psFits* sOutFile = psFitsAlloc("temp/sOut.fits");
    547     psFits* fBiOutFile = psFitsAlloc("temp/fBiOut.fits");
    548     psFits* sBiOutFile = psFitsAlloc("temp/sBiOut.fits");
     551    psFits* fOutFile = psFitsAlloc("fOut.fits");
     552    psFits* sOutFile = psFitsAlloc("sOut.fits");
     553    psFits* fBiOutFile = psFitsAlloc("fBiOut.fits");
     554    psFits* sBiOutFile = psFitsAlloc("sBiOut.fits");
    549555    if (fOutFile == NULL ||sOutFile == NULL || fBiOutFile == NULL || sBiOutFile == NULL) {
    550556        psError(PS_ERR_UNKNOWN, true, "Can not create output files, so why continue!?");
     
    552558    }
    553559
    554     psFits* fTruthFile = psFitsAlloc("verified/fOut.fits");
    555     psFits* sTruthFile = psFitsAlloc("verified/sOut.fits");
    556     psFits* fBiTruthFile = psFitsAlloc("verified/fBiOut.fits");
    557     psFits* sBiTruthFile = psFitsAlloc("verified/sBiOut.fits");
     560    psFits* fTruthFile = psFitsAlloc(VERIFIED_DIR "/fOut.fits");
     561    psFits* sTruthFile = psFitsAlloc(VERIFIED_DIR "/sOut.fits");
     562    psFits* fBiTruthFile = psFitsAlloc(VERIFIED_DIR "/fBiOut.fits");
     563    psFits* sBiTruthFile = psFitsAlloc(VERIFIED_DIR "/sBiOut.fits");
    558564    if (fTruthFile == NULL ||sTruthFile == NULL || fBiTruthFile == NULL || sBiTruthFile == NULL) {
    559565        psError(PS_ERR_UNKNOWN, true, "Can not open truth files, so why continue!?");
  • 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.