
5 changed files with 47 additions and 0 deletions
@ -0,0 +1,12 @@
|
||||
[wrap-file] |
||||
directory = Catch2-2.13.3 |
||||
source_url = https://github.com/catchorg/Catch2/archive/v2.13.3.zip |
||||
source_filename = Catch2-2.13.3.zip |
||||
source_hash = 1804feb72bc15c0856b4a43aa586c661af9c3685a75973b6a8fc0b950c7cfd13 |
||||
patch_url = https://github.com/mesonbuild/catch2/releases/download/2.13.3-2/catch2.zip |
||||
patch_filename = catch2-2.13.3-2-wrap.zip |
||||
patch_hash = 21b590ab8c65b593ad5ee8f8e5b822bf9877b2c2672f97fbb52459751053eadf |
||||
|
||||
[provide] |
||||
catch2 = catch2_dep |
||||
|
@ -0,0 +1,4 @@
|
||||
#define CATCH_CONFIG_MAIN |
||||
#include "config.hpp" |
||||
|
||||
#include <catch2/catch.hpp> |
@ -0,0 +1,21 @@
|
||||
test_inc = include_directories('../include') |
||||
test_dep = [ |
||||
catch2, |
||||
fmt, |
||||
jsoncpp, |
||||
spdlog, |
||||
] |
||||
|
||||
config_test = executable( |
||||
'config_test', |
||||
'config.cpp', |
||||
'../src/config.cpp', |
||||
dependencies: test_dep, |
||||
include_directories: test_inc, |
||||
) |
||||
|
||||
test( |
||||
'Configuration test', |
||||
config_test, |
||||
workdir: meson.source_root(), |
||||
) |
Loading…
Reference in new issue