blob: a288147530fb5dff60b7f7c2098fc9f8550c9150 [file] [log] [blame]
Steve DiBenedettobf6a93d2014-03-21 14:03:02 -06001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#include "../test-common.hpp"
8#include "core/logger.hpp"
9#include "mgmt/config-file.hpp"
10
11#include <boost/filesystem.hpp>
12
13namespace nfd {
14namespace tests {
15
16class GlobalConfigurationFixture
17{
18public:
19 GlobalConfigurationFixture()
20 {
21 const std::string filename = "unit-tests.conf";
22 if (boost::filesystem::exists(filename))
23 {
24 ConfigFile config;
25 LoggerFactory::getInstance().setConfigFile(config);
26
27 config.parse(filename, false);
28 }
29 }
30};
31
32BOOST_GLOBAL_FIXTURE(GlobalConfigurationFixture)
33
34} // namespace tests
35} // namespace nfd