summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-17 21:32:03 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-17 21:32:29 -0800
commit3fb4e8e6ab0ec8c1b29a97c4d260d2a030055bf6 (patch)
tree1080ab541cf267056a2778f587ebc717a7347c92 /mbld
parent974ffa6f22cdcc1b0c220cb87f74854b4966b41d (diff)
downloadmc-3fb4e8e6ab0ec8c1b29a97c4d260d2a030055bf6.tar.gz
Build code before running tests.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/build.myr1
-rw-r--r--mbld/test.myr2
2 files changed, 3 insertions, 0 deletions
diff --git a/mbld/build.myr b/mbld/build.myr
index eb4d0dc..80fe928 100644
--- a/mbld/build.myr
+++ b/mbld/build.myr
@@ -32,6 +32,7 @@ const buildall = {b
| `Cmd ct: /* these are for manual commands or tests */
;;
;;
+ setdir(b, "")
-> true
}
diff --git a/mbld/test.myr b/mbld/test.myr
index dadf8a7..eedd2a8 100644
--- a/mbld/test.myr
+++ b/mbld/test.myr
@@ -21,6 +21,8 @@ const test = {b
/* no implicit tests to run */
tests = [][:]
+ buildall(b)
+ setdir(b, "")
if std.fexists("test")
for tn in b.all
match gettarg(b.targs, tn)