From e325f33856c8a94fa1fc5eaeab76cef774de7155 Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Thu, 18 Jun 2015 08:00:16 +0200 Subject: add network flag --- TestHelper.cpp | 5 ++++- TestHelper.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/TestHelper.cpp b/TestHelper.cpp index 743b1627..4e1ad92b 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -754,6 +754,8 @@ Options::Options() checkState = true; else if (arg == "--wallet") wallet = true; + else if (arg == "--network") + network = true; else if (arg == "--all") { performance = true; @@ -761,7 +763,8 @@ Options::Options() memory = true; inputLimits = true; bigData = true; - wallet= true; + wallet = true; + network = true; } else if (arg == "--singletest" && i + 1 < argc) { diff --git a/TestHelper.h b/TestHelper.h index df33c00d..ab52a550 100644 --- a/TestHelper.h +++ b/TestHelper.h @@ -223,6 +223,7 @@ public: bool inputLimits = false; bool bigData = false; bool wallet = false; + bool network = false; /// @} /// Get reference to options -- cgit -- cgit From ba657029820fbf8e9233259f31a1edc8da7c56d2 Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Thu, 18 Jun 2015 12:31:58 +0200 Subject: avoid network tests when --nonetwork is set --- TestHelper.cpp | 7 ++++--- TestHelper.h | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/TestHelper.cpp b/TestHelper.cpp index 4e1ad92b..6c1db8ee 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -754,8 +754,10 @@ Options::Options() checkState = true; else if (arg == "--wallet") wallet = true; - else if (arg == "--network") - network = true; + else if (arg == "--nonetwork") + nonetwork = true; + else if (arg == "--nodag") + nodag = true; else if (arg == "--all") { performance = true; @@ -764,7 +766,6 @@ Options::Options() inputLimits = true; bigData = true; wallet = true; - network = true; } else if (arg == "--singletest" && i + 1 < argc) { diff --git a/TestHelper.h b/TestHelper.h index ab52a550..c21429ef 100644 --- a/TestHelper.h +++ b/TestHelper.h @@ -223,7 +223,8 @@ public: bool inputLimits = false; bool bigData = false; bool wallet = false; - bool network = false; + bool nonetwork = false; + bool nodag = false; /// @} /// Get reference to options -- cgit