summaryrefslogtreecommitdiffstats
path: root/test/parser/test-grub2-single.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-grub2-single.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-grub2-single.c')
-rw-r--r--test/parser/test-grub2-single.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parser/test-grub2-single.c b/test/parser/test-grub2-single.c
index 7db8eb9..f12fe53 100644
--- a/test/parser/test-grub2-single.c
+++ b/test/parser/test-grub2-single.c
@@ -13,7 +13,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, "/grub2/grub.cfg");
+
test_run_parser(test, "grub2");
ctx = test->ctx;
OpenPOWER on IntegriCloud