2021-06-27 05:37:58 +03:00
|
|
|
#if defined(HAVE_CONFIG_H)
|
|
|
|
#include "config_ac.h"
|
|
|
|
#endif
|
|
|
|
|
2023-01-09 15:58:38 +03:00
|
|
|
#include <stdio.h>
|
2021-06-27 05:37:58 +03:00
|
|
|
#include <stdlib.h>
|
2022-04-06 13:59:23 +03:00
|
|
|
#include "log.h"
|
2021-06-27 05:37:58 +03:00
|
|
|
#include "test_libxrdp.h"
|
|
|
|
|
|
|
|
int main (void)
|
|
|
|
{
|
|
|
|
int number_failed;
|
|
|
|
SRunner *sr;
|
|
|
|
|
2022-03-20 09:55:09 +03:00
|
|
|
sr = srunner_create(make_suite_test_xrdp_sec_process_mcs_data_monitors());
|
|
|
|
srunner_add_suite(sr, make_suite_test_monitor_processing());
|
2021-06-27 05:37:58 +03:00
|
|
|
|
|
|
|
srunner_set_tap(sr, "-");
|
2022-04-06 13:59:23 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Set up console logging */
|
|
|
|
struct log_config *lc = log_config_init_for_console(LOG_LEVEL_INFO, NULL);
|
|
|
|
log_start_from_param(lc);
|
|
|
|
log_config_free(lc);
|
2023-01-09 15:58:38 +03:00
|
|
|
/* Disable stdout buffering, as this can confuse the error
|
|
|
|
* reporting when running in libcheck fork mode */
|
|
|
|
setvbuf(stdout, NULL, _IONBF, 0);
|
2022-04-06 13:59:23 +03:00
|
|
|
|
2021-06-27 05:37:58 +03:00
|
|
|
srunner_run_all (sr, CK_ENV);
|
|
|
|
number_failed = srunner_ntests_failed(sr);
|
|
|
|
srunner_free(sr);
|
2022-04-06 13:59:23 +03:00
|
|
|
log_end();
|
2021-06-27 05:37:58 +03:00
|
|
|
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
|
|
|
}
|