[gollvm] Test for GoLLVM?

79 views
Skip to first unread message

Lanzhiguan Huang

unread,
Apr 12, 2022, 3:20:32 AM4/12/22
to golang-nuts
Hello, 
  Any ideas about running the tests under go/test directory? I think the test framework is designed to be applicable for all the go compilers(go, gccgo, gollvm...) but it seems there is something like assembly or unrecognizable flags which will block the test. Is there an easy way to filter out these unsupported things and run the test using gollvm?

Ian Lance Taylor

unread,
Apr 12, 2022, 5:58:27 PM4/12/22
to Lanzhiguan Huang, golang-nuts
On Tue, Apr 12, 2022 at 12:20 AM Lanzhiguan Huang
<huangla...@gmail.com> wrote:
>
> Any ideas about running the tests under go/test directory? I think the test framework is designed to be applicable for all the go compilers(go, gccgo, gollvm...) but it seems there is something like assembly or unrecognizable flags which will block the test. Is there an easy way to filter out these unsupported things and run the test using gollvm?

This probably won't help directly with GoLLVM, but gccgo uses DejaGNU
to run the tests. See

https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/testsuite/go.test/go-test.exp;h=11c178ad7ecbe9d568a3c25ce76abce072af7e84;hb=HEAD

Ian

Lanzhiguan Huang

unread,
Apr 12, 2022, 11:55:54 PM4/12/22
to golang-nuts

Thanks, I see most of the cases are as same as the tests under go/test so we just need a testing framework.

Than McIntosh

unread,
Apr 13, 2022, 8:40:44 AM4/13/22
to Lanzhiguan Huang, golang-nuts
>Any ideas about running the tests under go/test directory

Yes, as you surmise it would be mainly about developing the appropriate test harness. We haven't done anything in that direction for gollvm, but it seems doable overall.

Than


On Tue, Apr 12, 2022 at 3:20 AM Lanzhiguan Huang <huangla...@gmail.com> wrote:
Hello, 
  Any ideas about running the tests under go/test directory? I think the test framework is designed to be applicable for all the go compilers(go, gccgo, gollvm...) but it seems there is something like assembly or unrecognizable flags which will block the test. Is there an easy way to filter out these unsupported things and run the test using gollvm?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/33fe1b02-b9d5-4b46-95c2-42b96b04bd02n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages