2 #include "parser-test.h"
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
5 menuentry 'Linux' --class test-class $menuentry_id_option 'test-id' {
6 linux /vmlinux arg1=value1 arg2
11 void run_test(struct parser_test *test)
13 struct discover_boot_option *opt;
14 struct discover_context *ctx;
16 test_read_conf_embedded(test, "/grub2/grub.cfg");
18 test_run_parser(test, "grub2");
22 check_boot_option_count(ctx, 1);
23 opt = get_boot_option(ctx, 0);
25 check_name(opt, "Linux");
26 check_resolved_local_resource(opt->boot_image, ctx->device, "/vmlinux");
27 check_resolved_local_resource(opt->initrd, ctx->device, "/initrd");
29 check_args(opt, "arg1=value1 arg2");