ENVIRONMENT_MODIFICATION.rst 908 B

12345678910111213141516171819202122
  1. ENVIRONMENT_MODIFICATION
  2. ------------------------
  3. .. versionadded:: 3.22
  4. Specify environment variables that should be modified for running a test. Note
  5. that the operations performed by this property are performed after the
  6. :prop_test:`ENVIRONMENT` property is already applied.
  7. Set to a :ref:`semicolon-separated list <CMake Language Lists>` of
  8. environment variables and values of the form ``MYVAR=OP:VALUE``,
  9. where ``MYVAR`` is the case-sensitive name of an environment variable
  10. to be modified. Entries are considered in the order specified in the
  11. property's value. The ``OP`` may be one of:
  12. .. include:: ../include/ENVIRONMENT_MODIFICATION_OPS.rst
  13. Unrecognized ``OP`` values will result in the test failing before it is
  14. executed. This is so that future operations may be added without changing
  15. valid behavior of existing tests.
  16. The environment changes from this property do not affect other tests.