Go to the SVN repository for this file.
60cout <<
"Initialization function executed"<< endl;
68cout <<
"Finalization function executed"<< endl;
77(
"disable_UsingArgs",
78 "This is custom sample command line argument that can be " 79 "used by test application to disable the UsingArg test");
82(
"disable_TestTimeout",
83 "Do not run TestTimeout test -- used to avoid unwanted failure " 84 "during the daily automated builds. See CHECK_CMD in the Makefile; it" 85 "is also mapped to 'enable_test_timeout' parameter in config file.");
95conf_parser->AddSymbol(
"disable_using_args",
96args[
"disable_UsingArgs"] ?
true:
false);
97conf_parser->AddSymbol(
"enable_test_timeout",
98!args[
"disable_TestTimeout"]);
120 strings1 =
"qwerty";
121 strings2 =
"qwerty";
124BOOST_CHECK_EQUAL(
i, 1);
126BOOST_REQUIRE_EQUAL(d, 0.123);
138BOOST_CHECK(s1 ==
"qwerty");
140BOOST_CHECK_EQUAL(s1,
string(
"qwerty"));
157cout <<
"Here is some dummy message"<< endl;
177 boolarg_value = args[
"disable_UsingArgs"];
185cout <<
"This message will never be printed"<< endl;
191cout <<
"This message will be printed only after " 192 "proper editing of *.ini file or after adding command line " 193 "argument --run_test='*DisabledInConfig'"<< endl;
200 boolarg_value = args[
"disable_UsingArgs"];
202BOOST_CHECK( !arg_value );
static CNcbiApplication * Instance(void)
Singleton method.
virtual const CArgs & GetArgs(void) const
Get parsed command line arguments.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
void Info(CExceptionArgs_Base &args)
#define NCBITEST_DISABLE(test_name)
Unconditionally disable test case.
#define NCBITEST_DEPENDS_ON(test_name, dep_name)
Add dependency between test test_name and dep_name.
where both of them are integers Note
void SleepSec(unsigned long sec, EInterruptOnSignal onsignal=eRestartOnSignal)
Sleep.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Utility stuff for more convenient using of Boost.Test library.
#define NCBITEST_CHECK_EQUAL(L, R)
#define NCBITEST_CHECK(P)
#define NCBITEST_CHECK_MESSAGE(P, M)
BOOST_AUTO_TEST_CASE_TIMEOUT(TestTimeout, 1)
NCBITEST_INIT_CMDLINE(arg_desc)
NCBITEST_INIT_VARIABLES(conf_parser)
static void s_ThrowSomeException(void)
BOOST_AUTO_TEST_CASE(TestSimpleTools)
static void s_FuncWithoutException(void)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4