summaryrefslogtreecommitdiffstats
path: root/test/parser/parser-test.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser/parser-test.h')
-rw-r--r--test/parser/parser-test.h7
1 files changed, 7 insertions, 0 deletions
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 */
OpenPOWER on IntegriCloud