summaryrefslogtreecommitdiffstats
path: root/test/parser/parser-test.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-07-04 15:27:01 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-07-04 15:27:01 +0800
commit45a091bf404b641b7d3570fd72dd1582689a1f7d (patch)
tree16a7103f06ca57fc97a68e80f6c4a6f4a060bb37 /test/parser/parser-test.h
parent9d9f5fafe1ab15683601c03b14c35fe6a405ba45 (diff)
downloadtalos-petitboot-45a091bf404b641b7d3570fd72dd1582689a1f7d.tar.gz
talos-petitboot-45a091bf404b641b7d3570fd72dd1582689a1f7d.zip
test/parser: Add test_set_conf_source()
For non-local parsers (ie, PXE), we need to have the conf_url set. This change adds a function to provide the originating URL. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/parser-test.h')
-rw-r--r--test/parser/parser-test.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parser/parser-test.h b/test/parser/parser-test.h
index ab37443..9d9ec7e 100644
--- a/test/parser/parser-test.h
+++ b/test/parser/parser-test.h
@@ -28,6 +28,7 @@ struct discover_device *test_create_device(struct discover_context *ctx,
void __test_read_conf_data(struct parser_test *test,
const char *buf, size_t len);
void test_read_conf_file(struct parser_test *test, const char *filename);
+void test_set_conf_source(struct parser_test *test, const char *url);
int test_run_parser(struct parser_test *test, const char *parser_name);
OpenPOWER on IntegriCloud