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
38
struct
GlobalTestFixture
{
39
40
GlobalTestFixture
() {
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
47
~GlobalTestFixture
() {
48
49
delete
_mast_init
;
50
}
51
52
};
53
54
55
BOOST_GLOBAL_FIXTURE
(
GlobalTestFixture
);
56
57
58
GlobalTestFixture::GlobalTestFixture
GlobalTestFixture()
Definition:
test_main.cpp:40
BOOST_GLOBAL_FIXTURE
BOOST_GLOBAL_FIXTURE(GlobalTestFixture)
GlobalTestFixture::~GlobalTestFixture
~GlobalTestFixture()
Definition:
test_main.cpp:47
mast_data_types.h
GlobalTestFixture
Definition:
test_main.cpp:38
_mast_init
libMesh::LibMeshInit * _mast_init
Definition:
test_main.cpp:36
tests
old
base
test_main.cpp
Generated on Fri Jul 24 2020 16:05:45 for MAST by
1.8.13