mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
test: add build configs for catch2
This commit is contained in:
4
test/config.cpp
Normal file
4
test/config.cpp
Normal file
@ -0,0 +1,4 @@
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include "config.hpp"
|
||||
|
||||
#include <catch2/catch.hpp>
|
21
test/meson.build
Normal file
21
test/meson.build
Normal file
@ -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(),
|
||||
)
|
Reference in New Issue
Block a user