COMP: Simplify extension template by using default value for EXTENSION_DEPENDS

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19845 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Prevent confusion by removing unused CMake variable

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19846 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Easier understanding of Editor extension template by making CMakeLists.txt  consistent.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19847 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Ensure that failing python unit tests are reported as failing test

* This regression was introduced following r19581 [1]

* To prevent this issue from occurring again, a regression test
is also added.

[1] http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=19581

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19848 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Extension can reference Slicer_LAUNCH* variables even if BUILD_TESTING OFF

Slicer doesn't have to be build with Testing enabled to allow
extension to be build and tested.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19849 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Fix doxygen comment of qSlicerCoreCommandOptions::isTestingEnabled function

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19850 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: List of command line option is now consistent with build option

* disable-scripted-loadable-modules is added only if build with Python support

* disable-cli-modules is added only if build with CLI support

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19851 3bd1e089-480b-0410-8dfb-8563597acbee
BUG: Ensure generic Python module tests pass when build as extension

After commit r19844 that ensure that python unittest will fail if it applies,
a problem associated with generic python module tests has been discovered.

The following error message was displayed:

   AttributeError: 'module' object has no attribute 'scriptedloadableextensiontemplate'


This was explained by the fact the path where the module was located
wasn't considered by the module factory manager.

To address that problem, a new command line option named

  --additional-module-paths

has been added.


The given list of path will added to the factory module manager.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19852 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Ensure environment is set when running "out-of-source" scripted modules tests.

This is a follow up to r19827 [1] where it was mentioned that

   "PYTHONPATH is updated so that python module associated with
   a module could be imported. For example, the scripted module."

It resumes that at the time of that commit, this was an incorrect statement.
Indeed, the python macro defined in SlicerMacroPythonTesting where
relying on "Slicer_LAUNCHER_EXECUTABLE" whereas the variable updated
with '--launcher-additional-settings' was "Slicer_LAUNCH_COMMAND".

This commit set the command line option specific to launcher additional settings
into a variable that could be re-used:

    Slicer_ADDITIONAL_LAUNCHER_SETTINGS

The macro SLICER_ADD_PYTHON_TEST and SLICER_ADD_PYTHON_UNITTEST have been
updated to consider that variable.

[1] http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=19827

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19853 3bd1e089-480b-0410-8dfb-8563597acbee