shithub: mc

Download patch

ref: 01cc3d9ca848f41740eff61c88df70cf7fd9a1cf
parent: 2fdd2d8f45a906693613df15db38eafcccf68fca
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Sep 10 17:14:53 EDT 2016

We have `mbld test`. Use it, and update runtest.rc to match.

--- a/mkfile
+++ b/mkfile
@@ -49,11 +49,7 @@
 	ape/psh mbldwrap.sh uninstall
 
 check:V: all
-	@{
-		cd test
-		mk check
-	}
-	ape/psh mbldwrap.sh test
+	mbld/mbld test
 
 config.h:
 	echo '#define Instroot "/amd64"' > config.h
--- a/test/runtest.rc
+++ b/test/runtest.rc
@@ -1,10 +1,5 @@
 #!/bin/rc
 
-passed=''
-failed=''
-npassed=0
-nfailed=0
-
 fn build {
 	rm -f $1 $1^.6 $1^.use
 	../mbld/mbld -b $1 -C../6/6.out -M../muse/6.out -I../libstd -r../rt/_myrrt.6 $1^.myr
@@ -11,13 +6,10 @@
 }
 
 fn pass {
-	passed=$passed ^ ' ' ^ $1
 	echo '!}>> ok'
 }
 
 fn fail {
-	echo FAIL: $1
-	failed=$failed ^ ' ' ^ $1
 	echo '!}>> fail '
 }
 
@@ -91,10 +83,5 @@
 
 . tests
 
-echo PASSED ^ ' ' ^ $passed
-if(~ $failed '')
-	echo SUCCESS
-if not
-	echo FAILURES ^ ' ' ^ $failed