MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
#include <setjmp.h>
#include <cmocka.h>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include "stub.h"
#include <libgadget/hci.h>
Go to the source code of this file.
Functions | |
static void | touch (char *prefix, char *b) |
static int | exists (char *prefix, char *b) |
static void | test_hci_no_action (void **state) |
static void | test_hci_auto_checkpoint (void **state) |
static void | test_hci_auto_checkpoint2 (void **state) |
static void | test_hci_timeout (void **state) |
static void | test_hci_stop (void **state) |
static void | test_hci_checkpoint (void **state) |
static void | test_hci_terminate (void **state) |
static int | setup (void **state) |
static int | teardown (void **state) |
int | main (void) |
Variables | |
char | prefix [1024] = "XXXXXXXX" |
HCIManager | manager [1] |
|
static |
Definition at line 25 of file test_hci.c.
References fastpm_strdup_printf(), myfree, and prefix.
Referenced by test_hci_checkpoint(), test_hci_stop(), and test_hci_terminate().
int main | ( | void | ) |
Definition at line 174 of file test_hci.c.
References setup(), teardown(), test_hci_auto_checkpoint(), test_hci_auto_checkpoint2(), test_hci_checkpoint(), test_hci_no_action(), test_hci_stop(), test_hci_terminate(), and test_hci_timeout().
|
static |
Definition at line 161 of file test_hci.c.
References message(), and prefix.
Referenced by main().
|
static |
Definition at line 168 of file test_hci.c.
References prefix.
Referenced by main().
|
static |
Definition at line 56 of file test_hci.c.
References HCI_AUTO_CHECKPOINT, hci_init(), hci_override_now(), hci_query(), HCIManager::LongestTimeBetweenQueries, manager, prefix, HCIAction::type, HCIAction::write_fof, and HCIAction::write_snapshot.
Referenced by main().
|
static |
Definition at line 76 of file test_hci.c.
References HCI_AUTO_CHECKPOINT, hci_init(), hci_override_now(), hci_query(), HCIManager::LongestTimeBetweenQueries, manager, prefix, HCIAction::type, HCIAction::write_fof, and HCIAction::write_snapshot.
Referenced by main().
|
static |
Definition at line 130 of file test_hci.c.
References exists(), HCI_CHECKPOINT, hci_init(), hci_override_now(), hci_query(), manager, prefix, touch(), HCIAction::type, and HCIAction::write_snapshot.
Referenced by main().
|
static |
Definition at line 42 of file test_hci.c.
References hci_init(), HCI_NO_ACTION, hci_override_now(), hci_query(), manager, prefix, HCIAction::type, and HCIAction::write_snapshot.
Referenced by main().
|
static |
Definition at line 114 of file test_hci.c.
References exists(), hci_init(), hci_override_now(), hci_query(), HCI_STOP, manager, prefix, touch(), HCIAction::type, and HCIAction::write_snapshot.
Referenced by main().
|
static |
Definition at line 146 of file test_hci.c.
References exists(), hci_init(), hci_override_now(), hci_query(), HCI_TERMINATE, manager, prefix, touch(), HCIAction::type, and HCIAction::write_snapshot.
Referenced by main().
|
static |
Definition at line 96 of file test_hci.c.
References hci_init(), hci_override_now(), hci_query(), HCI_TIMEOUT, HCIManager::LongestTimeBetweenQueries, manager, prefix, HCIAction::type, and HCIAction::write_snapshot.
Referenced by main().
|
static |
Definition at line 16 of file test_hci.c.
References fastpm_strdup_printf(), myfree, and prefix.
Referenced by test_hci_checkpoint(), test_hci_stop(), and test_hci_terminate().
HCIManager manager[1] |
Definition at line 37 of file test_hci.c.
Referenced by hci_get_elapsed_time(), hci_init(), hci_now(), hci_override_now(), hci_query(), hci_query_auto_checkpoint(), hci_query_filesystem(), hci_query_timeout(), hci_update_query_timer(), test_hci_auto_checkpoint(), test_hci_auto_checkpoint2(), test_hci_checkpoint(), test_hci_no_action(), test_hci_stop(), test_hci_terminate(), and test_hci_timeout().
char prefix[1024] = "XXXXXXXX" |
Definition at line 13 of file test_hci.c.
Referenced by exists(), hci_init(), MPIU_Tracev(), putline(), setup(), teardown(), test_hci_auto_checkpoint(), test_hci_auto_checkpoint2(), test_hci_checkpoint(), test_hci_no_action(), test_hci_stop(), test_hci_terminate(), test_hci_timeout(), touch(), and walltime_update_parents().