diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2019-06-23 03:09:58 -0400 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2019-06-23 03:10:34 -0400 |
commit | 7d471ee25ec7d9ce729d62b6ac3491e9cde392fd (patch) | |
tree | 949b48e22277b2d0da3049d2da9337478987950c /docs | |
parent | b11c5ba18549f002d63a71ffd2ba33553a294fc2 (diff) | |
download | gstreamer-7d471ee25ec7d9ce729d62b6ac3491e9cde392fd.tar.gz |
validate: Set 'LOGSDIR' variable in scenarios and config files
Implementing support for variables in config files.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/gst-validate-config.md | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/docs/gst-validate-config.md b/docs/gst-validate-config.md index 66b589200e..ae20f3cf5c 100644 --- a/docs/gst-validate-config.md +++ b/docs/gst-validate-config.md @@ -6,4 +6,39 @@ short-description: GstValidate configuration # GstValidate Configuration GstValidate comes with some possible configuration files -to setup its plugins (and potentially core behaviour). +to setup its plugins (and potentially core behaviour), + +You can check the [ssim plugin](plugins/ssim.md) +and the [validate flow plugin](plugins/validateflow.md) +for examples. + + +## Variables + +You can use variables in the configs the same way you can +set them in [gst-validate-scenarios](gst-validate-scenarios.md). + +Defaults variables are: + +- `$(TMPDIR)`: The default temporary directory as returned by + [g_get_tmp_dir()](g_get_tmp_dir). +- `$(CONFIG_PATH)`: The path of the running scenario. +- `$(CONFIG_DIR)`: The directory the running scenario is in. +- `$(LOGSDIR)`: The directory where to place log files. This uses the + `GST_VALIDATE_LOGSDIR` environment variable if avalaible or `$(TMPDIR)` + if the variables hasn't been set. (Note that the + [gst-validate-launcher](gst-validate-launcher.md) set the environment + variables. + +You can also set you own variables by using the `set-vars=true` argument: + +``` yaml +core, set-vars=true, log-path=$(CONFIG_DIR/../log) +``` + +It is also possible to set global variables (also usable from [scenarios](gst-validate-scenarios.md)) +with + +``` yaml +set-globals, TESTSUITE_ROOT_DIR=$(CONFIG_DIR) +```
\ No newline at end of file |