MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
test_main.cpp
Go to the documentation of this file.
1 /*
2  * MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
3  * Copyright (C) 2013-2020 Manav Bhatia and MAST authors
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 
21 #define BOOST_TEST_DYN_LINK
22 #define BOOST_TEST_MODULE MAST_TESTS
23 #include <boost/test/unit_test.hpp>
24 
25 
26 // C++ includes
27 #include <memory>
28 
29 // MAST includes
30 #include "base/mast_data_types.h"
31 
32 // libMesh includes
33 #include "libmesh/libmesh.h"
34 
35 
36 libMesh::LibMeshInit *_mast_init = nullptr;
37 
39 
41 
42  // create the libMeshInit function
43  _mast_init = new libMesh::LibMeshInit(boost::unit_test::framework::master_test_suite().argc,
44  boost::unit_test::framework::master_test_suite().argv);
45  }
46 
48 
49  delete _mast_init;
50  }
51 
52 };
53 
54 
56 
57 
58 
BOOST_GLOBAL_FIXTURE(GlobalTestFixture)
libMesh::LibMeshInit * _mast_init
Definition: test_main.cpp:36