From e6106ae0ebfd546158c9f4b2fd48903be11cd0ce Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 27 Oct 2017 14:47:04 -0300 Subject: [PATCH] Fix regression tests for fuzzyHash --- test/regression/regression.cc | 3 +++ test/test-cases/regression/operator-fuzzyhash.json | 2 ++ test/unit/unit.cc | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/test/regression/regression.cc b/test/regression/regression.cc index a0e7b7e7..7f5cd8de 100644 --- a/test/regression/regression.cc +++ b/test/regression/regression.cc @@ -432,6 +432,9 @@ int main(int argc, char **argv) { #ifdef WITH_CURL resources.push_back("curl"); #endif +#ifdef WITH_SSDEEP + resources.push_back("ssdeep"); +#endif #ifdef NO_LOGS std::cout << "Test utility cannot work without logging support." \ diff --git a/test/test-cases/regression/operator-fuzzyhash.json b/test/test-cases/regression/operator-fuzzyhash.json index 1082f468..2250ebe2 100644 --- a/test/test-cases/regression/operator-fuzzyhash.json +++ b/test/test-cases/regression/operator-fuzzyhash.json @@ -2,6 +2,7 @@ { "enabled":1, "version_min":300000, + "resource":"ssdeep", "title":"Testing Operator :: @fuzzyHash (1/2)", "client":{ "ip":"200.249.12.31", @@ -108,6 +109,7 @@ { "enabled":1, "version_min":300000, + "resource":"ssdeep", "title":"Testing Operator :: @fuzzyHash (2/2)", "client":{ "ip":"200.249.12.31", diff --git a/test/unit/unit.cc b/test/unit/unit.cc index 46d186fc..e5ee9d15 100644 --- a/test/unit/unit.cc +++ b/test/unit/unit.cc @@ -130,6 +130,10 @@ int main(int argc, char **argv) { #ifdef WITH_CURL resources.push_back("curl"); #endif +#ifdef WITH_SSDEEP + resources.push_back("ssdeep"); +#endif + test.cmd_options(argc, argv); if (!test.m_automake_output) {