Skip to content

Commit

Permalink
Test catch1 from system
Browse files Browse the repository at this point in the history
  • Loading branch information
drdanz committed Mar 6, 2018
1 parent be7c188 commit 4b49f69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion BinPortableTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
*/

#include <catch.hpp>
// #include <catch.hpp>
#include </usr/include/catch.hpp>

#include <yarp/os/BinPortable.h>
#include <yarp/os/Network.h>
Expand Down
3 changes: 2 additions & 1 deletion BottleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
*/

#include <catch.hpp>
// #include <catch.hpp>
#include </usr/include/catch.hpp>

#include <yarp/os/impl/BottleImpl.h>
#include <yarp/os/impl/BufferedConnectionWriter.h>
Expand Down
9 changes: 5 additions & 4 deletions harness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@


#define CATCH_CONFIG_RUNNER
#include <catch.hpp>
// #include <catch.hpp>
#include </usr/include/catch.hpp>

#ifdef YARP2_LINUX
# define CHECK_FOR_LEAKS
Expand Down Expand Up @@ -36,9 +37,9 @@ int main(int argc, char *argv[])

bool verbose = 0;

using namespace Catch::clara;
auto cli = session.cli() | Opt(verbose )["-y"]["--yarp-verbose"]("Enable verbose mode");
session.cli( cli );
// using namespace Catch::clara;
// auto cli = session.cli() | Opt(verbose )["-y"]["--yarp-verbose"]("Enable verbose mode");
// session.cli( cli );

int returnCode = session.applyCommandLine( argc, argv );
if( returnCode != 0 ) {
Expand Down

0 comments on commit 4b49f69

Please sign in to comment.