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: minor fixes in logging

This commit is contained in:
Daniel Krebs 2018-02-13 15:39:03 +01:00 committed by Steffen Vogel
parent 21333379a9
commit e66350dbf6
3 changed files with 11 additions and 6 deletions

View file

@ -51,6 +51,9 @@ static void init()
FILE *f;
json_error_t err;
spdlog::set_level(spdlog::level::debug);
spdlog::set_pattern("[%T] [%l] [%n] %v");
villas::Plugin::dumpList();
ret = pci_init(&pci);

View file

@ -12,16 +12,17 @@ static void init_graph()
}
TestSuite(graph,
.description = "Graph library"
.description = "Graph library",
.init = init_graph
);
Test(graph, basic, .description = "DirectedGraph")
{
auto logger = loggerGetOrCreate("test:graph:basic");
logger->info("Testing basic graph construction and modification");
villas::graph::DirectedGraph<> g("test:graph:basic");
logger->info("Testing basic graph construction and modification");
std::shared_ptr<villas::graph::Vertex> v1(new villas::graph::Vertex);
std::shared_ptr<villas::graph::Vertex> v2(new villas::graph::Vertex);
std::shared_ptr<villas::graph::Vertex> v3(new villas::graph::Vertex);
@ -116,7 +117,7 @@ Test(graph, path, .description = "Find path")
Test(graph, memory_manager, .description = "Global Memory Manager")
{
auto logger = loggerGetOrCreate("unittest:mm");
auto logger = loggerGetOrCreate("test:graph:mm");
auto& mm = villas::MemoryManager::get();
logger->info("Create address spaces");

View file

@ -63,9 +63,10 @@ ReportHook(PRE_ALL)(struct criterion_test_set *tests)
int main(int argc, char *argv[])
{
int ret;
spdlog::set_level(spdlog::level::debug);
spdlog::set_pattern("[%T] [%l] [%n] %v");
/* Run criterion tests */
auto tests = criterion_initialize();