1
0
mirror of https://github.com/falk-werner/webfused synced 2026-03-02 04:09:19 +00:00

increased test coverage

This commit is contained in:
Falk Werner
2020-03-20 10:26:41 +01:00
parent 7553846629
commit ba270f1d0d
11 changed files with 414 additions and 16 deletions

View File

@@ -124,6 +124,8 @@ add_executable(alltests
test/mock_credentials.cc
test/mock_settings.cc
test/mock_pam.cc
test/mock_libconfig.cc
test/mock_linux.cc
test/test_config_factory.cc
test/test_config.cc
test/test_settings.cc
@@ -136,6 +138,7 @@ add_executable(alltests
test/test_stderr_logger.cc
test/test_syslog_logger.cc
test/test_daemon.cc
test/test_change_user.cc
)
target_include_directories(alltests PRIVATE
@@ -172,6 +175,15 @@ target_link_libraries(alltests PRIVATE
-Wl,--wrap=pam_authenticate
-Wl,--wrap=pam_acct_mgmt
-Wl,--wrap=config_setting_get_elem
-Wl,--wrap=getuid
-Wl,--wrap=getgrnam
-Wl,--wrap=setgid
-Wl,--wrap=setgroups
-Wl,--wrap=getpwnam
-Wl,--wrap=setuid
webfused-static
userdb
${LIBCONFIG_LIBRARIES}