Skip to content
Snippets Groups Projects
Commit 29cbcca6 authored by Julien Michel's avatar Julien Michel
Browse files

TEST: Adding similar test as in MPI vrt module

parent 08c828b9
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ otb_module_test()
set(OTBMPITiffWriterTests
otbMPITiffWriterTestDriver.cxx
otbSPTWStripsWriteTest.cxx
otbMPISPTWReadWriteTest.cxx
)
add_executable(otbMPITiffWriterTestDriver ${OTBMPITiffWriterTests})
......@@ -15,11 +15,14 @@ otb_module_target_label(otbMPITiffWriterTestDriver)
# Tests Declaration
otb_add_test(NAME cdTvSPTWWriteStrips COMMAND otbMPITiffWriterTestDriver
--compare-image ${NOTOL} ${INPUTDATA}/ToulouseQuickBird_Extrait_1500_3750.tif
${TEMP}/cdSPTWWritedInStripsImage.tif
otbSPTWStripsWriteTest
otb_add_test_mpi(NAME otbMPISPTWReadWriteTest
NBPROCS 2
COMMAND otbMPITiffWriterTestDriver
--compare-image ${NOTOL}
${INPUTDATA}/ToulouseQuickBird_Extrait_1500_3750.tif
${TEMP}/cdSPTWWritedInStripsImage.tif
${TEMP}/otbMPITiffWriterTestOutput.tif
otbMPISPTWReadWriteTest
${INPUTDATA}/ToulouseQuickBird_Extrait_1500_3750.tif
${TEMP}/otbMPITiffWriterTestOutput.tif
)
......@@ -26,7 +26,6 @@
#include <mpi.h>
#include <cstdlib>
#include <iostream>
#include <boost/chrono/thread_clock.hpp>
int otbMPISPTWReadWriteTest(int argc, char* argv[])
{
......
#include "otbTestMain.h"
void RegisterTests()
{
REGISTER_TEST(otbSPTWStripsWriteTest);
REGISTER_TEST(otbMPISPTWReadWriteTest);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment