-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: new codegen test harness grabs wrong go binary to run tests #24217
Comments
cc @rasky @randall77 |
I believe we just need to use |
If I change that, I would change it for the whole testsuite (so not only asmcheck). Right now, it assumes that the just-build Go is first in the PATH. |
But when you add a new test in the toplevel |
That’s surprising to me; you can check run.go and it always runs “go something”. |
... unless you usually run the other tests through all.bash, which tweaks the PATH |
Ah, yes, I was confused. You are right, I checked my notes and they say that in order to directly run It's a little unfortunate, since it does work in the old test harness, but if we're fine with this I guess we can close. |
Unavoidable I guess, sigh. Closing this. |
I don't think it's unavoidable: we can change run.go to use |
Change https://golang.org/cl/98439 mentions this issue: |
The new code generation test harness introduced in CL 97355 does not work when working on
tip
with a codegen transformation only present on tip. For example, I recently taught the 386 backend to intrisifymath.Sqrt
and when I add the following testto the tip repository and run it, it'll fail because the
asmcheck
driver intest/run.go
uses this line to compile the codegen test files:and on my system
go
points to the stable installation in/usr/local/go
, which is a 1.10 toolchain, wheremath.Sqrt
is not intrisified on 386.In the old test harness we use
internal/testenv
to ensure we're using the right go toolchain:but I believe we can't do this inside a test in the
go/test
.The text was updated successfully, but these errors were encountered: