Commit b2f02296 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

BUG: Fix TestFBO so that is can never fail.

parent b439cce8
......@@ -7,6 +7,11 @@ SET(RenderingTests
SET(RenderingTestsWithArguments)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
)
IF(VTK_USE_DISPLAY)
# For tests that actually use a vtkRenderWindow
SET(RenderingTestsWithArguments
......@@ -51,6 +56,20 @@ CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx
EXTRA_INCLUDE vtkTestDriver.h
)
SET (TEST_FBO_IMPLEMENTATION_EXE
TestFBOImplementation)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/TestFBOInclude.h.in
${CMAKE_CURRENT_BINARY_DIR}/TestFBOInclude.h
@ONLY IMMEDIATE ESCAPE_QUOTES)
# This is used by TestFBO. Using a separate processes makes is possible to
# avoid issues to OpenGL implementations segfaulting etc. from affecting the
# test.
ADD_EXECUTABLE(TestFBOImplementation
TestFBOImplementation.cxx)
TARGET_LINK_LIBRARIES(TestFBOImplementation
vtkRendering)
ADD_EXECUTABLE(${KIT}CxxTests ${Tests})
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkRendering vtkIO)
......
This diff is collapsed.
This diff is collapsed.
/*=========================================================================
Program: Visualization Toolkit
Module: TestFBOInclude.h.in
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#define TEST_FBO_IMPLEMENTATION_EXE "@TEST_FBO_IMPLEMENTATION_EXE@"
#define EXECUTABLE_OUTPUT_PATH "@EXECUTABLE_OUTPUT_PATH@"
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