Index: /trunk/psLib/test/psTest.c
===================================================================
--- /trunk/psLib/test/psTest.c	(revision 509)
+++ /trunk/psLib/test/psTest.c	(revision 509)
@@ -0,0 +1,57 @@
+//
+// C Implementation: psTest
+//
+// Description:
+//
+//
+// Author: Robert DeSonia <robert.desonia@mhpcc.hpc.mil>, (C) 2004
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+
+#include "psTest.h"
+
+#define HEADER_TOP    "/----------------------------- TESTPOINT --------------------------------\\\n"
+#define HEADER_LINE_STRING   "| %10s: %-58s |\n"
+#define HEADER_LINE_INT      "| %10s: %-58d |\n"
+#define HEADER_BOTTOM "\\------------------------------------------------------------------------/\n\n"
+
+void p_printPositiveTestHeader(const char* testPointFile, const char* packageName, const char* testPointName)
+{
+    char TP[80];
+
+    snprintf(TP,80,"%s{%s}",packageName,testPointName);
+
+    printf(HEADER_TOP);
+    printf(HEADER_LINE_STRING, "TestFile", testPointFile);
+    printf(HEADER_LINE_STRING, "TestPoint", TP);
+    printf(HEADER_LINE_STRING, "TestType","Positive");
+    printf(HEADER_BOTTOM);
+}
+
+void p_printNegativeTestHeader(const char* testPointFile, const char* packageName,
+                               const char* testPointName,const char* expectedError, int exitValue)
+{
+    char TP[80];
+
+    snprintf(TP,80,"%s{%s}",packageName,testPointName);
+
+    printf(HEADER_TOP);
+    printf(HEADER_LINE_STRING, "TestFile", testPointFile);
+    printf(HEADER_LINE_STRING, "TestPoint", TP);
+    printf(HEADER_LINE_STRING,"TestType","Negative");
+    printf(HEADER_LINE_STRING,"ExpectedErrorText",expectedError);
+    printf(HEADER_LINE_INT,"ExpectedStatusValue",exitValue);
+    printf(HEADER_BOTTOM);
+}
+
+
+void p_printFooter(const char* testPointFile, const char* packageName,const char* testPointName, bool success)
+{
+    if (success) {
+        printf("\n---> TESTPOINT PASSED (%s{%s} | %s)\n\n", packageName,testPointName, testPointFile);
+    } else {
+        printf("\n---> TESTPOINT FAILED (%s{%s} | %s)\n\n", packageName,testPointName,testPointFile);
+    }
+}
Index: /trunk/psLib/test/psTest.h
===================================================================
--- /trunk/psLib/test/psTest.h	(revision 509)
+++ /trunk/psLib/test/psTest.h	(revision 509)
@@ -0,0 +1,27 @@
+
+#ifndef PSTEST_H
+#define PSTEST_H
+
+#include <stdio.h>
+#include <stdbool.h>
+
+#define printPositiveTestHeader(packageName, testPointName) \
+p_printPositiveTestHeader(__FILE__, packageName, testPointName)
+
+#define printNegativeTestHeader(packageName, testPointName, expectedError, exitValue) \
+p_printNegativeTestHeader(__FILE__, packageName, testPointName, expectedError, exitValue)
+
+#define printFooter(packageName, testPointName, success) \
+p_printFooter(__FILE__, packageName, testPointName, success)
+
+
+/////////////////////////// PRIVATE FUNCTIONS //////////////////////////////
+
+void p_printPositiveTestHeader(const char* testPointFile, const char* packageName, const char* testPointName);
+
+void p_printNegativeTestHeader(const char* testPointFile, const char* packageName,
+                               const char* testPointName,const char* expectedError, int exitValue);
+
+void p_printFooter(const char* testPointFile, const char* packageName, const char* testPointName, bool
+                   success);
+#endif
Index: /trunk/psLib/test/temp.c
===================================================================
--- /trunk/psLib/test/temp.c	(revision 509)
+++ /trunk/psLib/test/temp.c	(revision 509)
@@ -0,0 +1,24 @@
+//
+// C Implementation: temp
+//
+// Description:
+//
+//
+// Author: Robert DeSonia <robert.desonia@mhpcc.hpc.mil>, (C) 2004
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+
+#include "psTest.h"
+
+int main()
+{
+    printPositiveTestHeader("psTest","InitialTest");
+
+    printf("no real test here.\n");
+
+    printFooter("psTest","InitialTest",true);
+
+    return 0;
+}
