log: encapsulate logger
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
8
tests/main.cc
Normal file
8
tests/main.cc
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "util/loglevel.hh"
|
||||
#include <catch2/catch_session.hpp>
|
||||
|
||||
int
|
||||
main(int argc, char* argv[]) {
|
||||
matar::set_log_level(matar::LogLevel::Off);
|
||||
return Catch::Session().run(argc, argv);
|
||||
}
|
@@ -4,11 +4,13 @@ tests_deps = [
|
||||
|
||||
src = include_directories('../src')
|
||||
|
||||
tests_sources = files()
|
||||
tests_sources = files(
|
||||
'main.cc'
|
||||
)
|
||||
|
||||
subdir('cpu')
|
||||
|
||||
catch2 = dependency('catch2-with-main', version: '>=3.4.0', static: true)
|
||||
catch2 = dependency('catch2', version: '>=3.4.0', static: true)
|
||||
catch2_tests = executable(
|
||||
'matar_tests',
|
||||
tests_sources,
|
||||
|
Reference in New Issue
Block a user