1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
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
..
-ext- Fix rb_profile_frame_classpath to handle module singletons 2020-05-07 08:46:36 -07:00
base64
benchmark
bigdecimal
cgi need to restore $stdin. 2020-03-02 13:14:38 +09:00
coverage compile.c: stop wrong peephole optimization when covearge is enabled 2019-12-04 10:40:54 +09:00
csv Fixed for older versions 2020-02-26 10:16:32 +09:00
date Fixed misspellings 2019-12-20 12:19:45 +09:00
dbm
did_you_mean support multi-run test for test/did_you_mean/test_verbose_formatter.rb 2020-02-13 11:07:38 +09:00
digest test/digest/test_digest.rb: Apply EnvUtil.apply_timeout_scale to timeout 2020-03-27 15:32:52 +09:00
drb Skip test_06_timeout for --jit-wait CI 2020-03-08 22:34:33 -07:00
dtrace
erb
etc test/etc/test_etc.rb: skip some tests on Android 2020-02-12 17:28:29 +09:00
excludes Revert "Skip interruptible raw mode test on Travis-CI" 2019-12-18 00:08:21 +09:00
fiddle Dir.glob always returns an array 2020-04-01 12:48:56 +09:00
fileutils Revert "[ruby/fileutils] Fix #install with "X" mode option" 2019-11-30 17:58:39 +09:00
gdbm
io [ruby/io-console] Filter Ruby engine name rather than just /ruby/ 2020-01-18 00:15:00 +09:00
irb Restore the external and internal encodings of STDIN, STDOUT, and STDERR 2020-05-08 00:19:54 +09:00
json test/json/test_helper.rb: Do not add a relative path to $LOAD_PATH 2020-03-24 10:45:52 +09:00
lib Split compile and link for MinGW support 2020-05-03 16:41:25 -07:00
logger Fixed misspellings 2019-12-20 12:19:45 +09:00
matrix [ruby/matrix] Add Matrix#adjoint [#14] 2020-05-01 03:25:15 -04:00
mkmf
monitor new_cond before mon_initialize 2019-12-04 13:36:41 +09:00
net [ruby/net-ftp] Added guard condition for the old ruby versions 2020-04-08 15:51:18 +09:00
nkf
objspace
open-uri
openssl test/openssl/test_ssl.rb: ignore SSLError when the connection is closed 2020-03-21 15:46:33 +09:00
optparse LoadError is not a subclass of StandardError 2019-11-29 11:25:23 +09:00
ostruct Prefer dedicated assertion method 2020-02-25 17:47:17 +09:00
pathname brace the fact that lchmod(2) can EOPNOTSUPP 2020-01-24 10:49:35 +09:00
psych Fix remove warning & support multi-run test for test/psych/visitors/test_to_ruby.rb 2020-02-13 11:01:15 +09:00
racc Fixed misspellings 2019-12-20 12:19:45 +09:00
rdoc Fix failures of test/rdoc/test_rdoc_ri_paths.rb 2020-04-26 16:14:14 +09:00
readline Set Readline.completion_append_character = nil always 2020-02-29 03:32:36 +09:00
reline [ruby/reline] Negative history_size means unlimited 2020-04-29 19:13:14 +09:00
resolv MinGW on Actions (#2791) 2019-12-30 23:19:31 -08:00
rinda test/rinda/test_rinda.rb: Increase the timeout 2020-01-25 14:14:05 +09:00
ripper Removed unnecessary RLIMIT_AS 2020-04-28 23:36:16 +09:00
ruby Fix typo in test name 2020-05-08 07:46:33 +09:00
rubygems [rubygems/rubygems] Make cmake tests less verbose on jruby 2020-05-08 14:13:29 +09:00
sdbm
socket Fixed leaked fds 2020-05-06 12:45:01 +09:00
stringio [ruby/stringio] StringIO#initialize default to the source string encoding 2020-03-15 18:43:01 +09:00
strscan
syslog
uri Fakes IPSocket.getaddress in the whole method 2020-05-06 16:06:25 +09:00
webrick restore server[:DocumentRootOptions] setting. 2020-02-29 00:43:41 +09:00
win32ole
yaml
zlib
runner.rb
test_abbrev.rb
test_delegate.rb Fix SimpleDelegator respond_to? regression 2020-02-03 08:16:22 -08:00
test_extlibs.rb
test_find.rb
test_forwardable.rb [ruby/forwardable] Make def_*_delegator return name of method defined (Fixes #10) 2019-12-11 20:23:53 +09:00
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb Mask RubyVM-specific test 2020-03-05 16:49:27 -06:00
test_prettyprint.rb
test_prime.rb [ruby/prime] Fix Prime.include? 2020-03-06 20:54:33 +09:00
test_pstore.rb
test_pty.rb
test_rbconfig.rb Make RbConfig::CONFIG values mutable [Bug #16738] 2020-03-25 22:09:28 +09:00
test_securerandom.rb
test_set.rb Call initialize_clone with freeze: false if clone called with freeze: false 2020-01-03 20:13:09 -08:00
test_shellwords.rb
test_singleton.rb
test_syslog.rb Update some syslog tests to absurb the format change of FreeBSD syslog 2020-03-12 15:30:20 +09:00
test_tempfile.rb
test_time.rb Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime 2019-11-21 03:32:20 +02:00
test_timeout.rb
test_tmpdir.rb
test_tracer.rb Use realpath to try to fix failures with symlinks 2019-11-23 11:41:27 +09:00
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb