]> git.ozlabs.org Git - petitboot/blob - test/parser/test-grub2-multiple-id.c
discover/udev: Separate block-specific udev discovery
[petitboot] / test / parser / test-grub2-multiple-id.c
1
2 #include "parser-test.h"
3
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
5 set default="linux2"
6
7 menuentry 'Linux 1' --id=linux1 {
8         linux   /vmlinux1
9 }
10
11 menuentry 'Linux 2' --id=linux2 {
12         linux   /vmlinux2
13 }
14 #endif
15
16 void run_test(struct parser_test *test)
17 {
18         struct discover_boot_option *opt;
19         struct discover_context *ctx;
20
21         test_read_conf_embedded(test, "/grub2/grub.cfg");
22         test_run_parser(test, "grub2");
23
24         ctx = test->ctx;
25         check_boot_option_count(ctx, 2);
26         opt = get_boot_option(ctx, 1);
27         check_is_default(opt);
28 }