11 #ifndef TEST_INTERFACE_OBSAUXCONTROL_H_
12 #define TEST_INTERFACE_OBSAUXCONTROL_H_
18 #define ECKIT_TESTING_SELF_REGISTER_CASES 0
20 #include <boost/noncopyable.hpp>
22 #include "eckit/config/Configuration.h"
23 #include "eckit/testing/Test.h"
34 typedef ObsTestsFixture<OBS> Test_;
37 std::vector<eckit::LocalConfiguration> oconf;
39 for (std::size_t jj = 0; jj < Test_::obspace().size(); ++jj) {
40 std::unique_ptr<ObsAux_> bias(
new ObsAux_(Test_::obspace()[jj], oconf[jj]));
51 typedef ObsTestsFixture<OBS> Test_;
54 std::vector<eckit::LocalConfiguration> oconf;
56 for (std::size_t jj = 0; jj < Test_::obspace().size(); ++jj) {
57 std::unique_ptr<ObsAux_> bias(
new ObsAux_(Test_::obspace()[jj], oconf[jj]));
59 std::unique_ptr<ObsAux_> other(
new ObsAux_(*bias));
71 template <
typename OBS>
78 std::string
testid()
const override {
return "test::ObsAuxControl<" + OBS::name() +
">";}
81 std::vector<eckit::testing::Test>& ts = eckit::testing::specification();
83 ts.emplace_back(
CASE(
"interface/ObsAuxControl/testConstructor")
84 { testConstructor<OBS>(); });
85 ts.emplace_back(
CASE(
"interface/ObsAuxControl/testCopyConstructor")
86 { testCopyConstructor<OBS>(); });
98 #endif // TEST_INTERFACE_OBSAUXCONTROL_H_