2 #include "parser-test.h"
4 void run_test(struct parser_test *test)
6 struct discover_boot_option *opt;
7 struct discover_context *ctx;
10 test_read_conf_file(test, "grub2-f18-ppc64.conf");
11 test_run_parser(test, "grub2");
15 check_boot_option_count(ctx, 2);
17 for (i = 0; i < 2; i++) {
18 opt = get_boot_option(ctx, i);
20 check_resolved_local_resource(opt->boot_image, ctx->device,
21 "/vmlinuz-3.6.10-4.fc18.ppc64p7");
22 check_resolved_local_resource(opt->initrd, ctx->device,
23 "/initramfs-3.6.10-4.fc18.ppc64p7.img");
25 check_args(opt, "root=/dev/mapper/fedora_ltcfbl8eb-root ro "
26 "rd.lvm.lv=fedora_ltcfbl8eb/swap rd.dm=0 "
27 "rd.lvm.lv=fedora_ltcfbl8eb/root rd.md=0 "
28 "rd.luks=0 vconsole.keymap=us rhgb quiet");
30 check_name(opt, i == 0 ?
32 "Fedora, with Linux 3.6.10-4.fc18.ppc64p7");