2 #include "parser-test.h"
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
8 kernel ./pxe/de-ad-de-ad-be-ef.vmlinuz
9 append command line initrd=./pxe/de-ad-de-ad-be-ef.initrd
12 void run_test(struct parser_test *test)
14 struct discover_boot_option *opt;
15 struct discover_context *ctx;
17 test_read_conf_embedded(test);
18 test_set_conf_source(test, "tftp://host/dir/conf.txt");
19 test_run_parser(test, "pxe");
23 check_boot_option_count(ctx, 1);
24 opt = get_boot_option(ctx, 0);
26 check_name(opt, "linux");
27 check_args(opt, "command line "
28 "initrd=./pxe/de-ad-de-ad-be-ef.initrd");
30 check_resolved_url_resource(opt->boot_image,
31 "tftp://host/dir/./pxe/de-ad-de-ad-be-ef.vmlinuz");
32 check_resolved_url_resource(opt->initrd,
33 "tftp://host/dir/./pxe/de-ad-de-ad-be-ef.initrd");