]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/parser-test.h
test/parser: Add check_args helper
[petitboot] / test / parser / parser-test.h
index 744c9140341e2e1bf54e435a4e3fb2c5430a6d05..ac4af40077663af2a335f573943221206174807f 100644 (file)
@@ -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 */