Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
unittest_main.cpp File Reference
#include "gmxpre.h"
#include <gtest/gtest.h>
#include "testutils/testinit.h"
+ Include dependency graph for unittest_main.cpp:

Description

main() for unit tests that use Testing Utilities (testutils).

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Macros

#define TEST_DATA_PATH   0
 Path to test input data directory (needs to be set by the build system).
 
#define TEST_TEMP_PATH   0
 Path to test output temporary directory (needs to be set by the build system).
 
#define TEST_USES_MPI   false
 Whether the test expects/supports running with multiple MPI ranks.
 
#define TEST_USES_HARDWARE_DETECTION   false
 Whether the test expects/supports running with knowledge of the hardware.
 

Functions

void gmx::test::callAddGlobalTestEnvironment ()
 This constructs the test environment during setup of the unit test so that they can use the hardware context. More...
 
int main (int argc, char *argv[])
 Initializes unit testing for Testing Utilities (testutils).