1 #include "parser-test.h"
3 #if 0 /* PARSER_EMBEDDED_CONFIG */
19 void run_test(struct parser_test *test)
21 struct discover_boot_option *opt;
22 struct discover_context *ctx;
24 test_read_conf_embedded(test, "/boot/petitboot.conf");
26 test_run_parser(test, "native");
30 check_boot_option_count(ctx, 2);
32 opt = get_boot_option(ctx, 0);
34 check_name(opt, "first");
35 check_resolved_local_resource(opt->boot_image, ctx->device, "/vmlinuz");
36 check_args(opt, "console=hvc0");
37 check_resolved_local_resource(opt->initrd, ctx->device, "/initrd");
38 check_is_default(opt);
40 opt = get_boot_option(ctx, 1);
41 check_name(opt, "second");
42 check_resolved_local_resource(opt->boot_image, ctx->device, "/boot/vmlinuz");
43 check_args(opt, "console=tty0");
44 check_resolved_local_resource(opt->initrd, ctx->device, "/boot/initrd");