2 #include "parser-test.h"
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
5 menuentry "test.0" {linux /vmlinux;}
6 menuentry "test.1" {linux /vmlinux}
7 menuentry "test.2" {linux /vmlinux }
8 menuentry "test.3" { linux /vmlinux; }
9 menuentry "test.4" {linux /vmlinux ;}
12 menuentry "test.6" {linux /vmlinux
28 void run_test(struct parser_test *test)
30 struct discover_boot_option *opt;
31 char str[] = "test.0";
34 test_read_conf_embedded(test, "/grub2/grub.cfg");
36 test_run_parser(test, "grub2");
38 check_boot_option_count(test->ctx, 11);
39 for (i = 0; i < 8; i++) {
40 opt = get_boot_option(test->ctx, i);