Add some missing tests to the test setting of Bazel for Ruby (#19870)
I'm not sure why, but it seems that some tests are not running via Bazel. CI uses Bazel. So I think we should add those to test correctly.
Also, I fixed some tests to pass.
* Run memory tests against CRuby native implementation
* These tests are for CRuby native implementation. So this doesn't work with FFI and JRuby.
* Ref: https://github.com/protocolbuffers/protobuf/pull/15840/
* Run service options extension test against CRuby native implementation
* It seems that JRuby doesn't support this so far.
* And, service options are frozen objects. But, in CRuby FFI, can't get a Message instance if the message is frozen. So this doesn't work.
* https://github.com/protocolbuffers/protobuf/blob/d406cae0138f4f1f283a22be9474bef1f48bb0dc/ruby/lib/google/protobuf/ffi/message.rb#L419
* So the service options extension test only passes in CRuby native.
Closes #19870
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/19870 from y-yagi:add_some_missing_tests d51158def9c43a317c734f1b99aeb4d61682e768
PiperOrigin-RevId: 721603213 Y
y-yagi committed
fd20cfcd8c3ecabd76fc2f700d9d367deb47d2b1
Parent: b168fda
Committed by Copybara-Service <copybara-worker@google.com>
on 1/31/2025, 3:41:27 AM