1 #include "parser-test.h"
3 #if 0 /* PARSER_EMBEDDED_CONFIG */
5 kernel vmlinux --name test-option append kernel args
10 * Test that we recognise an ipxe-formatted script obtained from bootfile_url
11 * (DHCPv6 option 59) that some vendors use, and that we correctly parse the
12 * --name parameter from the kernel arguments.
15 void run_test(struct parser_test *test)
17 struct discover_boot_option *opt;
18 struct discover_context *ctx;
20 test_read_conf_embedded_url(test, "tftp://host/dir1/conf");
22 test_set_event_source(test);
23 test_set_event_param(test->ctx->event, "bootfile_url", "tftp://host/dir1/conf");
25 test_run_parser(test, "pxe");
29 check_boot_option_count(ctx, 1);
30 opt = get_boot_option(ctx, 0);
32 check_name(opt, "test-option");
34 check_resolved_url_resource(opt->boot_image,
35 "tftp://host/dir1/vmlinux");
36 check_resolved_url_resource(opt->initrd,
37 "tftp://host/dir1/initrd");
38 check_args(opt, "append kernel args");