tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches

◆ TTS_CUSTOM_DRIVER_FUNCTION

#define TTS_CUSTOM_DRIVER_FUNCTION

Test application entry-point customization.

TTS - Tiny Test System Copyright : TTS Contributors & Maintainers SPDX-License-Identifier: BSL-1.0

In case where the main function is to br provided externally, one can redefine TTS_CUSTOM_DRIVER_FUNCTION in order to specify the name of the test executable entry point.

See also
TTS_MAIN
tts::initialize
tts::report

Example

#define TTS_MAIN
#define TTS_CUSTOM_DRIVER_FUNCTION my_test_main
#include <tts/tts.hpp>
TTS_CASE( "Some test" ) {};
int main(int argc, char const** argv)
{
::tts::initialize(argc,argv);
my_test_main(argc, argv);
return ::tts::report(0,1);
}
#define TTS_CASE(ID)
Introduces a new test scenario and registers it into the current test driver.
Definition: case.hpp:147
void initialize(int argc, const char **argv)
Initializes a TTS test suite.
Definition: option.hpp:145