aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-06-08 21:39:17 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-11 15:04:40 +0200
commitd7a578b2c6a8f902bb5890adf49a2668c60ea0e7 (patch)
tree0375f944f894330011a36c9ead81338b999714e6 /include
parent6221da1907a183c8564a2e93641bbb169006d324 (diff)
downloadcmocka-d7a578b2c6a8f902bb5890adf49a2668c60ea0e7.tar.gz
cmocka-d7a578b2c6a8f902bb5890adf49a2668c60ea0e7.tar.xz
cmocka-d7a578b2c6a8f902bb5890adf49a2668c60ea0e7.zip
cmocka: Add cmocka_set_test_filter() to filter tests
Diffstat (limited to 'include')
-rw-r--r--include/cmocka.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/cmocka.h b/include/cmocka.h
index fc89f5c..fd8f5d4 100644
--- a/include/cmocka.h
+++ b/include/cmocka.h
@@ -2279,6 +2279,19 @@ enum cm_message_output {
*/
void cmocka_set_message_output(enum cm_message_output output);
+
+/**
+ * @brief Set a pattern to only run the test matching the pattern.
+ *
+ * This allows to filter tests and only run the ones matching the pattern. Thep
+ * pattern can include two wildards. The first is '*', a wildcard that matches
+ * zero or more characters, or ‘?’, a wildcard that matches exactly one
+ * character.
+ *
+ * @param[in] pattern The pattern to match, e.g. "test_wurst*"
+ */
+void cmocka_set_test_filter(const char *pattern);
+
/** @} */
#endif /* CMOCKA_H_ */