]> git.ozlabs.org Git - petitboot/blob - test/parser/test-yaboot-default.c
Display VERSION partition info on BMC machines
[petitboot] / test / parser / test-yaboot-default.c
1 #include "parser-test.h"
2
3 #if 0 /* PARSER_EMBEDDED_CONFIG */
4 default=linux.2
5
6 image=/vmlinux
7         label=linux.1
8
9 image=/vmlinux
10         label=linux.2
11 #endif
12
13 void run_test(struct parser_test *test)
14 {
15         struct discover_boot_option *opt;
16         struct discover_context *ctx;
17
18         test_read_conf_embedded(test, "/etc/yaboot.conf");
19
20         test_run_parser(test, "yaboot");
21
22         ctx = test->ctx;
23
24         check_boot_option_count(ctx, 2);
25
26         opt = get_boot_option(ctx, 1);
27         check_name(opt, "linux.2");
28         check_is_default(opt);
29 }