Adds the concept of `resources' to the regression test utility

If a given resource is not available the test is skipped. Useful
to test operators that depends on 3rd party libraries that may
not be available, for instance: GeoIP.
This commit is contained in:
Felipe Zimmerle
2015-11-20 09:54:52 -03:00
parent 09a958544d
commit 18c862a84a
4 changed files with 60 additions and 4 deletions

View File

@@ -104,6 +104,9 @@ RegressionTest *RegressionTest::from_yajl_node(const yajl_val &node) {
if (strcmp(key, "url") == 0) {
u->url = YAJL_GET_STRING(val);
}
if (strcmp(key, "resource") == 0) {
u->resource = YAJL_GET_STRING(val);
}
if (strcmp(key, "github_issue") == 0) {
u->github_issue = YAJL_GET_INTEGER(val);
}