 |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Go to the documentation of this file.
19 #define TEST_BAD_FAIL_EXIT_CODE 99
45 extern int test_printf(
const char *restrict fmt, ...);
50 typedef unsigned rid_t;
unsigned rid_t
Used to identify in a node the computing resources (threads at the moment)
int nid_t
Used to identify MPI nodes in a distributed environment.
int(* test_init_fnc)(void)
The test initialization function.
int(* test_fini_fnc)(void)
The test finalization function.
A complete test configuration.
bool test_thread_barrier(void)
Synchronizes threads on a barrier.
int test_printf(const char *restrict fmt,...)
Registers a formatted string to compare against the expected output.
const char * expected_output
The expected output from the whole sequence of test_printf() calls.
int(* test_fnc)(void)
The core test function.
size_t expected_output_size
The expected output size of the full sequence of test_printf() calls.
uint64_t lp_id_t
Used to uniquely identify LPs in the simulation.
const char ** test_arguments
The command line arguments passed to the wrapped main function.
unsigned threads_count
test_fnc is executed with that many cores