libamxrt  0.4.2
Ambiorix Run Time Library
test_main.c File Reference
#include <stdlib.h>
#include <setjmp.h>
#include <stdarg.h>
#include <cmocka.h>
#include "test_amxrt_runtime.h"

Go to the source code of this file.

Functions

int main (void)
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 62 of file test_main.c.

62  {
63  const struct CMUnitTest tests[] = {
65  cmocka_unit_test(test_runtime_parses_default_odl),
66  cmocka_unit_test(test_runtime_parses_odls),
68  cmocka_unit_test(test_runtime_succeeds_when_no_odl),
69  cmocka_unit_test(test_runtime_fails_when_invalid_odl),
70  cmocka_unit_test(test_runtime_connects_to_uri),
71  cmocka_unit_test(test_runtime_cannot_load_backends),
72  cmocka_unit_test(test_runtime_cannot_connect_bus_uri),
73  cmocka_unit_test(test_runtime_creates_pid_file),
74  cmocka_unit_test(test_runtime_daemon_failed),
75  cmocka_unit_test(test_runtime_set_priority_failed),
76  cmocka_unit_test(test_runtime_parse_args_odl),
77  cmocka_unit_test(test_runtime_parse_args_wrong_odl),
78  cmocka_unit_test(test_runtime_no_pidfile),
79  cmocka_unit_test(test_runtime_parses_post_includes),
80  cmocka_unit_test(test_runtime_opens_syslog),
81  cmocka_unit_test(test_runtime_dumps_config),
83  cmocka_unit_test(test_runtime_enables_system_signal),
84  cmocka_unit_test(test_runtime_forced_options_are_kept),
86  cmocka_unit_test(test_runtime_can_pass_option_path),
90  cmocka_unit_test(test_runtime_can_wait_for_objects),
96  };
97  return cmocka_run_group_tests(tests, test_runtime_setup, test_runtime_teardown);
98 }
void test_runtime_can_wait_for_objects(UNUSED void **state)
void test_runtime_parses_default_odl(UNUSED void **state)
void test_runtime_parse_args_wrong_odl(UNUSED void **state)
void test_runtime_parses_odls_and_handle_events(UNUSED void **state)
void test_runtime_forced_options_are_kept(UNUSED void **state)
int test_runtime_setup(UNUSED void **state)
void test_runtime_parse_args_odl(UNUSED void **state)
void test_runtime_fails_when_invalid_odl(UNUSED void **state)
void test_runtime_connect_fails_if_no_backends(UNUSED void **state)
void test_runtime_creates_pid_file(UNUSED void **state)
void test_runtime_start_prints_help_and_exits(UNUSED void **state)
void test_runtime_cannot_connect_bus_uri(UNUSED void **state)
void test_runtime_stops_el_when_registering_after_wait_fails(UNUSED void **state)
void test_runtime_cannot_load_backends(UNUSED void **state)
void test_runtime_parses_post_includes(UNUSED void **state)
void test_runtime_dumps_config(UNUSED void **state)
void test_runtime_fails_when_registering_dm_fails(UNUSED void **state)
void test_runtime_enables_system_signals_list(UNUSED void **state)
void test_runtime_opens_syslog(UNUSED void **state)
void test_runtime_options_can_be_overwritten(UNUSED void **state)
void test_runtime_set_priority_failed(UNUSED void **state)
void test_runtime_parses_odls(UNUSED void **state)
void test_runtime_can_suspend_events_while_waiting(UNUSED void **state)
void test_runtime_can_pass_json_value_option(UNUSED void **state)
void test_runtime_forced_options_with_path_are_kept(UNUSED void **state)
void test_runtime_succeeds_when_no_odl(UNUSED void **state)
void test_runtime_daemon_failed(UNUSED void **state)
void test_runtime_can_pass_option_path(UNUSED void **state)
void test_runtime_wait_for_objects_can_fail(UNUSED void **state)
void test_runtime_can_create_listen_sockets(UNUSED void **state)
void test_runtime_enables_system_signal(UNUSED void **state)
int test_runtime_teardown(UNUSED void **state)
void test_runtime_connects_to_uri(UNUSED void **state)
void test_runtime_no_pidfile(UNUSED void **state)