diff options
author | Neelesh Gupta <neelegup@linux.vnet.ibm.com> | 2013-10-28 12:45:59 +0530 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-06 16:34:26 +0800 |
commit | cc28b17bb59411e6031a8273b784e9d1d3a9490d (patch) | |
tree | 79c4b48746a3541a1b95347dc413e9f8ca387ec6 /test/parser/test-yaboot-partition.c | |
parent | b8e53cb4b96eb17dc7fa0ffc505dfebae37e6cbf (diff) | |
download | talos-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-partition.c')
-rw-r--r-- | test/parser/test-yaboot-partition.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parser/test-yaboot-partition.c b/test/parser/test-yaboot-partition.c index 25aa98f..462aee9 100644 --- a/test/parser/test-yaboot-partition.c +++ b/test/parser/test-yaboot-partition.c @@ -1,4 +1,5 @@ #include "parser-test.h" +#include <stdio.h> #if 0 /* PARSER_EMBEDDED_CONFIG */ device=sda @@ -14,7 +15,8 @@ void run_test(struct parser_test *test) struct discover_context *ctx; struct discover_device *dev; - test_read_conf_embedded(test); + test_read_conf_embedded(test, "/yaboot.conf"); + test_run_parser(test, "yaboot"); ctx = test->ctx; |