Index: trunk/psLib/test/astronomy/Makefile
===================================================================
--- trunk/psLib/test/astronomy/Makefile	(revision 2429)
+++ trunk/psLib/test/astronomy/Makefile	(revision 2521)
@@ -3,6 +3,6 @@
 ##  Makefile:   test/astronomy
 ##
-##  $Revision: 1.22 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-11-09 01:10:15 $
+##  $Revision: 1.23 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-11-30 00:28:36 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -16,6 +16,6 @@
 include ../../src/Makefile.Globals
 
-CFLAGS := -I../../include $(CFLAGS)
-LDFLAGS := -L../../lib -lpslib -lpstest $(LDFLAGS)
+CFLAGS := -I../../include -I/usr/include/libxml $(CFLAGS)
+LDFLAGS := -L../../lib -lpslib -lpstest -lxml2 $(LDFLAGS)
 
 TARGET = tst_psTime_01 \
@@ -30,4 +30,5 @@
          tst_psMetadata_05 \
          tst_psMetadata_06 \
+         tst_psMetadata_07 \
          tst_psCoord \
          tst_psAstrometry \
Index: trunk/psLib/test/astronomy/tst_psMetadata_07.c
===================================================================
--- trunk/psLib/test/astronomy/tst_psMetadata_07.c	(revision 2521)
+++ trunk/psLib/test/astronomy/tst_psMetadata_07.c	(revision 2521)
@@ -0,0 +1,45 @@
+/** @file  tst_psMetadata_07.c
+*
+*  @brief Test driver for psMetadataIO functions
+*
+*  This test driver contains the following tests for psMetadata:
+*     Test A - Read an XML config file
+*     Test B - Free data
+*
+*  @author  Ross Harman, MHPCC
+*
+*  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
+*  @date  $Date: 2004-11-30 00:29:06 $
+*
+*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+*
+*/
+#include "pslib.h"
+#include "psTest.h"
+
+
+int main(int argc, char* argv[])
+{
+    // Test A - Read an XML config file
+    printPositiveTestHeader(stdout, "psMetadata", "Test A - Read an XML config file");
+    int res = 0;
+    psMetadata *md = NULL;
+    res = psMetadataParseConfigXml(&md, "../../config/psTime.xml");
+    if (res != 0) {
+        printf("psMetadataParseConfigXml returned error %d\n", res);
+    }
+    psFree(md);
+    printFooter(stdout, "psMetadata", "Test A - Read an XML config file", true);
+
+
+    // Test B - Free data
+    printPositiveTestHeader(stdout, "psMetadata", "Test B - Free data");
+    psMemCheckLeaks(0, NULL, stdout);
+    psS32 nBad = psMemCheckCorruption(0);
+    if(nBad) {
+        printf("ERROR: Found %d bad memory blocks\n", nBad);
+    }
+    printFooter(stdout, "psMetadata", "Test B - Free data", true);
+
+    return 0;
+}
