X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=test%2Fparser%2Fparser-test.h;h=53296180e3291b7a74c01b9c39d06194056bd4d8;hb=f9a63d3a640cb30a12598cedc0dd7d8b6fc5b4de;hp=9d9ec7e77d0bf4acdf0939a6dc9dc9b66c5ad41b;hpb=45a091bf404b641b7d3570fd72dd1582689a1f7d;p=petitboot diff --git a/test/parser/parser-test.h b/test/parser/parser-test.h index 9d9ec7e..5329618 100644 --- a/test/parser/parser-test.h +++ b/test/parser/parser-test.h @@ -85,6 +85,14 @@ void __check_resolved_local_resource(struct resource *res, struct discover_device *dev, const char *local_path, const char *file, int line); +/** + * Check that a resource (@res) is present, resolved, and has a URL of + * @url. + */ +#define check_resolved_url_resource(res, url) \ + __check_resolved_url_resource(res, url, __FILE__, __LINE__) +void __check_resolved_url_resource(struct resource *res, + const char *url, const char *file, int line); /** * Check that a resource (@res) is present but not resolved */