X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Fparser-test.h;h=53296180e3291b7a74c01b9c39d06194056bd4d8;hp=9d9ec7e77d0bf4acdf0939a6dc9dc9b66c5ad41b;hb=9ecdab4194422f1f72486745a9d6db79badd36ae;hpb=ec80a0397adc1fd405dedce961a17d164241851a 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 */