5ec543ed1af473c7b817a47da4edcad5b97b4966
[platform/upstream/cmake.git] / Help / command / ctest_run_script.rst
1 ctest_run_script
2 ----------------
3
4 runs a 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 ctest -S.  If no
12 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``.