11 #ifndef L95_TEST_LORENZ95_TESTCONFIG_H_ 12 #define L95_TEST_LORENZ95_TESTCONFIG_H_ 16 #include <boost/scoped_ptr.hpp> 17 #include <boost/test/unit_test.hpp> 19 #include "eckit/config/LocalConfiguration.h" 20 #include "eckit/config/YAMLConfiguration.h" 21 #include "eckit/exception/Exceptions.h" 22 #include "eckit/runtime/Main.h" 30 static const eckit::Configuration &
config() {
36 ASSERT(eckit::Main::ready());
38 int narg = eckit::Main::instance().argc();
40 eckit::PathName fname = eckit::Main::instance().argv(narg-1);
41 config_.reset(
new eckit::YAMLConfiguration(fname));
47 boost::scoped_ptr<const eckit::YAMLConfiguration>
config_;
54 #endif // L95_TEST_LORENZ95_TESTCONFIG_H_
boost::scoped_ptr< const eckit::YAMLConfiguration > config_
static const eckit::Configuration & config()