Przeglądaj źródła

Merge topic 'tutorial_update_step_4'

5a86ce5428 Tutorial: Step 4 improvements

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6564
Brad King 4 lat temu
rodzic
commit
daab8b891c

+ 1 - 1
Help/guide/tutorial/Complete/CMakeLists.txt

@@ -73,7 +73,7 @@ function(do_test target arg result)
   set_tests_properties(Comp${arg}
   set_tests_properties(Comp${arg}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     )
     )
-endfunction(do_test)
+endfunction()
 
 
 # do a bunch of result based tests
 # do a bunch of result based tests
 do_test(Tutorial 4 "4 is 2")
 do_test(Tutorial 4 "4 is 2")

+ 5 - 3
Help/guide/tutorial/Installing and Testing.rst

@@ -88,6 +88,8 @@ input, and expected results based on the passed arguments.
 Rebuild the application and then cd to the binary directory and run the
 Rebuild the application and then cd to the binary directory and run the
 :manual:`ctest <ctest(1)>` executable: ``ctest -N`` and ``ctest -VV``. For
 :manual:`ctest <ctest(1)>` executable: ``ctest -N`` and ``ctest -VV``. For
 multi-config generators (e.g. Visual Studio), the configuration type must be
 multi-config generators (e.g. Visual Studio), the configuration type must be
-specified. To run tests in Debug mode, for example, use ``ctest -C Debug -VV``
-from the build directory (not the Debug subdirectory!). Alternatively, build
-the ``RUN_TESTS`` target from the IDE.
+specified with the ``-C <mode>`` flag.  For example, to run tests in Debug
+mode use ``ctest -C Debug -VV`` from the binary directory
+(not the Debug subdirectory!). Release mode would be executed from the same
+location but with a ``-C Release``.  Alternatively, build the ``RUN_TESTS``
+target from the IDE.

+ 1 - 1
Help/guide/tutorial/Step10/CMakeLists.txt

@@ -55,7 +55,7 @@ function(do_test target arg result)
   set_tests_properties(Comp${arg}
   set_tests_properties(Comp${arg}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     )
     )
-endfunction(do_test)
+endfunction()
 
 
 # do a bunch of result based tests
 # do a bunch of result based tests
 do_test(Tutorial 4 "4 is 2")
 do_test(Tutorial 4 "4 is 2")

+ 1 - 1
Help/guide/tutorial/Step11/CMakeLists.txt

@@ -63,7 +63,7 @@ function(do_test target arg result)
   set_tests_properties(Comp${arg}
   set_tests_properties(Comp${arg}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     )
     )
-endfunction(do_test)
+endfunction()
 
 
 # do a bunch of result based tests
 # do a bunch of result based tests
 do_test(Tutorial 4 "4 is 2")
 do_test(Tutorial 4 "4 is 2")

+ 1 - 1
Help/guide/tutorial/Step12/CMakeLists.txt

@@ -69,7 +69,7 @@ function(do_test target arg result)
   set_tests_properties(Comp${arg}
   set_tests_properties(Comp${arg}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     )
     )
-endfunction(do_test)
+endfunction()
 
 
 # do a bunch of result based tests
 # do a bunch of result based tests
 do_test(Tutorial 4 "4 is 2")
 do_test(Tutorial 4 "4 is 2")

+ 1 - 1
Help/guide/tutorial/Step5/CMakeLists.txt

@@ -54,7 +54,7 @@ function(do_test target arg result)
   set_tests_properties(Comp${arg}
   set_tests_properties(Comp${arg}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     )
     )
-endfunction(do_test)
+endfunction()
 
 
 # do a bunch of result based tests
 # do a bunch of result based tests
 do_test(Tutorial 4 "4 is 2")
 do_test(Tutorial 4 "4 is 2")

+ 1 - 1
Help/guide/tutorial/Step6/CMakeLists.txt

@@ -54,7 +54,7 @@ function(do_test target arg result)
   set_tests_properties(Comp${arg}
   set_tests_properties(Comp${arg}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     )
     )
-endfunction(do_test)
+endfunction()
 
 
 # do a bunch of result based tests
 # do a bunch of result based tests
 do_test(Tutorial 4 "4 is 2")
 do_test(Tutorial 4 "4 is 2")

+ 1 - 1
Help/guide/tutorial/Step7/CMakeLists.txt

@@ -54,7 +54,7 @@ function(do_test target arg result)
   set_tests_properties(Comp${arg}
   set_tests_properties(Comp${arg}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     )
     )
-endfunction(do_test)
+endfunction()
 
 
 # do a bunch of result based tests
 # do a bunch of result based tests
 do_test(Tutorial 4 "4 is 2")
 do_test(Tutorial 4 "4 is 2")

+ 1 - 1
Help/guide/tutorial/Step8/CMakeLists.txt

@@ -54,7 +54,7 @@ function(do_test target arg result)
   set_tests_properties(Comp${arg}
   set_tests_properties(Comp${arg}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     )
     )
-endfunction(do_test)
+endfunction()
 
 
 # do a bunch of result based tests
 # do a bunch of result based tests
 do_test(Tutorial 4 "4 is 2")
 do_test(Tutorial 4 "4 is 2")

+ 1 - 1
Help/guide/tutorial/Step9/CMakeLists.txt

@@ -54,7 +54,7 @@ function(do_test target arg result)
   set_tests_properties(Comp${arg}
   set_tests_properties(Comp${arg}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     PROPERTIES PASS_REGULAR_EXPRESSION ${result}
     )
     )
-endfunction(do_test)
+endfunction()
 
 
 # do a bunch of result based tests
 # do a bunch of result based tests
 do_test(Tutorial 4 "4 is 2")
 do_test(Tutorial 4 "4 is 2")