2 #include "parser-test.h"
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
8 kernel ./pxe/de-ad-de-ad-be-ef.vmlinuz
13 void run_test(struct parser_test *test)
15 struct discover_boot_option *opt;
16 struct discover_context *ctx;
18 test_read_conf_embedded_url(test, "tftp://host/dir/conf.txt");
20 test_set_event_source(test);
21 test_set_event_param(test->ctx->event, "pxeconffile",
22 "tftp://host/dir/conf.txt");
23 test_set_event_param(test->ctx->event, "mac",
26 test_run_parser(test, "pxe");
30 check_boot_option_count(ctx, 1);
31 opt = get_boot_option(ctx, 0);
33 check_name(opt, "linux");
34 check_args(opt, "command line BOOTIF=01:02:03:04:05:06");