summaryrefslogtreecommitdiffstats
path: root/test/parser/test-yaboot-default.c
diff options
context:
space:
mode:
authorNeelesh Gupta <neelegup@linux.vnet.ibm.com>2013-10-28 12:45:59 +0530
committerJeremy Kerr <jk@ozlabs.org>2013-11-06 16:34:26 +0800
commitcc28b17bb59411e6031a8273b784e9d1d3a9490d (patch)
tree79c4b48746a3541a1b95347dc413e9f8ca387ec6 /test/parser/test-yaboot-default.c
parentb8e53cb4b96eb17dc7fa0ffc505dfebae37e6cbf (diff)
downloadtalos-petitboot-cc28b17bb59411e6031a8273b784e9d1d3a9490d.tar.gz
talos-petitboot-cc28b17bb59411e6031a8273b784e9d1d3a9490d.zip
test/parser: Update test cases as per new parser requesting conf files
Update the parser test code/cases as per new prototyping of parse() function which doesn't require buf and len to be passed from the caller, instead reading the configuration data either embedded or from file to a parser's known conffile. Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/test-yaboot-default.c')
-rw-r--r--test/parser/test-yaboot-default.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parser/test-yaboot-default.c b/test/parser/test-yaboot-default.c
index 66ba3a2..4143def 100644
--- a/test/parser/test-yaboot-default.c
+++ b/test/parser/test-yaboot-default.c
@@ -15,7 +15,8 @@ void run_test(struct parser_test *test)
struct discover_boot_option *opt;
struct discover_context *ctx;
- test_read_conf_embedded(test);
+ test_read_conf_embedded(test, "/etc/yaboot.conf");
+
test_run_parser(test, "yaboot");
ctx = test->ctx;
OpenPOWER on IntegriCloud