Index: /trunk/psLib/test/dataIO/Makefile
===================================================================
--- /trunk/psLib/test/dataIO/Makefile	(revision 2306)
+++ /trunk/psLib/test/dataIO/Makefile	(revision 2306)
@@ -0,0 +1,42 @@
+################################################################################
+##
+##  Makefile:   test/fileUtils
+##
+##  $Revision: 1.1 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-11-09 00:49:37 $
+##
+##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+##
+###############################################################################
+
+ifndef prefix
+    export prefix=$(shell cd ../..;pwd)
+endif
+
+include ../../src/Makefile.Globals
+
+CFLAGS := -I../../include $(CFLAGS)
+LDFLAGS := -L../../lib -lpslib -lpstest $(LDFLAGS)
+
+TARGET = tst_psLookupTable_01
+
+OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET)))
+
+all: $(TARGET)
+
+clean:
+	@echo "    Deleting executable and binary files for 'test/fileUtils'"
+	$(RM) $(OBJS)
+
+distclean: clean
+	$(RM) $(TARGET)
+
+install: $(testbindir) $(testbindir)/verified $(TARGET)
+	install verified/*.stderr verified/*.stdout $(testbindir)/verified
+
+$(testbindir):
+	mkdir -p $(testbindir)
+
+$(testbindir)/verified:
+	mkdir -p $(testbindir)/verified
+
Index: /trunk/psLib/test/dataIO/tst_psLookupTable_01.c
===================================================================
--- /trunk/psLib/test/dataIO/tst_psLookupTable_01.c	(revision 2306)
+++ /trunk/psLib/test/dataIO/tst_psLookupTable_01.c	(revision 2306)
@@ -0,0 +1,76 @@
+/** @file  tst_psLookupTable_01.c
+*
+*  @brief Test driver for psLookupTable functions
+*
+*  This test driver contains the following tests for psMetadata:
+*     Test A - Read 1st hdr from simple FITS file
+*     Test B - Read 2nd hdr from complex FITS file
+*     Test C - Read named hdr from complex FITS file
+*     Test D - Remove items with same name from all metadata
+*     Test E - Attempt to use null file descriptor
+*     Test F - Attempt to open nonexistant file
+*     Test G - Attempt to use two null inputs
+*     Test H - Attempt to use bad extNum
+*     Test I - Attempt to use bad extNameTest
+*     Test J - Free psMetadataData
+*
+*  @author  Ross Harman, MHPCC
+*
+*  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
+*  @date  $Date: 2004-11-09 00:49:37 $
+*
+*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+*
+*/
+
+#include "pslib.h"
+#include "psTest.h"
+#include <string.h>
+
+
+
+int main(int argc, char* argv[])
+{
+    psMaskType status1 = 0;
+    psF64 index1 = 2450905.0;
+    psF64 out1 = 0.0;
+    psLookupTable* table1 = NULL;
+
+    table1 = psLookupTableAlloc("../../data/tai_utc.dat", 0, 0);
+    table1 = psLookupTableRead(table1);
+    out1 = psLookupTableInterpolate(table1, index1, 0, &status1);
+    printf("%lf\n", out1);
+
+
+    // Test  - Free psMetadata
+    printPositiveTestHeader(stdout, "psMetadata", "Test J - Free psMetadata");
+    psFree(table1);
+    psMemCheckLeaks(0, NULL, stdout);
+    psMemCheckCorruption(0);
+    int nBad = psMemCheckCorruption(0);
+    if(nBad) {
+        printf("ERROR: Found %d bad memory blocks\n", nBad);
+    }
+    printFooter(stdout, "psMetadata", "Test J - Free psMetadata", true);
+
+
+    psU64 i = 0;
+    psF64 index2 = 2450905.0;
+    psVector *out2 = NULL;
+    psLookupTable* table2 = NULL;
+    psVector *stats2 = NULL;
+
+
+    table2 = psLookupTableAlloc("../../data/tai_utc.dat", 0, 0);
+    table2 = psLookupTableRead(table2);
+    stats2 = psVectorAlloc(table2->numCols, PS_TYPE_MASK);
+    out2 = psLookupTableInterpolateAll(table2, index2, stats2);
+
+    for(i=0; i<table2->numCols; i++) {
+        printf("%lf\n", out2->data.F64[i]);
+        printf("%d\n", stats2->data.U8[i]);
+    }
+
+
+    return 0;
+}
Index: /trunk/psLib/test/fileUtils/Makefile
===================================================================
--- /trunk/psLib/test/fileUtils/Makefile	(revision 2306)
+++ /trunk/psLib/test/fileUtils/Makefile	(revision 2306)
@@ -0,0 +1,42 @@
+################################################################################
+##
+##  Makefile:   test/fileUtils
+##
+##  $Revision: 1.1 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-11-09 00:49:37 $
+##
+##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+##
+###############################################################################
+
+ifndef prefix
+    export prefix=$(shell cd ../..;pwd)
+endif
+
+include ../../src/Makefile.Globals
+
+CFLAGS := -I../../include $(CFLAGS)
+LDFLAGS := -L../../lib -lpslib -lpstest $(LDFLAGS)
+
+TARGET = tst_psLookupTable_01
+
+OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET)))
+
+all: $(TARGET)
+
+clean:
+	@echo "    Deleting executable and binary files for 'test/fileUtils'"
+	$(RM) $(OBJS)
+
+distclean: clean
+	$(RM) $(TARGET)
+
+install: $(testbindir) $(testbindir)/verified $(TARGET)
+	install verified/*.stderr verified/*.stdout $(testbindir)/verified
+
+$(testbindir):
+	mkdir -p $(testbindir)
+
+$(testbindir)/verified:
+	mkdir -p $(testbindir)/verified
+
Index: /trunk/psLib/test/fileUtils/tst_psLookupTable_01.c
===================================================================
--- /trunk/psLib/test/fileUtils/tst_psLookupTable_01.c	(revision 2306)
+++ /trunk/psLib/test/fileUtils/tst_psLookupTable_01.c	(revision 2306)
@@ -0,0 +1,76 @@
+/** @file  tst_psLookupTable_01.c
+*
+*  @brief Test driver for psLookupTable functions
+*
+*  This test driver contains the following tests for psMetadata:
+*     Test A - Read 1st hdr from simple FITS file
+*     Test B - Read 2nd hdr from complex FITS file
+*     Test C - Read named hdr from complex FITS file
+*     Test D - Remove items with same name from all metadata
+*     Test E - Attempt to use null file descriptor
+*     Test F - Attempt to open nonexistant file
+*     Test G - Attempt to use two null inputs
+*     Test H - Attempt to use bad extNum
+*     Test I - Attempt to use bad extNameTest
+*     Test J - Free psMetadataData
+*
+*  @author  Ross Harman, MHPCC
+*
+*  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
+*  @date  $Date: 2004-11-09 00:49:37 $
+*
+*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+*
+*/
+
+#include "pslib.h"
+#include "psTest.h"
+#include <string.h>
+
+
+
+int main(int argc, char* argv[])
+{
+    psMaskType status1 = 0;
+    psF64 index1 = 2450905.0;
+    psF64 out1 = 0.0;
+    psLookupTable* table1 = NULL;
+
+    table1 = psLookupTableAlloc("../../data/tai_utc.dat", 0, 0);
+    table1 = psLookupTableRead(table1);
+    out1 = psLookupTableInterpolate(table1, index1, 0, &status1);
+    printf("%lf\n", out1);
+
+
+    // Test  - Free psMetadata
+    printPositiveTestHeader(stdout, "psMetadata", "Test J - Free psMetadata");
+    psFree(table1);
+    psMemCheckLeaks(0, NULL, stdout);
+    psMemCheckCorruption(0);
+    int nBad = psMemCheckCorruption(0);
+    if(nBad) {
+        printf("ERROR: Found %d bad memory blocks\n", nBad);
+    }
+    printFooter(stdout, "psMetadata", "Test J - Free psMetadata", true);
+
+
+    psU64 i = 0;
+    psF64 index2 = 2450905.0;
+    psVector *out2 = NULL;
+    psLookupTable* table2 = NULL;
+    psVector *stats2 = NULL;
+
+
+    table2 = psLookupTableAlloc("../../data/tai_utc.dat", 0, 0);
+    table2 = psLookupTableRead(table2);
+    stats2 = psVectorAlloc(table2->numCols, PS_TYPE_MASK);
+    out2 = psLookupTableInterpolateAll(table2, index2, stats2);
+
+    for(i=0; i<table2->numCols; i++) {
+        printf("%lf\n", out2->data.F64[i]);
+        printf("%d\n", stats2->data.U8[i]);
+    }
+
+
+    return 0;
+}
