shithub: mc

Download patch

ref: 3fb4e8e6ab0ec8c1b29a97c4d260d2a030055bf6
parent: 974ffa6f22cdcc1b0c220cb87f74854b4966b41d
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Dec 17 16:32:03 EST 2015

Build code before running tests.

--- a/mbld/build.myr
+++ b/mbld/build.myr
@@ -32,6 +32,7 @@
 		| `Cmd ct:	/* these are for manual commands or tests */
 		;;
 	;;
+	setdir(b, "")
 	-> true
 }
 
--- a/mbld/test.myr
+++ b/mbld/test.myr
@@ -21,6 +21,8 @@
 
 	/* no implicit tests to run */
 	tests = [][:]
+	buildall(b)
+	setdir(b, "")
 	if std.fexists("test")
 		for tn in b.all
 			match gettarg(b.targs, tn)