IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2004, 1:04:35 PM (22 years ago)
Author:
gusciora
Message:

This is a fairly large checkin. I had been sitting on a lot of test code
that was not quite in sync with the current test harness. I modified it
somewhat so it mostly works with the test harness, though there are still
problems with the printFooter() function not having a status for "status
unknown". Also, the runTest is not correctly parsing my date strings in
psLogMsg calls. Also, I added an individual entry for each test in the
Makefile in the test directory. I did this because the generic rules were
failing, and I did not want to break the tests for those people who were
successfully using the generic rules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sysUtils/Makefile

    r557 r560  
    33##  Makefile:   test/sysUtils
    44##
    5 ##  $Revision: 1.5 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-04-30 06:19:57 $
     5##  $Revision: 1.6 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-05-01 23:04:35 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1010###############################################################################
    1111
     12###############################################################################
     13#    Note: I added specific entries for the psTrace files.  The reason I did
     14#    this was because the generic rules were failing on the existing test
     15#    code (and hence, on my tst_psTraceXX.c code as well).  I am tempted to
     16#    fix the generic rules, but that might break existing codes.  When this
     17#    problem is resolved, I'll remove the specific rules for psTrace.  -GLG
     18#    Also, psLogMsg.
     19#    Also, psHash.
     20###############################################################################
    1221include ../../src/Makefile.Globals
    1322
     
    2029         atst_psAbort_02    \
    2130         atst_psAbort_03    \
    22          tst_psTrace00      \
    23          tst_psTrace01      \
    24          tst_psTrace02      \
    25          tst_psTrace03      \
    2631         tst_psStringCopy
     32TARGET_TRACE = tst_psTrace00 tst_psTrace01 tst_psTrace02 tst_psTrace03 \
     33               tst_psTrace04
     34TARGET_LOGMSG = tst_psLogMsg00 tst_psLogMsg01 tst_psLogMsg02 tst_psLogMsg03
     35TARGET_HASH = tst_psHash00 tst_psHash01 tst_psHash02 tst_psHash03 tst_psHash04
    2736
    28 all: $(TARGET)
     37all:            $(TARGET)
     38psTrace:        $(TARGET_TRACE)
     39psLogMsg:       $(TARGET_LOGMSG)
     40psHash: $(TARGET_HASH)
    2941
    3042tst_psError: tst_psError.o
     
    3749        @echo "    Deleting executable and binary files for 'test/sysUtils'"
    3850        $(RM) $(TARGET) *.o *.lint
     51
     52tst_psHash00:   tst_psHash00.c
     53        $(CC) tst_psHash00.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash00
     54
     55tst_psHash01:   tst_psHash01.c
     56        $(CC) tst_psHash01.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash01
     57
     58tst_psHash02:   tst_psHash02.c
     59        $(CC) tst_psHash02.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash02
     60
     61tst_psHash03:   tst_psHash03.c
     62        $(CC) tst_psHash03.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash03
     63
     64tst_psHash04:   tst_psHash04.c
     65        $(CC) tst_psHash04.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psHash04
     66
     67tst_psLogMsg00: tst_psLogMsg00.c
     68        $(CC) tst_psLogMsg00.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psLogMsg00
     69
     70tst_psLogMsg01: tst_psLogMsg01.c
     71        $(CC) tst_psLogMsg01.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psLogMsg01
     72
     73tst_psLogMsg02: tst_psLogMsg02.c
     74        $(CC) tst_psLogMsg02.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psLogMsg02
     75
     76tst_psLogMsg03: tst_psLogMsg03.c
     77        $(CC) tst_psLogMsg03.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psLogMsg03
    3978
    4079tst_psTrace00:  tst_psTrace00.c
     
    5089        $(CC) tst_psTrace03.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace03
    5190
     91tst_psTrace04:  tst_psTrace04.c
     92        $(CC) tst_psTrace04.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace04
     93
    5294%.o : %.c
    5395        $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $<
     
    60102
    61103distclean:
    62         rm DistCleanFiles
     104        rm -rf $(TARGET_TRACE) $(TARGET_LOGMSG) $(TARGET_HASH)
Note: See TracChangeset for help on using the changeset viewer.