Commit b1524d16 authored by Rusty Russell's avatar Rusty Russell

ccanlint: add is_excluded() helper.

We'll need this in a moment.
parent 6165b3af
......@@ -222,6 +222,13 @@ static struct ccanlint *find_test(const char *key)
return NULL;
}
bool is_excluded(const char *name)
{
return btree_lookup(cmdline_exclude, name) != NULL
|| btree_lookup(info_exclude, name) != NULL
|| find_test(name)->skip != NULL;
}
#undef REGISTER_TEST
#define REGISTER_TEST(name, ...) extern struct ccanlint name
#include "generated-normal-tests"
......
......@@ -237,6 +237,9 @@ struct dependent {
struct ccanlint *dependent;
};
/* Is this test excluded (cmdline or _info). */
bool is_excluded(const char *name);
/* Are we happy to compile stuff, or just non-intrusive tests? */
extern bool safe_mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment