Next: Configuring MIN Modules through _etc_min_d directory, Previous: Hardware builds, Up: Setting up MIN
MIN has an initialization file that is used to set the MIN functionality. Currently initialization file contains paths for searching test modules and configuration files, defaults for MIN logger and the used test modules.
An example of the initialization file is shown below.
[Engine_Defaults] ModSearchPath=/usr/lib/min ModSearchPath=$HOME/.min [End_Defaults] [New_Module] ModuleName=/home/user/.min/exampleModule.so TestCaseFile=/home/user/.min/Example.cfg [End_Module] [Logger_Defaults] EmulatorBasePath=/tmp EmulatorFormat=TXT EmulatorOutput=FILE SYSLOG ThreadIdToLogFile=NO [End_Logger_Defaults]
Table below shows the possible settings in the min.conf file.
Tag | Description | Optional/Required
|
---|---|---|
TmcBinPath | Path of TMC (absolute path, detected automatically) | Optional
|
ModuleName | Path of test library/libraries (absolute path if the module is not in a location specified in ModSearchPaths) | Required
|
ConfigFile TestCaseFile | A configuration / test case file where the test cases are defined. There can be several configuration / test case files for one test module | Optional
|
Table below shows the possible logger settings in the min.conf
file.
Tag | Description | Optional/Required
|
---|---|---|
EmulatorBasePath | Directory that will be used for logger output. | Optional
|
EmulatorFormat | Output format, can be either TXT or HTML. Can be also both of them. | Optional
|
EmulatorOutput | Output facility, can be NULL either FILE or SYSLOG, or both of them. | Optional
|
ThreadIdToLogFile | Indicates if PID should be a part of output file name | Optional
|
CreateLogDirectories | Indicates if logger output directory should be created if not exists, possible values are YES or NO | Optional
|
WithTimeStamp | Indicates if time stamp should be added to the log messages, possible values are YES or NO | Optional
|
WithLineBreak | Indicates if line breaks should be added, possible values are YES or NO | Optional
|
FileCreationMode | File creation mode, possible values are APPEND or OVERWRITE | Optional
|
LogLevel | LogLevel value, can be one of following: Trace, Debug, Notice, Info, Warning, Error, Fatal | Optional, default value is Info.
|