1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/rubygems
David Rodríguez acb793b71c [rubygems/rubygems] Make cmake tests less verbose on jruby
These tests work on jruby, but the flags to the system command used to
detect whether `cmake` is present seem to be ignored on jruby and the
output is printed to screen instead of being sent to /dev/null. This
results in very verbose tests, like this:

```
$ rake TESTOPTS=--name=TestGemExtCmakeBuilder#test_self_build
(... warnings skipped ...)
Skipping `gem cert` tests on jruby.
Skipping Gem::Security tests on jruby.
Run options: --name=TestGemExtCmakeBuilder#test_self_build --seed 16839

# Running:

/home/deivid/Code/rubygems/test/rubygems/test_gem_ext_cmake_builder.rb:13: warning: system does not support options in JRuby yet: {:out=>"/dev/null", :err=>[:child, :out]}
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.

.

Finished in 0.387301s, 2.5820 runs/s, 20.6558 assertions/s.

1 runs, 8 assertions, 0 failures, 0 errors, 0 skips
Coverage report generated for Unit Tests to /home/deivid/Code/rubygems/coverage. 2258 / 8832 LOC (25.57%) covered.
```

By using `Open3`, we get the test output clean:

```
$ rake TESTOPTS=--name=TestGemExtCmakeBuilder#test_self_build
(... warnings skipped ...)
Skipping `gem cert` tests on jruby.
Skipping Gem::Security tests on jruby.
Run options: --name=TestGemExtCmakeBuilder#test_self_build --seed 22605

# Running:

.

Finished in 0.381959s, 2.6181 runs/s, 20.9446 assertions/s.

1 runs, 8 assertions, 0 failures, 0 errors, 0 skips
Coverage report generated for Unit Tests to /home/deivid/Code/rubygems/coverage. 2258 / 8832 LOC (25.57%) covered.

```

https://github.com/rubygems/rubygems/commit/531ce37ea3
2020-05-08 14:13:29 +09:00
..
data
fake_certlib
foo
plugin Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
rubygems/commands
sff
specifications [rubygems/rubygems] Add gem build test to check for removed methods. 2020-05-08 07:38:50 +09:00
alternate_cert.pem
alternate_cert_32.pem
alternate_key.pem
bad_rake.rb
bogussources.rb
ca_cert.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
child_cert.pem
child_cert_32.pem
child_key.pem
client.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
encrypted_private_key.pem
expired_cert.pem
future_cert.pem
future_cert_32.pem
good_rake.rb
grandchild_cert.pem
grandchild_cert_32.pem
grandchild_key.pem
invalid_client.pem
invalid_issuer_cert.pem
invalid_issuer_cert_32.pem
invalid_key.pem
invalid_signer_cert.pem
invalid_signer_cert_32.pem
invalidchild_cert.pem
invalidchild_cert_32.pem
invalidchild_key.pem
private3072_key.pem
private_key.pem
public3072_cert.pem
public_cert.pem
public_cert_32.pem
public_key.pem
rubygems_plugin.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
simple_gem.rb
ssl_cert.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
ssl_key.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
test_bundled_ca.rb [rubygems/rubygems] Remove minitest compatibility code 2020-05-08 07:38:50 +09:00
test_config.rb
test_deprecate.rb [rubygems/rubygems] Revert deprecation of deprecate method for now. 2020-05-08 07:38:50 +09:00
test_gem.rb [rubygems/rubygems] Refactor ruby command line building for tests 2020-05-08 14:13:29 +09:00
test_gem_available_set.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_bundler_version_finder.rb Skip a test that attempts to remove the current directory on Solaris 2020-03-24 17:43:33 +09:00
test_gem_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_command_manager.rb [rubygems/rubygems] Rename version horizon deprecation methods 2020-05-08 07:38:50 +09:00
test_gem_commands_build_command.rb [rubygems/rubygems] Add gem build test to check for removed methods. 2020-05-08 07:38:50 +09:00
test_gem_commands_cert_command.rb Support XDG_* (#2174) 2020-04-23 19:16:06 +09:00
test_gem_commands_check_command.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_commands_cleanup_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_contents_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_dependency_command.rb Update rubygems with latest upstream changes 2019-04-28 11:07:45 +09:00
test_gem_commands_environment_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_fetch_command.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_commands_generate_index_command.rb Prepare to release RubyGems 3.1.0 final version. 2019-12-13 20:19:33 +09:00
test_gem_commands_help_command.rb Prepare to release RubyGems 3.1.0 final version. 2019-12-13 20:19:33 +09:00
test_gem_commands_info_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_install_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_list_command.rb
test_gem_commands_lock_command.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_commands_mirror.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_open_command.rb [rubygems/rubygems] Use newer module Minitest name 2020-05-08 07:38:50 +09:00
test_gem_commands_outdated_command.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_commands_owner_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_pristine_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_push_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_query_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_search_command.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_commands_server_command.rb Prepare to release rubygems-3.1.0 2019-12-15 16:48:52 +09:00
test_gem_commands_setup_command.rb Normalize heredoc case in rubygems code base 2020-05-08 07:38:50 +09:00
test_gem_commands_signin_command.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_commands_signout_command.rb Support XDG_* (#2174) 2020-04-23 19:16:06 +09:00
test_gem_commands_sources_command.rb Merge the current master branch of rubygems/rubygems. 2020-02-01 11:14:57 +09:00
test_gem_commands_specification_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_stale_command.rb
test_gem_commands_uninstall_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_unpack_command.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_commands_update_command.rb Sync rubygems with current master (#2889) 2020-03-24 15:39:24 +09:00
test_gem_commands_which_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_yank_command.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_config_file.rb Support XDG_* (#2174) 2020-04-23 19:16:06 +09:00
test_gem_dependency.rb [rubygems/rubygems] Add Gem::Dependency#identity method 2019-10-05 10:50:02 +09:00
test_gem_dependency_installer.rb [rubygems/rubygems] Revert "Remove Gem::DependencyInstaller#find_gems_with_sources" 2020-03-30 12:54:58 +09:00
test_gem_dependency_list.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_dependency_resolution_error.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_doctor.rb Sync rubygems with current master (#2889) 2020-03-24 15:39:24 +09:00
test_gem_ext_builder.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_ext_cmake_builder.rb [rubygems/rubygems] Make cmake tests less verbose on jruby 2020-05-08 14:13:29 +09:00
test_gem_ext_configure_builder.rb [rubygems/rubygems] These specs seem to work just fine on jruby 2020-05-08 07:38:50 +09:00
test_gem_ext_ext_conf_builder.rb Merge RubyGems 3.1.0.pre3 2019-11-11 16:59:49 +09:00
test_gem_ext_rake_builder.rb [rubygems/rubygems] Remove unnecessary @@ruby variable 2020-05-08 14:13:29 +09:00
test_gem_gem_runner.rb [rubygems/rubygems] Avoid "ambiguous first argument" warning 2020-05-08 07:38:50 +09:00
test_gem_gemcutter_utilities.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_impossible_dependencies_error.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_indexer.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_install_update_options.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_installer.rb [rubygems/rubygems] Fix ruby warnings about a shadowed variable 2020-05-08 14:13:29 +09:00
test_gem_local_remote_options.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_name_tuple.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_package.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_package_old.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_package_tar_header.rb [rubygems/rubygems] Allow spaces in file headers during octal check 2020-05-08 14:13:29 +09:00
test_gem_package_tar_reader.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_package_tar_reader_entry.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_package_tar_writer.rb Sync rubygems with current master (#2889) 2020-03-24 15:39:24 +09:00
test_gem_package_task.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_path_support.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_platform.rb [rubygems/rubygems] add tests 2019-09-26 17:48:01 +09:00
test_gem_rdoc.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_remote_fetcher.rb [rubygems/rubygems] Remove unnecessary DIR constant 2020-05-08 07:38:50 +09:00
test_gem_request.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_request_connection_pools.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_request_set.rb Normalize heredoc case in rubygems code base 2020-05-08 07:38:50 +09:00
test_gem_request_set_gem_dependency_api.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_request_set_lockfile.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_request_set_lockfile_parser.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
test_gem_request_set_lockfile_tokenizer.rb [rubygems/rubygems] Consistently left align tokenizer test columns 2020-03-30 12:48:06 +09:00
test_gem_requirement.rb Update rubygems with latest upstream changes 2019-04-28 11:07:45 +09:00
test_gem_resolver.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_resolver_activation_request.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_resolver_api_set.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_resolver_api_specification.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_best_set.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_composed_set.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_conflict.rb [rubygems/rubygems] Remove conflict.rb code that was supposed to be removed in Rubygems 3 2019-07-31 07:47:01 +08:00
test_gem_resolver_dependency_request.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_git_set.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_git_specification.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_resolver_index_set.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_index_specification.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_resolver_installed_specification.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
test_gem_resolver_installer_set.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_resolver_local_specification.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_lock_set.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_lock_specification.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_requirement_list.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_specification.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_resolver_vendor_set.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_vendor_specification.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_security.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_security_policy.rb Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
test_gem_security_signer.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_security_trust_dir.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_server.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_silent_ui.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source.rb Support XDG_* (#2174) 2020-04-23 19:16:06 +09:00
test_gem_source_fetch_problem.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source_git.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_source_installed.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_source_list.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source_local.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_source_lock.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_source_specific_file.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_source_vendor.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_spec_fetcher.rb [rubygems/rubygems] Fix ruby warning about unused local variables 2020-05-08 14:13:29 +09:00
test_gem_specification.rb Normalize heredoc case in rubygems code base 2020-05-08 07:38:50 +09:00
test_gem_stream_ui.rb test/rubygems/test_gem_stream_ui.rb (test_ask_for_password): extend the timeout 2019-05-29 13:01:53 +09:00
test_gem_stub_specification.rb [rubygems/rubygems] Add gem build test to check for removed methods. 2020-05-08 07:38:50 +09:00
test_gem_text.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_uninstaller.rb [rubygems/rubygems] Fix symlink RubyGems test problems for non-admin user. 2020-05-08 14:13:29 +09:00
test_gem_unsatisfiable_dependency_error.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_uri_formatter.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_util.rb [rubygems/rubygems] Refactor ruby command line building for tests 2020-05-08 14:13:29 +09:00
test_gem_validator.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_version.rb Merge the current master branch of rubygems/rubygems. 2020-02-01 11:14:57 +09:00
test_gem_version_option.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_kernel.rb [rubygems/rubygems] Refactor ruby command line building for tests 2020-05-08 14:13:29 +09:00
test_project_sanity.rb Prepare to release rubygems-3.1.0 2019-12-15 16:48:52 +09:00
test_remote_fetch_error.rb Prepare to release RubyGems 3.1.0 final version. 2019-12-13 20:19:33 +09:00
test_require.rb [rubygems/rubygems] Refactor ruby command line building for tests 2020-05-08 14:13:29 +09:00
wrong_key_cert.pem
wrong_key_cert_32.pem