| |
---|
| | # test-tc.py - A Test Driver For The 'tconfpy' Configuration File Parser |
---|
| | # Copyright (c) 2003-2005 TundraWare Inc. All Rights Reserved. |
---|
| | |
---|
| | PROGNAME = "tconfpy Test Driver" |
---|
| | RCSID = "$Id: test-tc.py,v 1.143 2005/01/19 10:56:57 tundra Exp $" |
---|
| | RCSID = "$Id: test-tc.py,v 1.144 2005/01/19 23:11:42 tundra Exp $" |
---|
| | VERSION = RCSID.split()[2] |
---|
| | |
---|
| | # Copyright Information |
---|
| | |
---|
| |
---|
| | ReturnPredefs=PREDEFS, |
---|
| | Debug=DEBUG |
---|
| | ) |
---|
| | |
---|
| | print "Total Lines Processed: %s " % retval.TotalLines |
---|
| | |
---|
| | if retval.ErrMsgs: |
---|
| | print "Errors Were Found In '%s'!" % fn |
---|
| | else: |
---|
| | print "No Errors Found In '%s'!" % fn |
---|
| | |
---|
| | print |
---|
| | |
---|
| | |
---|
| | # Format and display the results |
---|
| | |
---|
| | dumpreturn("SYMBOL TABLE", retval.Symbols, isdict=True) |
---|
| | dumpreturn("ERRORS", retval.ErrMsgs) |
---|
| |
---|
| | |