(Threadjacked from GoScript discussion)
So is there a standard self-test suite that alternate Go compilers
(eg, GoScript, llvmgo) can use to verify conformance?
> So is there a standard self-test suite that alternate Go compilers
> (eg, GoScript, llvmgo) can use to verify conformance?
The contents of go/test, particularly go/test/fixedbugs, include all the
cases we've discovered where either of the main Go compilers mishandled
valid code.
The less common areas in Go have extensive tests in go/test (e.g.,
go/test/shift[12].go, go/test/interface/*.go, go/test/chan/*.go, etc.).
That said, there has been no attempt to systematically go through the
spec and test every aspect of it.
Ian
So is there a standard self-test suite that alternate Go compilers
(eg, GoScript, llvmgo) can use to verify conformance?
> On Friday, 6 April 2012 01:08:43 UTC+8, Steven Johnson wrote:
>>
>> So is there a standard self-test suite that alternate Go compilers
>> (eg, GoScript, llvmgo) can use to verify conformance?
>>
> I'm in the process of putting together automated functional tests for llgo.
>
> It's pretty basic at the moment: each test case is a standalone program
> that is run once with "go run", and then compiled & interpreted with
> llgo/gollvm and the output compared.
interpreted ?
did you use/write an interpreter (like cling for clang) ?
(I wanted to work on llgo but gollvm requires the not yet released
llvm-3.1...)
-s
> It's pretty basic at the moment: each test case is a standalone program
> that is run once with "go run", and then compiled & interpreted with
> llgo/gollvm and the output compared.interpreted ?
did you use/write an interpreter (like cling for clang) ?
(I wanted to work on llgo but gollvm requires the not yet released
llvm-3.1...)
Excellent. I'll add your project to my watchlist :-)