core_tests: add --filter to select which tests to run

This commit is contained in:
moneromooo-monero 2018-07-06 19:10:39 +01:00
parent eed4dba880
commit 639ca3b1fa
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
5 changed files with 29 additions and 20 deletions

View file

@ -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; \