/* From tests/check_depends_exist.c */
struct list_head dep_dirs;
- /* From tests/check_depends_built.c */
- struct list_head dep_objs;
};
struct manifest *get_manifest(const void *ctx, const char *dir);
struct ccanlint {
struct list_node list;
+ /* More concise unique name of test. */
+ const char *key;
+
/* Unique name of test */
const char *name;
/* Can we run this test? Return string explaining why, if not. */
const char *(*can_run)(struct manifest *m);
- /* If this returns non-NULL, it means the check failed. */
- void *(*check)(struct manifest *m);
+ /* If this returns non-NULL, it means the check failed.
+ * If timeleft is set to 0, means it timed out. */
+ void *(*check)(struct manifest *m, unsigned int *timeleft);
/* The non-NULL return from check is passed to one of these: */