COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
utest-build-options.cpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium
2 //
3 // This software is distributed under the terms of the
4 // GNU Lesser General Public License version 3 (LGPLv3).
5 // See doc/lgpl.txt and doc/gpl.txt for the license text.
6 
7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for Map component"
9 
10 #include<iostream>
11 
12 #include <boost/test/unit_test.hpp>
13 
14 #include <coolfluid-config.hpp>
15 
16 #include "common/Assertions.hpp"
17 
19 
20 using namespace cf3;
21 using namespace cf3::common;
22 
24 
25 BOOST_AUTO_TEST_SUITE( BuildOptions )
26 
27 
29 BOOST_AUTO_TEST_CASE ( TestAssertions )
30 {
31  std::cout << "Build type is " << CF3_BUILD_TYPE << std::endl;
32 
33  bool was_asserted = false;
34 
35  cf3_assert(was_asserted = true);
36 
37  if(std::string(CF3_BUILD_TYPE) == "RELEASE")
38  {
39  BOOST_CHECK(!was_asserted);
40  }
41  else
42  {
43  BOOST_CHECK(was_asserted);
44  }
45 }
46 
48 
49 
50 BOOST_AUTO_TEST_SUITE_END()
51 
52 
BOOST_AUTO_TEST_CASE(TestAssertions)
#define cf3_assert(a)
Definition: Assertions.hpp:93
Top-level namespace for coolfluid.
Definition: Action.cpp:18
Most basic kernel library.
Definition: Action.cpp:19
Send comments to:
COOLFluiD Web Admin