blob: 7d4602b5225e1a3685e2139f4c1f92f474390b22 [file] [log] [blame]
Alexander Afanasyev4ffcff22014-09-02 15:39:20 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (c) 2014, Regents of the University of California.
4 *
5 * This file is part of NDNS (Named Data Networking Domain Name Service).
6 * See AUTHORS.md for complete list of NDNS authors and contributors.
7 *
8 * NDNS is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
11 *
12 * NDNS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * NDNS, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#define BOOST_TEST_MAIN 1
21#define BOOST_TEST_DYN_LINK 1
22
Alexander Afanasyevc7c99002015-10-09 17:27:30 -070023#include <boost/version.hpp>
Alexander Afanasyev4ffcff22014-09-02 15:39:20 -070024#include <boost/test/unit_test.hpp>
Alexander Afanasyevc7c99002015-10-09 17:27:30 -070025#include <boost/noncopyable.hpp>
Alexander Afanasyev59a42ec2014-09-02 18:21:16 -070026
27#include "logger.hpp"
Shock Jiang3016c982014-11-11 11:35:17 -080028#include "config.hpp"
Alexander Afanasyev59a42ec2014-09-02 18:21:16 -070029
30namespace ndn {
31namespace ndns {
32namespace tests {
33
Shock Jiang3016c982014-11-11 11:35:17 -080034class UnitTestsLogging : boost::noncopyable
Alexander Afanasyev59a42ec2014-09-02 18:21:16 -070035{
36public:
37 UnitTestsLogging()
38 {
39 log::init("unit-tests.log4cxx");
40 }
41};
42
43BOOST_GLOBAL_FIXTURE(UnitTestsLogging)
Alexander Afanasyevc7c99002015-10-09 17:27:30 -070044#if (BOOST_VERSION >= 105900)
45;
46#endif // BOOST_VERSION >= 105900
Alexander Afanasyev59a42ec2014-09-02 18:21:16 -070047
48} // namespace tests
49} // namespace ndns
50} // namespace ndn