Commit 450a89e0 authored by Berk Geveci's avatar Berk Geveci

Improved a few parallel rendering tests.

1. Added back support for image comparison.
2. Added coverage for parallel compositing.
parent 45fef42a
Pipeline #18472 passed with stage
......@@ -15,13 +15,10 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
vtk_add_test_mpi(${vtk-module}CxxTests-MPI tests
RENDERING_DATA
TestSimplePCompositeZPass.cxx
TestSimplePCompositeZPass.cxx,TESTING_DATA
TestParallelRendering.cxx,TESTING_DATA
${extra_opengl_tests}
)
vtk_add_test_mpi(${vtk-module}CxxTests-MPI no_data_tests
TestParallelRendering.cxx
)
set(all_tests
${tests}
......
......@@ -18,7 +18,7 @@
#include "vtkMPICommunicator.h"
#include "vtkMPIController.h"
#include "vtkSynchronizedRenderWindows.h"
#include "vtkSynchronizedRenderers.h"
#include "vtkCompositedSynchronizedRenderers.h"
#include "vtkTestUtilities.h"
#include "vtkRegressionTestImage.h"
#include "vtkRenderWindowInteractor.h"
......@@ -109,7 +109,8 @@ void MyProcess::Execute()
syncWindows->SetParallelController(this->Controller);
syncWindows->SetIdentifier(1);
vtkSynchronizedRenderers* syncRenderers = vtkSynchronizedRenderers::New();
vtkCompositedSynchronizedRenderers* syncRenderers =
vtkCompositedSynchronizedRenderers::New();
syncRenderers->SetRenderer(renderer);
syncRenderers->SetParallelController(this->Controller);
//syncRenderers->SetImageReductionFactor(3);
......@@ -194,6 +195,5 @@ int TestParallelRendering(int argc, char *argv[])
contr->Finalize();
contr->Delete();
vtkMultiProcessController::SetGlobalController(0);
//return !retVal;
return 0;
return !retVal;
}
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