mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:16:00 +01:00
35 lines
850 B
C
35 lines
850 B
C
/* See LICENSE file for license and copyright information */
|
|
|
|
#include <check.h>
|
|
#include <stdlib.h>
|
|
#include <gtk/gtk.h>
|
|
|
|
Suite* suite_session();
|
|
Suite* suite_utils();
|
|
|
|
int
|
|
main(int argc, char* argv[])
|
|
{
|
|
Suite* suite = NULL;
|
|
SRunner* suite_runner = NULL;
|
|
int number_failed = 0;
|
|
|
|
/* init gtk */
|
|
gtk_init(&argc, &argv);
|
|
|
|
/* test session */
|
|
suite = suite_session();
|
|
suite_runner = srunner_create(suite);
|
|
srunner_run_all(suite_runner, CK_NORMAL);
|
|
number_failed += srunner_ntests_failed(suite_runner);
|
|
srunner_free(suite_runner);
|
|
|
|
/* test utils */
|
|
suite = suite_utils();
|
|
suite_runner = srunner_create(suite);
|
|
srunner_run_all(suite_runner, CK_NORMAL);
|
|
number_failed += srunner_ntests_failed(suite_runner);
|
|
srunner_free(suite_runner);
|
|
|
|
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
|
}
|