File: test_common.hh

package info (click to toggle)
astroidmail 0.17%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,160 kB
  • sloc: cpp: 21,133; ansic: 1,619; python: 93; sh: 73; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# pragma once

# include "astroid.hh"
# include "proto.hh"
# include <boost/log/core.hpp>

namespace logging = boost::log;

using Astroid::astroid;
using Astroid::ustring;

// for logging
# define test trace

void setup () {
  astroid = Astroid::Astroid::create ();
  astroid->main_test ();
}

void teardown () {
  Astroid::astroid.clear ();
  logging::core::get()->remove_all_sinks ();
}