struct parser_test *test;
test = talloc_zero(NULL, struct parser_test);
- test->handler = device_handler_init(NULL, 0);
+ test->handler = device_handler_init(NULL, NULL, 0);
test->ctx = test_create_context(test);
return test;
talloc_free(path);
}
+void test_set_conf_source(struct parser_test *test, const char *url)
+{
+ test->ctx->conf_url = pb_url_parse(test, url);
+ assert(test->ctx->conf_url);
+}
+
int test_run_parser(struct parser_test *test, const char *parser_name)
{
struct p_item* i;