int verbose = 0;
static struct tlist_ccanlint tests = TLIST_INIT(tests);
bool safe_mode = false;
+static bool targeting = false;
static struct btree *cmdline_exclude;
static struct btree *info_exclude;
static unsigned int timeout;
memcpy(&test->options[num], options, (num_options + 1)*sizeof(char *));
}
-static void add_info_options(struct ccan_file *info, bool mark_fails)
+void add_info_options(struct ccan_file *info)
{
struct doc_section *d;
unsigned int i;
/* Known failure? */
if (strcasecmp(words[1], "FAIL") == 0) {
- if (mark_fails)
+ if (!targeting)
btree_insert(info_exclude, words[0]);
} else {
if (!test->takes_options)
for (i = 1; i < argc; i++) {
unsigned int score, total_score;
- bool added_info_options = false;
dir = argv[i];
goto next;
}
}
-
- /* --target overrides known FAIL from _info */
- if (!added_info_options && m->info_file) {
- add_info_options(m->info_file, !target);
- added_info_options = true;
- }
}
printf("%sTotal score: %u/%u\n", prefix, score, total_score);
/* Is this test excluded (cmdline or _info). */
bool is_excluded(const char *name);
+/* Called to add options from _info, once it's located. */
+void add_info_options(struct ccan_file *info);
+
/* Are we happy to compile stuff, or just non-intrusive tests? */
extern bool safe_mode;