]> git.ozlabs.org Git - petitboot/blob - test/parser/test-grub2-sles-btrfs-snapshot.c
discover: Release process resources on error
[petitboot] / test / parser / test-grub2-sles-btrfs-snapshot.c
1
2 #include "parser-test.h"
3
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
5 if [ -n "$extra_cmdline" ]; then
6   submenu "Bootable snapshot #$snapshot_num" {
7     menuentry "If OK, run 'snapper rollback $snapshot_num' and reboot." { true; }
8   }
9 fi
10 menuentry test { linux /vmlinux }
11 #endif
12
13 void run_test(struct parser_test *test)
14 {
15         struct discover_boot_option *opt;
16         struct discover_context *ctx;
17
18         test_read_conf_embedded(test, "/grub2/grub.cfg");
19
20         test_run_parser(test, "grub2");
21
22         ctx = test->ctx;
23
24         check_boot_option_count(ctx, 1);
25         opt = get_boot_option(ctx, 0);
26         check_name(opt, "test");
27 }