oridb / mc

Myrddin Compiler
MIT License
387 stars 34 forks source link

runtest.sh: support running single test #162

Closed typeless closed 6 years ago

typeless commented 6 years ago

usage:

./runtest.sh B genericrec E 0
oridb commented 6 years ago

On Thu, 07 Dec 2017 03:47:54 +0000 (UTC), Mura Li notifications@github.com wrote:

usage:

./runtest.sh B genericrec E 0

You can view, comment on, or merge this pull request online at:

https://github.com/oridb/mc/pull/162

This is useful. I think we can make it more useful.

I'd like to a protocol for the mbld test runner to tell mtest generators. We could probably use an environemtn variable for this. Command line options are also ok, but might need more work in libtestr.

mbld test test.sh/genericrec

If we specify this so that you only need the test name, and not the expected outputs, I can find time to support this in mbld and testr. (Unless, of course, you want to do that).

(cc'ing mailing list)

-- Ori Bernstein

typeless commented 6 years ago

Now it uses an environment variable MTEST_SUBSET

MTEST_SUBSET=generic,genericcall,genericrec ./runtest.sh
oridb commented 6 years ago

Yep, that looks good to me. I'll try to add mbld support for this, so you can do, eg:

mbld test tests/runtest.sh:subtest-name

Thanks!

oridb commented 6 years ago

FYI, this variable is also supported in libtestr now. Last thing is making mbld more aware of it.