2 #include "parser-test.h"
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
10 void run_test(struct parser_test *test)
12 struct discover_boot_option *opt;
13 struct discover_context *ctx;
15 test_read_conf_embedded_url(test, "tftp://host/path/conf.txt");
17 test_set_event_source(test);
18 test_set_event_param(test->ctx->event, "siaddr", "host");
19 test_set_event_param(test->ctx->event, "pxeconffile", "path/conf.txt");
21 test_run_parser(test, "pxe");
25 check_boot_option_count(ctx, 1);
26 opt = get_boot_option(ctx, 0);
28 check_name(opt, "linux");
30 /* even though the initrd is specifed as /initrd, pxelinux treats
31 * this as relative. */
32 check_resolved_url_resource(opt->boot_image,
33 "tftp://host/path/vmlinux");
34 check_resolved_url_resource(opt->initrd,
35 "tftp://host/path/initrd");