oridb/mc

runtest.sh pkgtrait test failure

Earnestly opened this issue · 2 comments

Hi,

When attempting to run make check I'm getting this one test failure, which seems to result in 2 FAILURES, the runtest.sh itself and runtest.sh/pkgtrait (shouldn't this only be one failure?):

	run pkgtrait:	pkgtrait: regex does not exist in ../lib/std ../lib/sys ../lib /usr/local/lib/myr
./runtest.sh: line 30: ./pkgtrait: No such file or directory
FAIL pkgtrait

I found this patch to "fix" it:

diff --git a/test/runtest.sh b/test/runtest.sh
index 020fdef1..feaa7b45 100755
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -10,7 +10,7 @@ NPASSES=0
 build() {
        rm -f $1 $1.o $1.s $1.use
        echo ../obj/mbld/mbld -o '' -b $1 -I../lib/std -I../lib/sys -r../rt/_myrrt.o $1.myr
-       ../obj/mbld/mbld -o '' -b $1 -I../lib/std -I../lib/sys -r../rt/_myrrt.o $1.myr
+       ../obj/mbld/mbld -o '' -b $1 -I../lib/std -I../lib/sys -I../lib/regex -r../rt/_myrrt.o $1.myr
 }
 
 pass() {

The same would be applied to the rc script as well. But I assume this is not ideal since there is more than just ../lib/regex and if future tests use those facilities it would need to be parameterised in some way.

oridb commented

Yes indeed, I am running the tests prior to make install. It makes things
a lot more straight foward when doing staged installations this way.

Many thanks again o/