mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
core_tests: add a --list_tests command line switch
This commit is contained in:
parent
42abea7f72
commit
524bf750c0
2 changed files with 13 additions and 5 deletions
|
@ -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; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue