Help: add release notes, documentation for CTEST_RUN_CURRENT_SCRIPT behavior

This commit is contained in:
Kyle Edwards 2018-01-25 14:24:09 -05:00
parent 74092d92bf
commit 13347740e2
3 changed files with 14 additions and 0 deletions

View File

@ -513,6 +513,7 @@ Variables for CTest
/variable/CTEST_P4_COMMAND
/variable/CTEST_P4_OPTIONS
/variable/CTEST_P4_UPDATE_OPTIONS
/variable/CTEST_RUN_CURRENT_SCRIPT
/variable/CTEST_SCP_COMMAND
/variable/CTEST_SITE
/variable/CTEST_SOURCE_DIRECTORY

View File

@ -0,0 +1,8 @@
ctest_start_function_scope
--------------------------
* The :command:`ctest_start` command no longer sets
:variable:`CTEST_RUN_CURRENT_SCRIPT` due to issues with scoping if it is
called from inside a function. Instead, it sets an internal variable in
CTest. However, setting :variable:`CTEST_RUN_CURRENT_SCRIPT` to 0 at the
global scope still prevents the script from being re-run at the end.

View File

@ -0,0 +1,5 @@
CTEST_RUN_CURRENT_SCRIPT
------------------------
Setting this to 0 prevents :manual:`ctest(1)` from being run again when it
reaches the end of a script run by calling ``ctest -S``.