Added TotalLines report.
1 parent cd6c3de commit 63ccd24d6f42877c6d024575afb7ed0306965000
@tundra tundra authored on 19 Jan 2005
Showing 1 changed file
View
5
test-tc.py
# 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)