]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/test-pxe-single.c
lib/process: Add process_get_stdout
[petitboot] / test / parser / test-pxe-single.c
index 65e30516f4f01b494796d629462cea288348b820..3c3ab2b9beae976a61b6d8caa1a1485202acd216 100644 (file)
@@ -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
 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)
 #endif
 
 void run_test(struct parser_test *test)
@@ -15,8 +16,12 @@ void run_test(struct parser_test *test)
        struct discover_boot_option *opt;
        struct discover_context *ctx;
 
        struct discover_boot_option *opt;
        struct discover_context *ctx;
 
-       test_read_conf_embedded(test);
-       test_set_conf_source(test, "tftp://host/dir/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, "pxeconffile",
+                       "tftp://host/dir/conf.txt");
+
        test_run_parser(test, "pxe");
 
        ctx = test->ctx;
        test_run_parser(test, "pxe");
 
        ctx = test->ctx;
@@ -31,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");
                        "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");
 }
 }