mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adds support to make check
The regression and unit tests are now integrated with `make check`. It is possible to use make check -jN to have multiple tests running in parallel.
This commit is contained in:
@@ -31,6 +31,10 @@ namespace modsecurity_test {
|
||||
template <class T> class ModSecurityTest :
|
||||
public std::unordered_map<std::string, std::vector<T *> *> {
|
||||
public:
|
||||
ModSecurityTest()
|
||||
: m_test_number(0),
|
||||
m_automake_output(false) { }
|
||||
|
||||
std::string header();
|
||||
void cmd_options(int, char **);
|
||||
std::pair<std::string, std::vector<T *>>* load_tests();
|
||||
@@ -40,6 +44,8 @@ template <class T> class ModSecurityTest :
|
||||
std::string target;
|
||||
bool verbose = false;
|
||||
bool color = false;
|
||||
int m_test_number;
|
||||
bool m_automake_output;
|
||||
};
|
||||
|
||||
} // namespace modsecurity_test
|
||||
|
Reference in New Issue
Block a user