11 #ifndef TEST_INTERFACE_MODELAUXCOVARIANCE_H_ 12 #define TEST_INTERFACE_MODELAUXCOVARIANCE_H_ 16 #define BOOST_TEST_NO_MAIN 17 #define BOOST_TEST_ALTERNATIVE_INIT_API 18 #define BOOST_TEST_DYN_LINK 19 #include <boost/test/unit_test.hpp> 21 #include <boost/noncopyable.hpp> 22 #include <boost/scoped_ptr.hpp> 24 #include "eckit/config/LocalConfiguration.h" 44 return theModelAuxCovarianceFixture;
56 boost::scoped_ptr<const eckit::LocalConfiguration>
conf_;
66 boost::scoped_ptr<Covariance_> bias(
new Covariance_(Test_::config(), Test_::resol()));
67 BOOST_CHECK(bias.get());
70 BOOST_CHECK(!bias.get());
90 boost::unit_test::test_suite * ts = BOOST_TEST_SUITE(
"interface/ModelAuxCovariance");
92 ts->add(BOOST_TEST_CASE(&testConstructor<MODEL>));
94 boost::unit_test::framework::master_test_suite().add(ts);
102 #endif // TEST_INTERFACE_MODELAUXCOVARIANCE_H_
boost::scoped_ptr< Geometry_ > resol_
boost::scoped_ptr< const eckit::LocalConfiguration > conf_
static const eckit::Configuration & config()
ModelAuxCovarianceFixture()
static const Geometry_ & resol()
static ModelAuxCovarianceFixture< MODEL > & getInstance()
void register_tests() const
std::string testid() const
virtual ~ModelAuxCovariance()
oops::ModelAuxCovariance< MODEL > Covariance_
oops::Geometry< MODEL > Geometry_
static const eckit::Configuration & config()
~ModelAuxCovarianceFixture()