aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/chaingen.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-01-18 19:00:15 +0200
committerRiccardo Spagni <ric@spagni.net>2019-01-18 19:00:16 +0200
commit08f08beeded9dca40a401288402ad64870a4bd54 (patch)
treea9176c0983349f5dc6de43b35d11f866352230a9 /tests/core_tests/chaingen.h
parentMerge pull request #5037 (diff)
parentcore_tests: add a --list_tests command line switch (diff)
downloadmonero-08f08beeded9dca40a401288402ad64870a4bd54.tar.xz
Merge pull request #5046
524bf750 core_tests: add a --list_tests command line switch (moneromooo-monero)
Diffstat (limited to 'tests/core_tests/chaingen.h')
-rw-r--r--tests/core_tests/chaingen.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h
index b380aca01..907b32bcd 100644
--- a/tests/core_tests/chaingen.h
+++ b/tests/core_tests/chaingen.h
@@ -669,7 +669,9 @@ inline bool do_replay_file(const std::string& filename)
}
#define GENERATE_AND_PLAY(genclass) \
- if (filter.empty() || boost::regex_match(std::string(#genclass), match, boost::regex(filter))) \
+ if (list_tests) \
+ std::cout << #genclass << std::endl; \
+ else if (filter.empty() || boost::regex_match(std::string(#genclass), match, boost::regex(filter))) \
{ \
std::vector<test_event_entry> events; \
++tests_count; \