Cosmetic: Prints regression test results in a better shape

This commit is contained in:
Felipe Zimmerle
2015-09-16 13:35:30 -03:00
parent 9d60dc6df8
commit 7a468a8fbe
4 changed files with 59 additions and 32 deletions

View File

@@ -39,18 +39,7 @@ using ModSecurity::operators::Operator;
std::string default_test_path = "test-cases/secrules-language-tests/operators";
void print_help() {
#ifdef HAS_GETOPT
std::cout << "Use ./unit [--no-color] -t /path/to/test/files ";
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << " -h\t\tThis help message" << std::endl;
std::cout << " -v\t\tVerbose" << std::endl;
std::cout << " -c\t\tNo color" << std::endl;
std::cout << " -t\t\tPath to test cases" << std::endl;
#else
std::cout << "Use ./unit /path/to/file" << std::endl;
#endif
std::cout << std::endl;
std::cout << std::endl;
}