diff options
author | Jarek Prokop <jprokop@redhat.com> | 2021-03-09 12:44:33 +0100 |
---|---|---|
committer | Jarek Prokop <jprokop@redhat.com> | 2021-03-09 14:44:54 +0100 |
commit | 3ab9d9369d08a001e7634c8dfcfda722c9f69b60 (patch) | |
tree | 24a2b7bf75b7eba2b0a43a4f826f7fb47784d840 | |
parent | d45cfd6bf51e42ae06abc39b59ed755faa2a4361 (diff) | |
download | rubygem-protobuf-3ab9d9369d08a001e7634c8dfcfda722c9f69b60.tar.gz rubygem-protobuf-3ab9d9369d08a001e7634c8dfcfda722c9f69b60.tar.xz rubygem-protobuf-3ab9d9369d08a001e7634c8dfcfda722c9f69b60.zip |
Ignore ffi-zmq related tests.
Disable ffi-rzmq test suites for now since
it is currently not available in Fedora.
-rw-r--r-- | rubygem-protobuf.spec | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/rubygem-protobuf.spec b/rubygem-protobuf.spec index 5dfe5fb..3f7a019 100644 --- a/rubygem-protobuf.spec +++ b/rubygem-protobuf.spec @@ -63,6 +63,28 @@ sed -i -e '/require .pry./ s/^/#/g' \ -e '/^Bundler\./ s/^/#/g' \ spec/spec_helper.rb +# ffi-rzmq is not in fedora +# Removing the require does not seem to affect the test suite anyway +# as long as we require the correct file. +sed -i -e "s/require .protobuf\/zmq./require 'protobuf\/rpc\/connectors\/ping'/g" \ + spec/lib/protobuf/rpc/connectors/ping_spec.rb + +# This test fails only without access to internet. +sed -i -e '/context .when a select timeout is fired./,/^ end$/ s/^/#/' \ + spec/lib/protobuf/rpc/connectors/ping_spec.rb + +# There is not currently a ffi-rzmq gem in Fedora, +# let's disable test suites testing the rzmq capability. +for file in spec/lib/protobuf/rpc/servers/zmq/server_spec.rb \ + spec/lib/protobuf/rpc/servers/zmq/util_spec.rb \ + spec/functional/zmq_server_spec.rb \ + spec/lib/protobuf/rpc/connectors/zmq_spec.rb ; do + + mv $file{,.bak} +done + +sed -i -e "/context ..*zmq.*. do/,/^ end$/ s/^/#/g" spec/lib/protobuf/cli_spec.rb + rspec spec popd @@ -70,7 +92,6 @@ popd %dir %{gem_instdir} %{_bindir}/protoc-gen-ruby %{_bindir}/rpc_server -%exclude %{gem_instdir}/.* %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/bin %{gem_libdir} @@ -78,6 +99,7 @@ popd %{gem_instdir}/proto %{gem_instdir}/varint_prof.rb %exclude %{gem_cache} +%exclude %{gem_instdir}/.* %{gem_spec} %files doc |