1 #ifndef _h_ktst_test_tools_
2 #define _h_ktst_test_tools_
3 
4 ////////////////////////////////////////////////////////////////////////////////
5 // these macros are available outside of test cases' code
6 
7 #define LOG(log_level, msg) \
8     (log_level >= ncbi::NK::TestEnv::verbosity ? (std::cerr << msg) : std::cerr)
9 
10 #define TEST_MESSAGE(M) \
11 { ncbi_NK_saveLocation(__FILE__,__LINE__); \
12     LOG(ncbi::NK::LogLevel::e_message, M << std::endl); }
13 
14 #define TEST_CHECKPOINT(M) TEST_MESSAGE(M)
15 
16 // report failure from a fixture
17 #define FAIL( msg_ )     \
18       _REPORT_CRITICAL_ERROR_( (msg_), __FILE__, __LINE__, true )
19 
20 #define GET_TEST_SUITE ncbi::NK::GetTestSuite
21 
22 #endif// _h_ktst_test_tools_
23