ref: f767b929dbc86ff9f0fb637d6c7cdfeb20883521
parent: 5864693bba33898265ae04f27d6e5c58af9b5590
author: Ori Bernstein <[email protected]>
date: Fri Nov 20 06:22:12 EST 2015
We don't need to rebuild tests every time. Staleness checks should handle it.
--- a/mbld/test.myr
+++ b/mbld/test.myr
@@ -132,7 +132,6 @@
.incpath = std.slput(std.sldup(targ.incpath), 0, "."),
]
- cleantest(b, path)
buildbin(b, &tt, true)
cmd = std.sldup([std.strcat("./", bin)][:])
tests = std.slpush(tests, (cmd, std.sldup(targ.dir)))
@@ -142,25 +141,6 @@
;;
;;
-> tests
-}
-
-const cleantest = {b, src
- var obj, bin, log, usef
-
- obj = srcswapsuffix(src, config.Objsuffix)
- log = srcswapsuffix(src, ".log")
- usef = srcswapsuffix(src, ".use")
- bin = srcswapsuffix(src, "")
-
- std.remove(obj)
- std.remove(usef)
- std.remove(log)
- std.remove(bin)
-
- std.slfree(obj)
- std.slfree(usef)
- std.slfree(log)
- std.slfree(bin)
}
const runtest = {cmd