diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-07-27 14:28:49 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-07-27 14:28:49 -0500 |
commit | ff01c3ade4c092214d9488b10cbca995fbc7f159 (patch) | |
tree | e30c08e57338ee269373f65911e26ebe997c26d6 /tests/performance_tests/main.cpp | |
parent | Merge pull request #4109 (diff) | |
parent | core_tests: add --filter to select which tests to run (diff) | |
download | monero-ff01c3ade4c092214d9488b10cbca995fbc7f159.tar.xz |
Merge pull request #4110
639ca3b core_tests: add --filter to select which tests to run (moneromooo-monero)
Diffstat (limited to 'tests/performance_tests/main.cpp')
-rw-r--r-- | tests/performance_tests/main.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/tests/performance_tests/main.cpp b/tests/performance_tests/main.cpp index 902bd89c0..bc3622ea8 100644 --- a/tests/performance_tests/main.cpp +++ b/tests/performance_tests/main.cpp @@ -54,25 +54,6 @@ namespace po = boost::program_options; -std::string glob_to_regex(const std::string &val) -{ - std::string newval; - - bool escape = false; - for (char c: val) - { - if (c == '*') - newval += escape ? "*" : ".*"; - else if (c == '?') - newval += escape ? "?" : "."; - else if (c == '\\') - newval += '\\', escape = !escape; - else - newval += c; - } - return newval; -} - int main(int argc, char** argv) { TRY_ENTRY(); @@ -97,7 +78,7 @@ int main(int argc, char** argv) if (!r) return 1; - const std::string filter = glob_to_regex(command_line::get_arg(vm, arg_filter)); + const std::string filter = tools::glob_to_regex(command_line::get_arg(vm, arg_filter)); performance_timer timer; timer.start(); |