Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Help / command / ctest_run_script.rst
1 ctest_run_script
2 ----------------
3
4 runs a :option:`ctest -S` script
5
6 ::
7
8   ctest_run_script([NEW_PROCESS] script_file_name script_file_name1
9               script_file_name2 ... [RETURN_VALUE var])
10
11 Runs a script or scripts much like if it was run from :option:`ctest -S`.
12 If no argument is provided then the current script is run using the current
13 settings of the variables.  If ``NEW_PROCESS`` is specified then each
14 script will be run in a separate process.If ``RETURN_VALUE`` is specified
15 the return value of the last script run will be put into ``var``.