]> git.ozlabs.org Git - petitboot/blob - test/parser/test-yaboot-leftovers.c
discover/paths: Add stdout callback parameter for load_url_async()
[petitboot] / test / parser / test-yaboot-leftovers.c
1 #include "parser-test.h"
2
3 /* Test that an absent parameter in one boot option doesn't get set by a
4  * previous option */
5
6 #if 0 /* PARSER_EMBEDDED_CONFIG */
7 image=/boot/vmlinux-1
8   label=one
9   literal="console=XXXX"
10
11 image=/boot/vmlinux-2
12   label=two
13 #endif
14
15 void run_test(struct parser_test *test)
16 {
17         struct discover_boot_option *opt;
18         struct discover_context *ctx;
19
20         test_read_conf_embedded(test, "/etc/yaboot.conf");
21
22         test_run_parser(test, "yaboot");
23
24         ctx = test->ctx;
25
26         check_boot_option_count(ctx, 2);
27
28         opt = get_boot_option(ctx, 0);
29         check_name(opt, "one");
30         check_args(opt, "console=XXXX");
31
32         opt = get_boot_option(ctx, 1);
33         check_name(opt, "two");
34         check_args(opt, "");
35 }