1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

tests/graph: move criterion setup to from main.cpp to graph.cpp

This commit is contained in:
Daniel Krebs 2018-01-31 11:21:02 +01:00
parent 3de2170ad6
commit 32be16ef98
2 changed files with 12 additions and 11 deletions

View file

@ -4,6 +4,18 @@
#include <villas/directed_graph.hpp>
#include <villas/log.hpp>
static void init_graph()
{
spdlog::set_pattern("[%T] [%l] [%n] %v");
spdlog::set_level(spdlog::level::debug);
}
TestSuite(graph,
.init = init_graph,
.description = "Graph library"
);
Test(graph, basic, .description = "DirectedGraph")
{
auto logger = loggerGetOrCreate("unittest:basic");

View file

@ -105,14 +105,3 @@ TestSuite(fpga,
.fini = fini,
.description = "VILLASfpga"
);
static void init_graph()
{
spdlog::set_pattern("[%T] [%l] [%n] %v");
spdlog::set_level(spdlog::level::debug);
}
TestSuite(graph,
.init = init_graph,
.description = "Graph library"
);