]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/asm: add end-to-end test
authorRob Pike <r@golang.org>
Fri, 20 Feb 2015 18:06:44 +0000 (10:06 -0800)
committerRob Pike <r@golang.org>
Sat, 21 Feb 2015 02:02:23 +0000 (02:02 +0000)
commit634049dbe64e39ffe7becfaf9629e409ce62b2dc
treedd92ab45ece44b51a76e9a173ba68733aa508a9f
parent5d111b898ad83fc09470f1a98f481f4e9f5a4cdf
[dev.cc] cmd/asm: add end-to-end test

Add trivial golden test that verifies output matches expectation.
The input is based on the old grammar and is intended to cover
the space of the input language.

PPC64 and ARM only for now; others to follow.

Change-Id: Ib5957822bcafd5b9d4c1dea1c03cc6ee1238f7ef
Reviewed-on: https://go-review.googlesource.com/5421
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/endtoend_test.go [new file with mode: 0644]
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/testdata/arm.out [new file with mode: 0644]
src/cmd/asm/internal/asm/testdata/arm.s [new file with mode: 0644]
src/cmd/asm/internal/asm/testdata/ppc64.out [new file with mode: 0644]
src/cmd/asm/internal/asm/testdata/ppc64.s [new file with mode: 0644]
src/cmd/asm/internal/lex/lex.go