X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2Fparser-test.h;h=ac4af40077663af2a335f573943221206174807f;hp=744c9140341e2e1bf54e435a4e3fb2c5430a6d05;hb=29452d63438ec97e5332caf1f45e5e12b1e873f8;hpb=ca5ea96894c8b50e495d919db2737551e581120c diff --git a/test/parser/parser-test.h b/test/parser/parser-test.h index 744c914..ac4af40 100644 --- a/test/parser/parser-test.h +++ b/test/parser/parser-test.h @@ -55,5 +55,12 @@ extern const size_t __embedded_config_size; __check_boot_option_count(ctx, count, __FILE__, __LINE__) void __check_boot_option_count(struct discover_context *ctx, int count, const char *file, int line); +/* + * Check that a boot option @opt has args @args + */ +void __check_args(struct discover_boot_option *opt, const char *args, + const char *file, int line); +#define check_args(opt, args) \ + __check_args(opt, args, __FILE__, __LINE__) #endif /* PARSER_TEST_H */