2 #include "parser-test.h"
4 static const char config[] =
5 "linux='/vmlinux initrd=/initrd arg1=value1 arg2'\n";
7 void run_test(struct parser_test *test)
9 struct discover_boot_option *opt;
10 struct discover_context *ctx;
12 test_read_conf_data(test, "/kboot.conf", config);
14 test_run_parser(test, "kboot");
18 check_boot_option_count(ctx, 1);
19 opt = get_boot_option(ctx, 0);
21 check_name(opt, "linux");
22 check_resolved_local_resource(opt->boot_image, ctx->device, "/vmlinux");
23 check_resolved_local_resource(opt->initrd, ctx->device, "/initrd");
25 check_args(opt, "arg1=value1 arg2");