diff --git a/test-tc.1 b/test-tc.1 index c003fd8..2e87287 100644 --- a/test-tc.1 +++ b/test-tc.1 @@ -6,7 +6,7 @@ .SH SYNOPSIS -test-tc.py [symtbl] [nonewvars] [templates] [temponly] [limitns] [litvars] [nopredefs] [debug] cfgfile, ... +test-tc.py [symtbl] [inmem] [nonewvars] [templates] [temponly] [limitns] [litvars] [nopredefs] [debug] cfgfile, ... .SH OPTIONS @@ -16,6 +16,29 @@ This option causes the test driver to include a symbol table with some predefined test variables in it. These are useful for experimenting with variable dereferencing, substitution, and type/value enforcement. +The variables created are: + +.ft C \" courier +.nf +Name Val RO Type Def Legal Values Min/Max +------------------------------------------------------------------------------ + +int1 1 True TYPE_INT 0 [1, 2, 23] None None +int2 1 True TYPE_INT 0 [] 1 30 +float1 1.0 None TYPE_FLOAT 0.5 [3.14, 2.73] None None +float2 1.0 None TYPE_FLOAT 0.5 [] -1.2 0.5 +str1 "stringy" None None None [r'^box$', r'^Bax', r'a+bc'] 3 8 +cmplx1 4+5j None TYPE_COMPLEX 0-0j [] None None +cmplx2 4+5j None TYPE_COMPLEX 0-0j [1-1j 1+1j] None None +bool1 True None TYPE_BOOL None None None None +ro1 "ReadVar" False None None None None None +.fi +.ft \" revert + +Notice that some of the fields are defined as \fCNone\fP. In this case, that +parameter is set to its default value when the variable is created. (See +the \fCtconfpy\fP documentation regarding the \fCVarDescriptor\fP object for +the details.) The default is to not predefine any such variables. (Note that whether this option is present or not, \fCtconfpy\fP always creates a number of @@ -28,6 +51,13 @@ well as any variables created with this option, if present. .TP +.B inmem +Read each cfgile specified on the command line into an in-memory list, +and pass this list to the parser. This exercises the in-memory +parsing capabilities of \fCtconfpy\fP. It is primarily provided +as a diagnostic tool for anyone modifying the parser code. + +.TP .B nonewvars This option disables the creation of new variables in the @@ -49,8 +79,6 @@ .ft C \" courier .nf - - Name Val RO Type Def Legal Values Min/Max -------------------------------------------------------------------------- @@ -137,7 +165,13 @@ file in /usr/local/share/doc/py-tconfpy. .SH AUTHOR -.nf -Tim Daneliuk -tconfpy@tundraware.com +.ft C \" Courier +.nf + Tim Daneliuk + tconfpy@tundraware.com +.fi +.ft \" revert + +.SH DOCUMENT REVISION INFORMATION +$Id: test-tc.1,v 1.112 2005/01/20 10:08:50 tundra Exp $ \ No newline at end of file