mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
Use custom unit test runner
This commit is contained in:
@@ -115,11 +115,23 @@ void printHelp (const po::options_description& desc)
|
|||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// OUr custom unit test runner
|
||||||
|
class RippleUnitTests : public UnitTests
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
void logMessage (String const& message)
|
||||||
|
{
|
||||||
|
Log::out () << message.toStdString ();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
/** Run the Beast unit tests.
|
/** Run the Beast unit tests.
|
||||||
*/
|
*/
|
||||||
static void runBeastUnitTests ()
|
static void runBeastUnitTests ()
|
||||||
{
|
{
|
||||||
UnitTests tr;
|
RippleUnitTests tr;
|
||||||
|
|
||||||
tr.setAssertOnFailure (false);
|
tr.setAssertOnFailure (false);
|
||||||
tr.setPassesAreLogged (false);
|
tr.setPassesAreLogged (false);
|
||||||
|
|||||||
Reference in New Issue
Block a user