]> git.ozlabs.org Git - petitboot/blob - test/parser/test-grub2-implicit-default-invalid.c
discover/device-handler: Disable safe mode warning on reinit
[petitboot] / test / parser / test-grub2-implicit-default-invalid.c
1
2 #include "parser-test.h"
3
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
5 default=missing
6 menuentry 'test.1' {
7         linux   /vmlinux
8 }
9 menuentry 'test.2' {
10         linux   /vmlinux
11 }
12 #endif
13
14 void run_test(struct parser_test *test)
15 {
16         struct discover_boot_option *opt;
17
18         test_read_conf_embedded(test, "/grub2/grub.cfg");
19         test_run_parser(test, "grub2");
20
21         check_boot_option_count(test->ctx, 2);
22         opt = get_boot_option(test->ctx, 0);
23
24         check_name(opt, "test.1");
25         check_is_default(opt);
26 }