2018-11-27 23:10:18 +01:00
|
|
|
/* SPDX-License-Identifier: Zlib */
|
2012-03-19 17:00:34 +01:00
|
|
|
|
|
|
|
#include <check.h>
|
|
|
|
|
2014-11-07 15:57:46 +01:00
|
|
|
#include "zathura.h"
|
2018-05-21 11:38:55 +02:00
|
|
|
#include "tests.h"
|
2012-03-19 17:00:34 +01:00
|
|
|
|
|
|
|
START_TEST(test_create) {
|
2012-08-30 20:07:50 +02:00
|
|
|
zathura_t* zathura = zathura_create();
|
2021-09-20 00:04:58 +02:00
|
|
|
ck_assert_ptr_nonnull(zathura);
|
|
|
|
ck_assert(zathura_init(zathura));
|
2012-03-19 17:00:34 +01:00
|
|
|
zathura_free(zathura);
|
|
|
|
} END_TEST
|
|
|
|
|
2018-05-21 11:38:55 +02:00
|
|
|
static Suite* suite_session(void)
|
2012-03-19 17:00:34 +01:00
|
|
|
{
|
|
|
|
TCase* tcase = NULL;
|
|
|
|
Suite* suite = suite_create("Session");
|
|
|
|
|
|
|
|
/* basic */
|
|
|
|
tcase = tcase_create("basic");
|
2018-05-21 11:38:55 +02:00
|
|
|
tcase_add_checked_fixture(tcase, setup, NULL);
|
2012-03-19 17:00:34 +01:00
|
|
|
tcase_add_test(tcase, test_create);
|
|
|
|
suite_add_tcase(suite, tcase);
|
|
|
|
|
|
|
|
return suite;
|
|
|
|
}
|
2018-05-21 11:38:55 +02:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
return run_suite(suite_session());
|
|
|
|
}
|