aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/chaingen.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-06 19:10:39 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-07 19:33:35 +0100
commit639ca3b1fa9c153a99f1d4e9bb488bd02d282e46 (patch)
treefd0d6f844c230bee836af99a4edf5bd9c801e4b5 /tests/core_tests/chaingen.h
parentMerge pull request #4094 (diff)
downloadmonero-639ca3b1fa9c153a99f1d4e9bb488bd02d282e46.tar.xz
core_tests: add --filter to select which tests to run
Diffstat (limited to 'tests/core_tests/chaingen.h')
-rw-r--r--tests/core_tests/chaingen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h
index 201da4fa0..bbc9edd19 100644
--- a/tests/core_tests/chaingen.h
+++ b/tests/core_tests/chaingen.h
@@ -664,6 +664,7 @@ 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))) \
{ \
std::vector<test_event_entry> events; \
++tests_count; \