summaryrefslogtreecommitdiffstats
path: root/tests/test_common.hh
blob: 919e58d22bb4cdf899393f5ce8601bb18103eadc (plain)
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 ();
}