Index: docs/manual/megatest_manual.html ================================================================== --- docs/manual/megatest_manual.html +++ docs/manual/megatest_manual.html @@ -1415,15 +1415,35 @@
[items] A a b c B d e f
Then the config file would effectively appear to contain an items section -exactly like the output from the script. This is extremely useful when -dynamically creating items, itemstables and other config structures. You can -see the expansion of the call by looking in the cached files (look in your -linktree for megatest.config and runconfigs.config cache files and in your -test run areas for the expanded and cached testconfig).
Wildcards and regexes in Targets
[a/2/b] +VAR1 VAL1 + +[a/%/b] +VAR1 VAL2+
Will result in:
[a/2/b] +VAR1 VAL2+
Can use either wildcard of "%" or a regular expression:
[/abc.*def/]+
Some parameters you can put in the [setup] section of megatest.config:
There are a number of environment variables available to the trigger script +but since triggers can be called in various contexts not all variables are +available at all times. The trigger script should check for the variable and +fail gracefully if it doesn’t exist.
Variable | +Purpose | +
---|---|
MT_TEST_RUN_DIR |
+The directory where Megatest ran this test |
+
MT_CMDINFO |
+Encoded command data for the test |
+
MT_DEBUG_MODE |
+Used to pass the debug mode to nested calls to Megatest |
+
MT_RUN_AREA_HOME |
+Megatest home area |
+
MT_TESTSUITENAME |
+The name of this testsuite or area |
+
MT_TEST_NAME |
+The name of this test |
+
MT_ITEM_INFO |
+The variable and values for the test item |
+
MT_MEGATEST |
+Which Megatest binary is being used by this area |
+
MT_TARGET |
+The target variable values, separated by / |
+
MT_LINKTREE |
+The base of the link tree where all run tests can be found |
+
MT_ITEMPATH |
+The values of the item path variables, separated by / |
+
MT_RUNNAME |
+The name of the run |
+
Megatest generates a simple html file summary for top level tests of iterated tests. The generation can be overridden. NOTE: the output of @@ -2011,11 +2099,11 @@
These routines can be called from the megatest repl.