2 #include "parser-test.h"
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
6 menuentry 'test-option-0' {
9 menuentry 'test-option-1' {
12 menuentry 'test-option-2' {
17 void run_test(struct parser_test *test)
19 struct discover_boot_option *opt;
20 struct discover_context *ctx;
22 test_read_conf_embedded(test, "/boot/grub2/grub.cfg");
23 test_run_parser(test, "grub2");
27 check_boot_option_count(ctx, 3);
28 opt = get_boot_option(ctx, 1);
30 check_name(opt, "test-option-1");
31 check_resolved_local_resource(opt->boot_image, ctx->device,
33 check_is_default(opt);