Gromacs  2025.0-dev-20241029-e106fce
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
testinit.h File Reference
#include <filesystem>
#include <string>
#include <gtest/gtest.h>
#include "naming.h"
+ Include dependency graph for testinit.h:
+ This graph shows which files directly or indirectly include this file:

Description

Functions for initialing GROMACS unit test executables.

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

Functions

void gmx::test::initTestUtils (const std::filesystem::path &dataPath, const std::filesystem::path &tempPath, bool usesMpi, bool usesHardwareDetection, bool registersDynamically, int *argc, char ***argv)
 Initializes the test utilities library. More...
 
void gmx::test::finalizeTestUtils (bool usesHardwareDetection, bool registersDynamically)
 Finalizes the test utilities library. More...
 
void gmx::test::registerTestsDynamically ()
 Declaration of function used to dynamically register GoogleTest tests. More...
 
template<typename TestFixture , typename TestCase , typename Combinations >
void gmx::test::registerTests (const std::string &testSuiteName, const NameOfTestFromTuple< typename TestFixture::ParamType > &testNamer, const Combinations &combinations)
 Register tests dynamically based on the execution context. More...
 
template<typename TestFixture , typename TestCase , typename Combinations >
void gmx::test::registerTests (const std::string &testSuiteName, std::string(*makeBriefNameOfTestCase)(const typename::testing::TestParamInfo< typename TestFixture::ParamType > &), std::string(*makeFullNameOfTestCase)(const typename::testing::TestParamInfo< typename TestFixture::ParamType > &, const std::string &), const Combinations &combinations)
 DEPRECATED Register tests dynamically based on the execution context. More...