Molssi Driver Interface Library: /repo/build/MDI_Library/MDI_Library/mdi_test.h Source File

|  | Molssi Driver Interface Library

mdi_test.h
Go to the documentation of this file.
1
6 #ifndef MDI_TEST_IMPL
7 #define MDI_TEST_IMPL
8
9 #include "mdi.h"
10
11 int enable_test_support(int code_id);
12 int test_on_selection();
13 int test_on_accept_communicator();
14 int test_on_send_command(const char* command, MDI_Comm comm, int* skip_flag);
15 int test_after_send_command(const char* command, MDI_Comm comm);
16 int test_on_recv_command(MDI_Comm comm);
17
18 int test_initialize();
19 int test_send(const void* buf, int count, MDI_Datatype datatype, MDI_Comm comm, int msg_flag);
20 int test_recv(void* buf, int count, MDI_Datatype datatype, MDI_Comm comm, int msg_flag);
21
22 #endif
test_on_send_command
int test_on_send_command(const char *command, MDI_Comm comm, int *skip_flag)
Callback when the TEST method must send a command.
Definition: mdi_test.c:95
test_on_accept_communicator
int test_on_accept_communicator()
Callback when the TEST method must accept a communicator.
Definition: mdi_test.c:65
enable_test_support
int enable_test_support(int code_id)
Enable support for the TEST method.
Definition: mdi_test.c:16
test_on_selection
int test_on_selection()
Callback when the end-user selects TCP as the method.
Definition: mdi_test.c:41
test_recv
int test_recv(void *buf, int count, MDI_Datatype datatype, MDI_Comm comm, int msg_flag)
Dummy function to handle receiving data through an MDI connection, for testing purposes.
Definition: mdi_test.c:195
test_send
int test_send(const void *buf, int count, MDI_Datatype datatype, MDI_Comm comm, int msg_flag)
Dummy function to handle sending data through an MDI connection, for testing purposes.
Definition: mdi_test.c:167
test_on_recv_command
int test_on_recv_command(MDI_Comm comm)
Callback when the TEST method must receive a command.
Definition: mdi_test.c:114
test_initialize
int test_initialize()
Perform initialization of a dummy communicator for testing purposes.
Definition: mdi_test.c:123
test_after_send_command
int test_after_send_command(const char *command, MDI_Comm comm)
Callback after the TEST method has received a command.
Definition: mdi_test.c:102