2 #include "parser-test.h"
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
6 search --set=root ec50d321-aab1-4335-8a87-aa8fadd80a09
11 void run_test(struct parser_test *test)
13 struct discover_boot_option *opt;
14 struct discover_context *ctx;
15 struct discover_device *dev;
17 test_read_conf_embedded(test, "/grub.cfg");
19 test_run_parser(test, "grub2");
23 check_boot_option_count(ctx, 1);
24 opt = get_boot_option(ctx, 0);
25 check_name(opt, "Linux");
26 check_unresolved_resource(opt->boot_image);
28 test_remove_device(test, test->ctx->device);
30 dev = test_create_device(test, "external");
31 dev->uuid = "ec50d321-aab1-4335-8a87-aa8fadd80a09";
32 test_hotplug_device(test, dev);
34 check_boot_option_count(ctx, 0);