x/mobile: document the requirements for running tests #19046
Comments
CL https://golang.org/cl/37318 mentions this issue. |
CL https://golang.org/cl/37320 mentions this issue. |
I'm not sure why the java_test.go:71 test is getting 2 classes instead of 1. Could you try https://go-review.googlesource.com/c/37320/ and see if that fixes that particular test? If not, could you paste the output from |
Also, please re-run the test suite after running |
Updates golang/go#19046 Change-Id: I51990a3e023d0a5339df72cc372565eecf5798e1 Reviewed-on: https://go-review.googlesource.com/37318 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
CL https://golang.org/cl/37321 mentions this issue. |
Thanks, I've re-run the tests using https://go-review.googlesource.com/c/37320/ (184897121af27bc8e7d8edfd50f297e81db2f132). The java test (java_test.go:71: got 2 classes, expected 1) finishes successfully. Output of javap -J-Duser.language=en -s -protected -constants java.lang.Object and javap -J-Duser.language=en -s -protected -constants java.lang.Runnable Full test output:
|
To avoid picking up a classpath from the CLASSPATH environment variable, always specify an explicit classpath to javap, even if is empty. Updates golang/go#19046. Change-Id: I2b3d941ba2779f90654117a046ae1600a53d5848 Reviewed-on: https://go-review.googlesource.com/37320 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
The test broke a long time ago when the underlying API changed. It seems too useful to remove outright, so disable it until someone cares enough to update it. Updates golang/go#19046. Change-Id: Iec49be30fbc2e3ffd6fa73e584b15a481751049f Reviewed-on: https://go-review.googlesource.com/37321 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
CL https://golang.org/cl/37326 mentions this issue. |
CL https://golang.org/cl/37327 mentions this issue. |
Updates golang/go#19046 Change-Id: I0fc8fedc179d24ec9691528cab98857f3f9a4291 Reviewed-on: https://go-review.googlesource.com/37327 Reviewed-by: Jaana Burcu Dogan <jbd@google.com>
CL 30093 removed the go install step from gobind to avoid errors from circular dependencies with Java reverse wrapper. However, if a dependency is either never installed or outdated, gobind will fail. Reinstate the go install step, but ignore errors from the go install tool. Tested manually by wiping the $GOPATH/pkg directory and running the cmd/gobind tests. Updates golang/go#19046 Change-Id: I31832eccab09b2a7cf29e5d5bc1cc76963b7c2ef Reviewed-on: https://go-review.googlesource.com/37326 Reviewed-by: David Crawshaw <crawshaw@golang.org>
Several tests have been fixed; can you try again and see if any still fail for you? |
All tests pass now. Thank you. |
I'm trying to figure out why x/mobile tests are failing with my setup. Below is a list of failing tests, not sure what is the reason.
go version go1.7.4 darwin/amd64
gomobile version +60b0aaa Tue Jan 31 20:25:16 2017 +0000 (android,ios); androidSDK=
macOS 10.12.3
What did you do?
What did you expect to see?
No failing tests.
What did you see instead?
Full output (7000 lines)
https://gist.github.com/8tt/996bac25dfd29f950e30a0f60c9cce81
/cc @eliasnaur @crawshaw @hyangah
The text was updated successfully, but these errors were encountered: