11 #ifndef TEST_INTERFACE_OBSERRORCOVARIANCE_H_ 12 #define TEST_INTERFACE_OBSERRORCOVARIANCE_H_ 17 #define BOOST_TEST_NO_MAIN 18 #define BOOST_TEST_ALTERNATIVE_INIT_API 19 #define BOOST_TEST_DYN_LINK 20 #include <boost/test/unit_test.hpp> 22 #include <boost/scoped_ptr.hpp> 24 #include "eckit/config/LocalConfiguration.h" 36 typedef ObsTestsFixture<MODEL> Test_;
39 oops::instantiateObsErrorFactory<MODEL>();
42 std::vector<eckit::LocalConfiguration>
conf;
43 obsconf.get(
"ObsTypes",
conf);
45 for (std::size_t jj = 0; jj < Test_::obspace().size(); ++jj) {
46 const eckit::LocalConfiguration rconf(
conf[jj],
"Covariance");
47 boost::scoped_ptr<Covar_> R(
new Covar_(Test_::obspace()[jj], rconf));
51 BOOST_CHECK(!R.get());
65 boost::unit_test::test_suite * ts = BOOST_TEST_SUITE(
"interface/ObsErrorCovariance");
67 ts->add(BOOST_TEST_CASE(&testConstructor<MODEL>));
69 boost::unit_test::framework::master_test_suite().add(ts);
77 #endif // TEST_INTERFACE_OBSERRORCOVARIANCE_H_
std::string testid() const
static const eckit::Configuration & config()
void register_tests() const
virtual ~ObsErrorCovariance()
Observation error covariance matrix.