Changes the check script to detect segfaults

This commit is contained in:
Felipe Zimmerle
2017-01-19 21:41:47 -03:00
committed by Felipe Zimmerle
parent ff65d618e4
commit a88dc8efa9
12 changed files with 76 additions and 90 deletions

View File

@@ -141,7 +141,10 @@ void ModSecurityTest<T>::cmd_options(int argc, char **argv) {
i++;
m_automake_output = true;
}
if (argc > i && strcmp(argv[i], "countall") == 0) {
i++;
m_count_all = true;
}
if (const char* env_p = std::getenv("AUTOMAKE_TESTS")) {
m_automake_output = true;
}

View File

@@ -33,7 +33,8 @@ template <class T> class ModSecurityTest :
public:
ModSecurityTest()
: m_test_number(0),
m_automake_output(false) { }
m_automake_output(false),
m_count_all(false) { }
std::string header();
void cmd_options(int, char **);
@@ -45,6 +46,7 @@ template <class T> class ModSecurityTest :
bool verbose = false;
bool color = false;
int m_test_number;
bool m_count_all;
bool m_automake_output;
};