CI Environment: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 9: Line 9:
These environment variables may be set while a test is run.
These environment variables may be set while a test is run.


{background:#009900}. |''. Variable |''. Description |<br />| QT_TEST_CI | Set to 1 when running in the Qt Project CI.<br />Usage of this variable is generally discouraged, but in certain circumstances it may be the best choice to make a test behave differently in a continuous integration environment - for example, to temporarily exclude from CI a flaky portion of an autotest, while allowing the rest of the autotest to catch regressions as normal. |<br />{background:#ddd}. | QT_TEST_SMALL_FS | The mount point of a small, writable filesystem. This filesystem shall be between 1 and 10MB in size. Tests may fill up this filesystem in order to test handling of &quot;no space left on device&amp;quot; conditions.<br />'''Warning:''' there are no guarantees on the filesystem content when a test begins (e.g. it may be empty, or it may be already filled up by a previous test). |
{background:#009900}. |''. Variable |''. Description |
| QT_TEST_CI | Set to 1 when running in the Qt Project CI.
Usage of this variable is generally discouraged, but in certain circumstances it may be the best choice to make a test behave differently in a continuous integration environment - for example, to temporarily exclude from CI a flaky portion of an autotest, while allowing the rest of the autotest to catch regressions as normal. |
{background:#ddd}. | QT_TEST_SMALL_FS | The mount point of a small, writable filesystem. This filesystem shall be between 1 and 10MB in size. Tests may fill up this filesystem in order to test handling of "no space left on device" conditions.
'''Warning:''' there are no guarantees on the filesystem content when a test begins (e.g. it may be empty, or it may be already filled up by a previous test). |


== Hostnames ==
== Hostnames ==

Revision as of 12:59, 25 February 2015

h1. CI Environment

This page describes certain aspects of the test environment used in the Qt Project continuous integration system.

Generally, any test which wants to make use of the environment mentioned on this page should first check if the environment is set and skip if it isn't. This allows maximum portability of the tests.

Environment Variables

These environment variables may be set while a test is run.

{background:#009900}. |. Variable |. Description | | QT_TEST_CI | Set to 1 when running in the Qt Project CI. Usage of this variable is generally discouraged, but in certain circumstances it may be the best choice to make a test behave differently in a continuous integration environment - for example, to temporarily exclude from CI a flaky portion of an autotest, while allowing the rest of the autotest to catch regressions as normal. | {background:#ddd}. | QT_TEST_SMALL_FS | The mount point of a small, writable filesystem. This filesystem shall be between 1 and 10MB in size. Tests may fill up this filesystem in order to test handling of "no space left on device" conditions. Warning: there are no guarantees on the filesystem content when a test begins (e.g. it may be empty, or it may be already filled up by a previous test). |

Hostnames

These host names may be set while a test is run; generally via /etc/hosts on Unix and SystemRoot32\drivers\etc\hosts on Windows.

{background:#009900}. |. Hostname |. Description |