static gboolean option_monitor = FALSE;
static gboolean option_list = FALSE;
static const char *option_prefix = NULL;
+static const char *option_string = NULL;
struct monitor_hdr {
uint16_t opcode;
return;
}
+ if (option_string && !strstr(name, option_string)) {
+ if (destroy)
+ destroy(user_data);
+ return;
+ }
+
if (option_list) {
tester_log("%s", name);
if (destroy)
"Only list the tests to be run" },
{ "prefix", 'p', 0, G_OPTION_ARG_STRING, &option_prefix,
"Run tests matching provided prefix" },
+ { "string", 's', 0, G_OPTION_ARG_STRING, &option_string,
+ "Run tests matching provided string" },
{ NULL },
};