Gromacs  2026.0-dev-20241204-d69d709
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
unittest_main.cpp File Reference
#include "gmxpre.h"
#include <filesystem>
#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   ""
 Path to test input data directory (needs to be set by the build system).
 
#define TEST_TEMP_PATH   ""
 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.
 
#define TEST_USES_DYNAMIC_REGISTRATION   false
 Whether tests will be dynamically registered.
 

Functions

void gmx::test::registerTestsDynamically ()
 Declaration of function used to dynamically register GoogleTest tests. More...
 
int main (int argc, char *argv[])
 Initializes unit testing for Testing Utilities (testutils).