summaryrefslogtreecommitdiffstats
path: root/test/parser/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser/utils.c')
-rw-r--r--test/parser/utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/parser/utils.c b/test/parser/utils.c
index 70a40bb..f1604e0 100644
--- a/test/parser/utils.c
+++ b/test/parser/utils.c
@@ -133,6 +133,12 @@ void test_read_conf_file(struct parser_test *test, const char *filename)
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;
OpenPOWER on IntegriCloud