cmake/Help/command/ctest_run_script.rst

16 lines
577 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
ctest_run_script
----------------
2022-11-16 20:14:03 +01:00
runs a :option:`ctest -S` script
2014-08-03 19:52:23 +02:00
2023-05-23 16:38:00 +02:00
.. code-block:: cmake
2014-08-03 19:52:23 +02:00
ctest_run_script([NEW_PROCESS] script_file_name script_file_name1
script_file_name2 ... [RETURN_VALUE var])
2022-11-16 20:14:03 +01:00
Runs a script or scripts much like if it was run from :option:`ctest -S`.
If no argument is provided then the current script is run using the current
2015-11-17 17:22:37 +01:00
settings of the variables. If ``NEW_PROCESS`` is specified then each
script will be run in a separate process.If ``RETURN_VALUE`` is specified
the return value of the last script run will be put into ``var``.