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:
parent
3de2170ad6
commit
32be16ef98
2 changed files with 12 additions and 11 deletions
|
@ -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");
|
||||
|
|
|
@ -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"
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue