X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Ftest-pxe-single.c;h=3c3ab2b9beae976a61b6d8caa1a1485202acd216;hp=ccb4d5c6462efc721156ecd4725f4adbd14e23ff;hb=07a5f9f1c50a9185851cd486d732976573d15c4f;hpb=cc28b17bb59411e6031a8273b784e9d1d3a9490d diff --git a/test/parser/test-pxe-single.c b/test/parser/test-pxe-single.c index ccb4d5c..3c3ab2b 100644 --- a/test/parser/test-pxe-single.c +++ b/test/parser/test-pxe-single.c @@ -8,6 +8,7 @@ label linux kernel ./pxe/de-ad-de-ad-be-ef.vmlinuz append command line initrd=./pxe/de-ad-de-ad-be-ef.initrd +dtb ./pxe/de-ad-de-ad-be-ef.dtb #endif void run_test(struct parser_test *test) @@ -15,10 +16,10 @@ void run_test(struct parser_test *test) struct discover_boot_option *opt; struct discover_context *ctx; - test_read_conf_embedded(test, "conf.txt"); + test_read_conf_embedded_url(test, "tftp://host/dir/conf.txt"); test_set_event_source(test); - test_set_event_param(test->ctx->event, "conffile", + test_set_event_param(test->ctx->event, "pxeconffile", "tftp://host/dir/conf.txt"); test_run_parser(test, "pxe"); @@ -35,4 +36,6 @@ void run_test(struct parser_test *test) "tftp://host/dir/./pxe/de-ad-de-ad-be-ef.vmlinuz"); check_resolved_url_resource(opt->initrd, "tftp://host/dir/./pxe/de-ad-de-ad-be-ef.initrd"); + check_resolved_url_resource(opt->dtb, + "tftp://host/dir/./pxe/de-ad-de-ad-be-ef.dtb"); }