commit b45f002c8d2b26f949208982aa6b683d117592b2
parent 5dec57616c9ae8a4ed8dfe36a48572f453be7b13
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 2 Apr 2021 17:42:17 -0400
cmd/hare: finishing touches on hare test
This still has room for improvement, see TODOs
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/cmd/hare/schedule.ha b/cmd/hare/schedule.ha
@@ -195,6 +195,14 @@ fn sched_hare_object(
append(harec.cmd, "-D", plan.context.defines[i]);
};
+ // XXX: This is kind of hacky too
+ for (let i = 0z; i < len(plan.context.tags); i += 1) {
+ if (plan.context.tags[i].mode == module::tag_mode::INCLUSIVE) {
+ append(harec.cmd, "-T", strings::concat("+",
+ plan.context.tags[i].name));
+ };
+ };
+
mkfile(plan, "o"); // TODO: Should exes go in the cache?
};