diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-07 14:41:49 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-07 14:42:19 +0000 |
commit | 524bf750c0bb6077efea53f4c8a462d9a7dae3e5 (patch) | |
tree | 3b35c8cf0e5a8a89e9dadfa6a33f5021e9d19bd2 /tests/core_tests/chaingen.h | |
parent | Merge pull request #4969 (diff) | |
download | monero-524bf750c0bb6077efea53f4c8a462d9a7dae3e5.tar.xz |
core_tests: add a --list_tests command line switch
Diffstat (limited to 'tests/core_tests/chaingen.h')
-rw-r--r-- | tests/core_tests/chaingen.h | 4 |
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; \ |