85 lines
1.7 KiB
Plaintext
85 lines
1.7 KiB
Plaintext
|
|
configurator.pl readme file
|
|
|
|
---------------------------------------------------------
|
|
1. About
|
|
|
|
This utility is necessary for test building. Each
|
|
test in suite has each own number of properties.
|
|
It is also necessary to the end-user to configurate
|
|
properties correct, because of different platforms
|
|
test is running under and different situation test
|
|
suite must be used.
|
|
|
|
2. Usage
|
|
|
|
perl conigurator.pl infile outfile templatefile
|
|
|
|
infile:
|
|
|
|
the input file with the key valies. For more
|
|
details see "File format section"
|
|
|
|
outfile:
|
|
|
|
the output file, that generates from template
|
|
and input file. For more details see "File
|
|
format section"
|
|
|
|
template:
|
|
|
|
the template file, that describes the format
|
|
of output file. For more details see "File
|
|
format section"
|
|
|
|
3. File format.
|
|
|
|
3.1 Input file
|
|
|
|
The input file format seems to be very easy.
|
|
"#" sign in the beginning means comment, empty
|
|
lines are ignored. The key features described
|
|
as this :
|
|
|
|
KeyName = KeyValue
|
|
|
|
generator utility searches for such a strings
|
|
and inserts Key values into the key names fields
|
|
as it describes in the template section.
|
|
|
|
3.2 Template file
|
|
|
|
The template file is a simple file, that uses
|
|
signs as following to insert the key values
|
|
into the text. Here comes the example.
|
|
|
|
- Example 1
|
|
|
|
See some text is goes and Oo-<here>-oO we will insert
|
|
the "here" key value, that goes from the input file
|
|
|
|
-
|
|
|
|
So, generator will search the string in the input
|
|
file like this :
|
|
|
|
- Example 2
|
|
|
|
# "Here" key
|
|
here = my own value
|
|
|
|
-
|
|
|
|
The output will be like this :
|
|
|
|
- Example 3
|
|
|
|
See some text is goes and Oo- my own value -oO we
|
|
will insert the "here" key value, that goes from the
|
|
input file
|
|
|
|
-
|
|
|
|
4. FAQ
|
|
|
|
TBD |