Back to index

salome-med  6.5.0
ParaMEDSPLITTERTest.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 #ifndef _ParaMEDSPLITTERTest_HXX_
00020 #define _ParaMEDSPLITTERTest_HXX_
00021 
00022 #include <cppunit/CompilerOutputter.h>
00023 #include <cppunit/TestResult.h>
00024 #include <cppunit/TestResultCollector.h>
00025 #include <cppunit/TextTestProgressListener.h>
00026 #include <cppunit/BriefTestProgressListener.h>
00027 #include <cppunit/extensions/TestFactoryRegistry.h>
00028 #include <cppunit/extensions/HelperMacros.h>
00029 #include <cppunit/TestRunner.h>
00030 #include <stdexcept>
00031 
00032 #include <mpi.h>
00033 
00034 #include <iostream>
00035 #include <fstream>
00036 
00037 class ParaMEDSPLITTERTest : public CppUnit::TestFixture
00038 {
00039   CPPUNIT_TEST_SUITE( ParaMEDSPLITTERTest );
00040 
00041   CPPUNIT_TEST( testMeshSendReceive );
00042   CPPUNIT_TEST( testMeshFuse );
00043 
00044   CPPUNIT_TEST( testParaDomainSelector_gatherGraph );
00045   CPPUNIT_TEST( testParaDomainSelector_gatherNbOf );
00046   CPPUNIT_TEST( testParaDomainSelector_gatherEntityTypesInfo );
00047   CPPUNIT_TEST( testParaDomainSelector_gatherNbCellPairs );
00048   CPPUNIT_TEST( testParaDomainSelector_exchangeJoint );
00049   CPPUNIT_TEST( testParaDomainSelector_exchangeSubentityIds );
00050 
00051   // CPPUNIT_TEST( functional_validation ); -> For the moment bug into ConnectZone
00052 
00053   CPPUNIT_TEST_SUITE_END();
00054 
00055 public:
00056 
00057   void testMeshSendReceive();
00058   void testMeshFuse();
00059 
00060   void testParaDomainSelector_gatherGraph();
00061   void testParaDomainSelector_gatherNbOf ();
00062   void testParaDomainSelector_gatherEntityTypesInfo ();
00063   void testParaDomainSelector_gatherNbCellPairs ();
00064   void testParaDomainSelector_exchangeJoint ();
00065   void testParaDomainSelector_exchangeSubentityIds ();
00066 
00067   void functional_validation();
00068   void test_medsplitter_para( const std::string& med_file, const std::string& mesh );
00069 };
00070 
00071 #endif