Commit 56548322 authored by Ken Martin's avatar Ken Martin
Browse files

test driver changes

parent d3b5fb83
SET(KIT Rendering)
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx
otherCoordinate.cxx
TestRenderWindow
)
ADD_EXECUTABLE(${KIT}CxxTests ${Tests})
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkRendering vtkIO)
SET (TestsToRun ${Tests})
REMOVE (TestsToRun ${KIT}CxxTests.cxx TestRenderWindow.cxx)
#
# Add all the executables that require rendering
# Add all the executables
FOREACH (test ${TestsToRun})
GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})
ENDFOREACH (test)
# handle TestRenderWindow seperately since it has different arguments
IF (VTK_DATA_ROOT)
ADD_TEST(TestRenderWindow ${CXX_TEST_PATH}/${KIT}CxxTests TestRenderWindow
-D ${VTK_DATA_ROOT}
-FrontBuffer
-V Baseline/Rendering/TestRenderWindow.png)
ENDIF (VTK_DATA_ROOT)
#
# Add other odd tests or executables
#
FOREACH (exe
TimeRenderer
TimeRenderer2
otherCoordinate
TestRenderWindow
)
ADD_EXECUTABLE(${exe} ${exe}.cxx)
TARGET_LINK_LIBRARIES(${exe} vtkRendering vtkIO)
ENDFOREACH (exe)
ADD_TEST(otherCoordinate ${CXX_TEST_PATH}/otherCoordinate)
ADD_TEST(TestRenderWindow-image ${CXX_TEST_PATH}/TestRenderWindow
-D ${VTK_DATA_ROOT}
-FrontBuffer
-V Baseline/Rendering/TestRenderWindow.png)
......
......@@ -27,7 +27,7 @@
#include "vtkRegressionTestImage.h"
int main( int argc, char *argv[] )
int TestRenderWindow( int argc, char *argv[] )
{
// Create the renderers, render window, and interactor
vtkRenderWindow *renWin = vtkRenderWindow::New();
......
......@@ -169,7 +169,7 @@ int Test(ostream& strm)
return 0;
}
int main()
int otherCoordinate(int,char *[])
{
vtkDebugLeaks::PromptUserOff();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment