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-grub2-save-env.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-grub2-save-env.c')
-rw-r--r-- | test/parser/test-grub2-save-env.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parser/test-grub2-save-env.c b/test/parser/test-grub2-save-env.c index 7a2938f..826963e 100644 --- a/test/parser/test-grub2-save-env.c +++ b/test/parser/test-grub2-save-env.c @@ -86,7 +86,9 @@ static void run_env_test(struct parser_test *test, struct env_test *envtest) test_add_file_data(test, test->ctx->device, "/boot/grub/grubenv", env_before, strlen(env_before)); - __test_read_conf_data(test, envtest->script, strlen(envtest->script)); + __test_read_conf_data(test, "/boot/grub2/grub.cfg", envtest->script, + strlen(envtest->script)); + test_run_parser(test, "grub2"); check_file_contents(test, test->ctx->device, "/boot/grub/grubenv", |