pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
|
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <setjmp.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <cmocka.h>
#include <crm/common/xml.h>
Go to the source code of this file.
Macros | |
#define | __gcov_dump() |
#define | pcmk__assert_asserts(stmt) |
#define | pcmk__assert_aborts(stmt) pcmk__assert_asserts(stmt) |
#define | pcmk__assert_exits(rc, stmt) |
#define | PCMK__UNIT_TEST(group_setup, group_teardown, ...) |
Functions | |
void | pcmk__assert_validates (xmlNode *xml) |
int | pcmk__xml_test_setup_group (void **state) |
int | pcmk__xml_test_teardown_group (void **state) |
char * | pcmk__cib_test_copy_cib (const char *in_file) |
void | pcmk__cib_test_cleanup (char *out_path) |
void | pcmk__test_init_logging (const char *name, const char *filename) |
#define __gcov_dump | ( | ) |
Definition at line 39 of file unittest_internal.h.
#define pcmk__assert_aborts | ( | stmt | ) | pcmk__assert_asserts(stmt) |
Definition at line 157 of file unittest_internal.h.
#define pcmk__assert_asserts | ( | stmt | ) |
Definition at line 128 of file unittest_internal.h.
#define pcmk__assert_exits | ( | rc, | |
stmt | |||
) |
Definition at line 174 of file unittest_internal.h.
#define PCMK__UNIT_TEST | ( | group_setup, | |
group_teardown, | |||
... | |||
) |
Definition at line 203 of file unittest_internal.h.
void pcmk__assert_validates | ( | xmlNode * | xml | ) |
Definition at line 20 of file unittest.c.
void pcmk__cib_test_cleanup | ( | char * | out_path | ) |
Definition at line 147 of file unittest.c.
char* pcmk__cib_test_copy_cib | ( | const char * | in_file | ) |
Definition at line 112 of file unittest.c.
void pcmk__test_init_logging | ( | const char * | name, |
const char * | filename | ||
) |
Definition at line 164 of file unittest.c.
int pcmk__xml_test_setup_group | ( | void ** | state | ) |
Definition at line 85 of file unittest.c.
int pcmk__xml_test_teardown_group | ( | void ** | state | ) |
Definition at line 104 of file unittest.c.