Enabled easier specification of custom test name
Enabled easier specification of custom test name

A custom test name can be specified by giving a name followed by a
comma before the test file name, .e.g.,

CustomTestName,TestSource.cxx

CustomTclTestName,TestSource.tcl

CustomPyTestName,TestSource.py

Support for custom test names is available in:

vtk_add_test_cxx
vtk_add_test_mpi
vtk_add_test_python
vtk_add_test_python_mpi
vtk_add_test_tcl

This way to specify a custom name is more straightforward and less
verbose than the vtk_test_prefix mechanism or custom calls to
ExternalData_add_test.

Example:

vtk_add_test_cxx(${vtk-module}CxxTests tests
  TestClass,TestClass.cxx --arg0 --arg1 --arg2
)

vtk_add_test_cxx(${vtk-module}CxxTests tests
  TestClass2,TestClass.cxx --arg3 --arg4 --arg5
)

The baseline for a test with custom name 'TestClass2' is expected to
be 'TestClass2.png'.

Note that currently, every test defined from the same source file
must be defined in a separate call to vtk_add_test_*. For example,

vtk_add_test_cxx(${vtk-module}CxxTests tests
  TestClass,TestClass.cxx --arg0 --arg1 --arg2
  TestClass2,TestClass.cxx --arg3 --arg4 --arg5
)

does not work correctly - it passes --arg0 through --arg5 to both the
TestClass and TestClass2 test instances. Instead, tests with arguments
must be specified with different calls to vtk_add_test_*.

Change-Id: I88fabc4c5eca5898e257887f3e161fd9c4ee0864

johnkit/vtk-dev,gram526/VTK,sumedhasingla/VTK,sankhesh/VTK,jmerkow/VTK,gram526/VTK,sumedhasingla/VTK,msmolens/VTK,gram526/VTK,msmolens/VTK,sankhesh/VTK,demarle/VTK,candy7393/VTK,keithroe/vtkoptix,johnkit/vtk-dev,sumedhasingla/VTK,keithroe/vtkoptix,mspark93/VTK,ashray/VTK-EVM,gram526/VTK,jmerkow/VTK,candy7393/VTK,sankhesh/VTK,hendradarwin/VTK,ashray/VTK-EVM,demarle/VTK,SimVascular/VTK,demarle/VTK,ashray/VTK-EVM,candy7393/VTK,mspark93/VTK,ashray/VTK-EVM,SimVascular/VTK,SimVascular/VTK,jmerkow/VTK,sankhesh/VTK,mspark93/VTK,sumedhasingla/VTK,candy7393/VTK,candy7393/VTK,SimVascular/VTK,gram526/VTK,mspark93/VTK,johnkit/vtk-dev,msmolens/VTK,SimVascular/VTK,mspark93/VTK,sankhesh/VTK,sankhesh/VTK,hendradarwin/VTK,msmolens/VTK,sumedhasingla/VTK,mspark93/VTK,keithroe/vtkoptix,keithroe/vtkoptix,SimVascular/VTK,jmerkow/VTK,candy7393/VTK,johnkit/vtk-dev,msmolens/VTK,msmolens/VTK,candy7393/VTK,ashray/VTK-EVM,sumedhasingla/VTK,hendradarwin/VTK,gram526/VTK,jmerkow/VTK,ashray/VTK-EVM,johnkit/vtk-dev,jmerkow/VTK,demarle/VTK,sankhesh/VTK,keithroe/vtkoptix,hendradarwin/VTK,demarle/VTK,demarle/VTK,demarle/VTK,hendradarwin/VTK,mspark93/VTK,keithroe/vtkoptix,gram526/VTK,demarle/VTK,msmolens/VTK,jmerkow/VTK,mspark93/VTK,jmerkow/VTK,msmolens/VTK,johnkit/vtk-dev,candy7393/VTK,sumedhasingla/VTK,SimVascular/VTK,sumedhasingla/VTK,gram526/VTK,sankhesh/VTK,johnkit/vtk-dev,keithroe/vtkoptix,keithroe/vtkoptix,SimVascular/VTK,ashray/VTK-EVM,hendradarwin/VTK,hendradarwin/VTK,ashray/VTK-EVM