Index: /trunk/psLib/test/sysUtils/Makefile
===================================================================
--- /trunk/psLib/test/sysUtils/Makefile	(revision 548)
+++ /trunk/psLib/test/sysUtils/Makefile	(revision 549)
@@ -3,6 +3,6 @@
 ##  Makefile:   test/sysUtils
 ##
-##  $Revision: 1.3 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-04-28 02:51:39 $
+##  $Revision: 1.4 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-04-30 01:28:04 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -34,4 +34,13 @@
 	$(RM) $(TARGET) *.o *.lint
 
+tst_psTrace00:	tst_psTrace00.c
+	$(CC) tst_psTrace00.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace00
+
+tst_psTrace01:	tst_psTrace01.c
+	$(CC) tst_psTrace01.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace01
+
+tst_psTrace02:	tst_psTrace02.c
+	$(CC) tst_psTrace02.c $(LDFLAGS) -L$(PSLIB_LIB_DIR) -L.. -lpslib -lpstest -I$(PSLIB_INCL_DIR) -I.. -o tst_psTrace02
+
 %.o : %.c
 	$(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $<
@@ -43,3 +52,4 @@
 	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
 
-
+distclean:
+	rm DistCleanFiles
Index: /trunk/psLib/test/sysUtils/tst_psTrace00.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psTrace00.c	(revision 549)
+++ /trunk/psLib/test/sysUtils/tst_psTrace00.c	(revision 549)
@@ -0,0 +1,52 @@
+/*****************************************************************************
+    This code tests whether trace levels can be set successfully.
+ *****************************************************************************/
+#include <stdio.h>
+#include "pslib.h"
+#include "psTest.h"
+
+main()
+{
+    int i = 0;
+    int lev = 0;
+    int errorFlag = 0;
+
+    lev = psGetTraceLevel(".");
+
+    for (i=0;i<10;i++) {
+        psSetTraceLevel(".", i);
+        lev = psGetTraceLevel(".");
+        if (lev != i) {
+            printf("ERROR: (.) expected trace level was %d, actual was %d\n",
+                   i, lev);
+            errorFlag = 1;
+        }
+    }
+    psSetTraceLevel(".", 5);
+
+    for (i=0;i<10;i++) {
+        psSetTraceLevel(".NODE00", i);
+        lev = psGetTraceLevel(".NODE00");
+        if (lev != i) {
+            printf("ERROR: (.NODE00) expected trace level was %d, actual was %d\n",
+                   i, lev);
+            errorFlag = 1;
+        }
+    }
+    psSetTraceLevel(".NODE00.NODE01", 4);
+
+    for (i=0;i<10;i++) {
+        psSetTraceLevel(".NODE00.NODE01", i);
+        lev = psGetTraceLevel(".NODE00.NODE01");
+        if (lev != i) {
+            printf("ERROR: (.NODE00.NODE01) expected trace level was %d, actual was %d\n",
+                   i, lev);
+            errorFlag = 1;
+        }
+    }
+
+    if (errorFlag == 0) {
+        printf("All tests in %s ran successfully\n", __FILE__);
+    }
+    exit(0);
+}
Index: /trunk/psLib/test/sysUtils/tst_psTrace01.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psTrace01.c	(revision 549)
+++ /trunk/psLib/test/sysUtils/tst_psTrace01.c	(revision 549)
@@ -0,0 +1,32 @@
+/*****************************************************************************
+    This code tests whether trace levels can be reset successfully.
+ *****************************************************************************/
+#include <stdio.h>
+#include "pslib.h"
+#include "psTest.h"
+
+main()
+{
+    int i = 0;
+    int lev = 0;
+    int errorFlag = 0;
+
+    lev = psGetTraceLevel(".");
+
+    for (i=0;i<10;i++) {
+        psSetTraceLevel(".", i);
+        psTraceReset();
+
+        lev = psGetTraceLevel(".");
+        if (lev != UNKNOWN_TRACE_LEVEL) {
+            printf("ERROR: expected trace level was %d, actual was %d\n",
+                   i, lev);
+            errorFlag = 1;
+        }
+    }
+
+    if (errorFlag == 0) {
+        printf("All tests in %s ran successfully\n", __FILE__);
+    }
+    exit(0);
+}
Index: /trunk/psLib/test/sysUtils/tst_psTrace02.c
===================================================================
--- /trunk/psLib/test/sysUtils/tst_psTrace02.c	(revision 549)
+++ /trunk/psLib/test/sysUtils/tst_psTrace02.c	(revision 549)
@@ -0,0 +1,24 @@
+/*****************************************************************************
+    This code tests whether trace messages can be successfully displayed
+    and not displayed.
+ *****************************************************************************/
+#include <stdio.h>
+#include "pslib.h"
+#include "psTest.h"
+
+main()
+{
+    int i = 0;
+    int lev = 0;
+    int errorFlag = 0;
+
+    lev = psGetTraceLevel(".");
+    psSetTraceLevel(".", 4);
+    psTrace(".", 5, "This message should not be displayed (%x)\n",
+            0xbeefface);
+    psSetTraceLevel(".", 7);
+    psTrace(".", 5, "This message should be displayed (%x)\n",
+            0xbeefface);
+
+    exit(0);
+}
