2 #include <boost/test/unit_test.hpp> 3 #include <boost/foreach.hpp> 23 #ifdef HAVE_FEENABLEEXCEPT 24 feclearexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
25 feenableexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
40 BOOST_FOREACH(
const std::string& Fname, cleanup_list) {
41 unlink(Fname.c_str());
65 char* srcdir = getenv(
"abs_top_srcdir");
69 BOOST_FAIL(
"To run this test, you must set the 'abs_top_srcdir' environment\n" 70 "variable to the top of the source tree. This is automatically\n" 71 "done if you are running 'make check', but you need to\n" 72 "manually set this if you are running outside of make (e.g.,\n" 73 "running in a debugger");
74 return std::string(srcdir) +
"/input/";
85 char* srcdir = getenv(
"abs_top_srcdir");
89 BOOST_FAIL(
"To run this test, you must set the 'abs_top_srcdir' environment\n" 90 "variable to the top of the source tree. This is automatically\n" 91 "done if you are running 'make check', but you need to\n" 92 "manually set this if you are running outside of make (e.g.,\n" 93 "running in a debugger");
94 return std::string(srcdir) +
"/test/unit/data/";
103 char* srcdir = getenv(
"abscodir");
107 BOOST_FAIL(
"To run this test, you must set the 'abscodir' environment\n" 108 "variable to the top of the source tree. This is automatically\n" 109 "done if you are running 'make check', but you need to\n" 110 "manually set this if you are running outside of make (e.g.,\n" 111 "running in a debugger");
112 return std::string(srcdir) +
"/v3.3.0/lowres";
121 char* srcdir = getenv(
"merradir");
125 BOOST_FAIL(
"To run this test, you must set the 'merradir' environment\n" 126 "variable to the top of the source tree. This is automatically\n" 127 "done if you are running 'make check', but you need to\n" 128 "manually set this if you are running outside of make (e.g.,\n" 129 "running in a debugger");
130 return std::string(srcdir) +
"/";
142 char* srcdir = getenv(
"abscodir");
146 BOOST_FAIL(
"To run this test, you must set the 'abscodir' environment\n" 147 "variable to the top of the source tree. This is automatically\n" 148 "done if you are running 'make check', but you need to\n" 149 "manually set this if you are running outside of make (e.g.,\n" 150 "running in a debugger");
151 return std::string(srcdir) +
"/v4.2.0_unscaled";
void turn_on_logger() const
Normally log messages don't go anywhere, so we don't clutter our unit test output.
std::string absco_4d_dir() const
Location of absco 4d table.
GlobalFixture()
Setup for all unit tests.
std::string absco_data_dir() const
Location of absco table.
std::string input_dir() const
Directory where input data such as static input files and default Lua configuration files are located...
virtual ~GlobalFixture()
Teardown for all unit tests.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
std::string test_data_dir() const
Directory where test data is.
This is the implementation of the Logger used for the Full Physics program.
std::string merra_data_dir() const
Location of merra data.
static void set_implementation(const boost::shared_ptr< LogImp > &imp)
Set the implementation.