Alan Wu
11c1daea17
Add to the MicroJIT scraper an example that passes ec
2021-10-20 18:19:25 -04:00
Alan Wu
7662653b4c
Fix compilation for OPT_THREADED_CODE=2
2021-10-20 18:19:24 -04:00
Alan Wu
2790428e55
Zero sized array are not standard C
2021-10-20 18:19:24 -04:00
Alan Wu
a3e58f4df8
Compile with MicroJIT disabled when scrape fails
...
This is just so we can build successfully on -O0 and other cases that
are not supported by the code scraper.
2021-10-20 18:19:24 -04:00
Alan Wu
f3c961f273
endbr64 is fine
2021-10-20 18:19:24 -04:00
Alan Wu
453218b272
Preliminary GNU/Linux support for code scraper
...
Let's see if this works on CI
2021-10-20 18:19:24 -04:00
Alan Wu
3d87eadf16
Refactor ujit_examples.h generator. Remove dwarfdump dependency
2021-10-20 18:19:24 -04:00
Maxime Chevalier-Boisvert
3739588811
Remove PC argument from ujit instructions
2021-10-20 18:19:23 -04:00
Alan Wu
16c5ce863c
Yeah, this actually works!
2021-10-20 18:19:22 -04:00
Alan Wu
cec197696f
Add example handler for ujit and scrape it from vm.o
2021-10-20 18:19:22 -04:00
Nobuyoshi Nakada
6c74976aef
Remove `Test::Unit::TestCase.make_my_diffs_pretty!`
...
`Test::Unit::CoreAssertions#mu_pp` is defined always using
`pretty_inspect`.
2021-10-18 17:36:06 +09:00
Nobuyoshi Nakada
d1b8544b4d
Remove `Test::Unit::Assertions#exception_details`
...
Never used since fa0f3eff22
.
2021-10-18 17:36:06 +09:00
Nobuyoshi Nakada
c7eac1be51
Retry hung up tests verbosely
2021-10-17 22:40:31 +09:00
Nobuyoshi Nakada
13716898df
Retry hung tests after parallel runs
2021-10-17 16:33:58 +09:00
Nobuyoshi Nakada
478187e9a3
Timeout parallel test worker processes
2021-10-17 16:33:58 +09:00
Nobuyoshi Nakada
5de6e25144
Replace unpack with unpack1
2021-10-17 00:48:45 +09:00
Nobuyoshi Nakada
855db8e9ce
Use `__dir__`
2021-10-15 19:42:39 +09:00
Nobuyoshi Nakada
370fff98ce
Prefer `require_relative`
2021-10-15 18:47:25 +09:00
Nobuyoshi Nakada
679054208e
Use `__dir__`
2021-10-15 15:07:31 +09:00
Hiroshi SHIBATA
9e86a60306
Removed redundant digest namespace
2021-10-14 14:07:50 +09:00
Hiroshi SHIBATA
3265af2f9e
separate pure ruby location under the digest/* extensions
2021-10-14 13:31:45 +09:00
Hiroshi SHIBATA
13772caee2
Move pure ruby files under the ext/gemname/lib directory.
2021-10-14 13:23:45 +09:00
Pavel Rosický
94882df3a2
[ruby/digest] jruby support
...
https://github.com/ruby/digest/commit/2e9dc14693
2021-10-12 20:46:13 +09:00
Takashi Kokubun
b5f0e20936
Add comments in sync_default_gems.rb
...
to ease the maintenance of ruby-commit-hook/bin/update-default-gem.sh
2021-10-10 23:49:15 -07:00
Takashi Kokubun
69cedee2a6
chmod +x tool/sync_default_gems.rb
...
I'm too lazy to start the command with `ruby`.
2021-10-10 23:38:51 -07:00
Nobuyoshi Nakada
cec61d16d2
Run JIT tests first when random order instead of no-sort
2021-10-10 19:23:52 +09:00
Nobuyoshi Nakada
fb9ea391cf
Default the test order to random
2021-10-10 18:30:33 +09:00
Nobuyoshi Nakada
c423cc932e
Refactor `Test::Unit::CoreAssertions#assert_nothing_raised`
...
* Separate exception classes to be rescued or reraised
* Use the filtered backtrace in the failure message
* Raise a new `AssertionFailedError` with the original backtrace
2021-10-09 18:14:21 +09:00
Nobuyoshi Nakada
fc913ad21d
Exclude also core_assertions.rb from backtraces
2021-10-09 16:17:37 +09:00
Nobuyoshi Nakada
3932227d96
Unify `Test::Unit::Assertions#message`
...
Merge `Test::Unit::CoreAssertions#message`.
2021-10-09 16:17:01 +09:00
Nobuyoshi Nakada
489c22b17f
Let `Test::Unit::CoreAssertions::AllFailures#for` yield the key
...
Similar to `Test::Unit::CoreAssertions::AllFailures#foreach`.
2021-10-09 14:28:27 +09:00
OKURA Masafumi
7e506716d2
Newly generated gems require Ruby 2.6.0
...
In 2021, Ruby 2.5 and older are EOL.
We can set the default required Ruby version to 2.6.0 to
encourage people to use newer Ruby.
If the command is executed with old Ruby, it falls back to 2.3.0.
It's still possible to create a gem for older Ruby just by changing
two lines of code (one in gemspec and another is in rubocop.yml).
2021-10-09 09:07:47 +09:00
Nobuyoshi Nakada
7c98e673d7
Fix a typo since 688f2e1a89
2021-10-05 18:24:34 +09:00
Koichi Sasada
bc96a45f12
introduce debug.gem
...
For the `test-bundled-gems`, make `debug.so` with extconf.rb and
`make` command directly because `rake-compiler` assume ruby is
installed (but `test-bundled-gems` can run without installation).
2021-10-05 02:07:33 +09:00
Hiroshi SHIBATA
cbb115213c
Enabled to build extensions with the bundled gems
2021-10-05 02:07:33 +09:00
Nobuyoshi Nakada
b44c5187b4
Expose instruction information for debuggers [Feature #18026 ]
2021-10-04 09:43:09 -07:00
Nobuyoshi Nakada
c4570acc86
Refactor ordering of tests
...
* Split the sorting types into classes.
* Apply the same sorting to method sorting under the parallel
test.
2021-10-04 20:46:47 +09:00
Nobuyoshi Nakada
44b2e32fb6
Fix a typo
2021-10-04 20:44:38 +09:00
Nobuyoshi Nakada
3842e723da
Leave builddir absolute
...
So that rubygems installer will work to build extension gems.
2021-10-04 20:04:38 +09:00
Nobuyoshi Nakada
0ad3ed5e0e
Checks for CPU specific header on universal build
2021-10-01 20:30:10 +09:00
Nobuyoshi Nakada
c7414f517f
Prefer `printf` like the recent autoconf
2021-10-01 20:30:10 +09:00
Hiroshi SHIBATA
83662f1d99
Removed needless rake and bundler files for rdoc
2021-09-28 16:13:45 +09:00
fedor
dd78084ea6
.cirrus.yml: Add Cirrus CI for Arm64 tests.
...
Co-authored-by: fedor <fedor@cirruslabs.org>
2021-09-22 09:01:43 +02:00
Nobuyoshi Nakada
34d6720fee
Prohibit test method redefinition
2021-09-17 08:54:18 +09:00
Hiroshi SHIBATA
43f49b2d1c
Fixup 455978cd13
2021-09-13 21:15:36 +09:00
Hiroshi SHIBATA
ec6f04c092
Use capture_output instead of capture_io
2021-09-13 21:14:42 +09:00
Hiroshi SHIBATA
be04006c7d
Rename capture_io to capture_output and deprecate to use capture_io
2021-09-13 20:56:34 +09:00
Hiroshi SHIBATA
455978cd13
Removed unused mu_pp method
2021-09-13 20:41:03 +09:00
Hiroshi SHIBATA
f5993331b2
Renamed skip to pend and prepared to deprecate skip method
2021-09-13 19:09:24 +09:00
Nobuyoshi Nakada
aaa9805e7e
Add unique token to separated runner
...
Same as Test::Unit::CoreAssertions#assert_no_memory_leak.
2021-09-13 15:47:45 +09:00
Hiroshi SHIBATA
dbdceb8a19
Removed workaround for test_order
2021-09-13 14:39:23 +09:00
Hiroshi SHIBATA
2982464a8e
Revert "Resolved conflict initializers"
...
This reverts commit 62db6e47b6
.
308183fffa
is the correct solution
about this.
2021-09-13 11:07:32 +09:00
Nobuyoshi Nakada
c8a1e57af0
Downloader: accept some RFC 2616 noncompliant dates
2021-09-13 01:48:43 +09:00
Nobuyoshi Nakada
bbd105c445
Exclude option_parser from Test::Unit::Runner#inspect
2021-09-12 03:51:19 +09:00
Nobuyoshi Nakada
308183fffa
Prepend the modules in Test::Unit
...
Needs to override Test::Unit::Runner#run, so that RunCount#run
runs which increments @@run_count. Previously it worked because
these methods were inserted between Test::Unit::Runner#run and
MiniTest::Unit#run.
2021-09-12 03:45:58 +09:00
Hiroshi SHIBATA
8d0315a2bb
Removed unsed assertions for rubygems
2021-09-11 21:05:15 +09:00
Hiroshi SHIBATA
d58e0ffc24
Removed unused alias for run_test
2021-09-11 20:35:18 +09:00
Hiroshi SHIBATA
64e056a4c5
Drop to Ruby 1.8 related code
2021-09-11 18:10:15 +09:00
Hiroshi SHIBATA
a13ee1f33c
Removed rubinius support from test suite
2021-09-11 18:10:15 +09:00
Hiroshi SHIBATA
aebd0a873e
Removed maglev related code because it's not active status now
2021-09-11 18:10:15 +09:00
Nobuyoshi Nakada
952806cdec
Update comments for minitest
2021-09-11 17:37:49 +09:00
Nobuyoshi Nakada
cd83e716d0
Update an option message
2021-09-11 17:32:42 +09:00
Nobuyoshi Nakada
911f62e681
Directly alias orig_run_suite
2021-09-11 17:19:02 +09:00
Nobuyoshi Nakada
46bde60df3
Remove method filter hack for minitest
2021-09-11 17:12:27 +09:00
Nobuyoshi Nakada
30b4da2bc1
Update the test tool path
2021-09-11 16:26:00 +09:00
Hiroshi SHIBATA
d9025ee2b5
fixup f73f9e1f89
2021-09-11 15:29:16 +09:00
Hiroshi SHIBATA
806583c093
Change include order for test assertions
2021-09-11 15:17:38 +09:00
Hiroshi SHIBATA
f73f9e1f89
Replace minitest to test for backtrace_filter
2021-09-11 15:17:38 +09:00
Hiroshi SHIBATA
b178929469
Fixed uninitialized constant Test::Unit::Assertions::MIN_MEASURABLE.
...
I'm not sure why it's failed under the chkbuild and rubyci.
http://rubyci.s3.amazonaws.com/arch/ruby-master/log/20210911T000007Z.fail.html.gz
2021-09-11 11:21:37 +09:00
Hiroshi SHIBATA
9583d2057d
Added missing Assertions for assert_file_predicate
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
d05383812a
Replace Test::Assertion and Test::Skip to Test::Unit::AssertionFailedError and Test::Unit::PendedError
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
7cec81e073
Removed needless require
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
151a1cd45e
Fixed inconsistent require order for assertions and core_assertions
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
d7f0b41c7b
Surpressing the noisy messages
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
980f61935f
Temporary pend unknown behavior of parallel tests
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
566bbc2421
pend non-supported feature
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
bc1c09c6e8
More fixed assertion message tests
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
1c4f0f1eee
We prepared Test::Unit::TestCase in default value
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
0fda70e3a3
We don't want to consistent assert and refute assertions
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
47928204b7
Fixed compatible assertion message format
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
0a5844cbdd
Removed output assertion tests. Because our default runner is replaced by custom output
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
6b5400ccde
Use msg format with test-unit
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
905c04d1e6
Use Test namespace instead of MiniTest in test_parallel.rb
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
9ff614bc13
Use Test::Unit::Assertions migrated with MiniTest::Assertions
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
ad979a5e00
Replace Test::Unit to Test::Unit::Runner migrated with MiniTest::Unit
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
6d206352c3
Use assert_raise instead of assert_raises
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
d5e94bf5db
Replace MiniTest to Test
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
8aaa40e55f
Move test of minitest to testunit
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
a3b0518672
Removed obsoleted constant
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
4505be6fd0
Removed MiniTest hack for the default gems repo
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
3451d4d941
Removed minitest dir and added LEGAL infomation for based code
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
9b026ca39b
Integrate Minitest to Test
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
0598e87abf
Use prepend for override to status line
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
8ee38bdd7d
Removed duplicated autorun method
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
62db6e47b6
Resolved conflict initializers
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
7ef0a4634c
Removed unused _run_suites
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
988eda744c
Removed deprecated process_args
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
206af4727c
Merge poke methods
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
1fd2a66a93
Merge run methods
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
374cc7231e
Removed VERSION constant
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
8ec187c091
Replace MiniTest::Unit to Test::Unit::Runner
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
c18e953937
Move MiniTest::Unit to under Test::Unit::Runner
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
78ec066347
Use CoreAssertions instead of Assertions
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
48933a3409
Added default test-class for parallel tests
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
e4b5ac9b9a
Use Test::Unit namespace
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
df86d78a26
Use self class for diff
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
3e32412e08
Fixed broken runner for `make test-all`
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
871e7b5f55
Use MiniTest
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
7456cbdd09
Move test_order under the Test::Unit::TestCase
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
93c44c4ed2
Move constants under the TestCase
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
54d2d70629
Migrate MiniTest::Unit::TestCase class under the Test::Unit
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
8431c718bb
Removed needless compatibility for MiniTest 5
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
77763d4940
Removed needless alias about Minitest
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
1bec4f251d
Move MiniTest::Assertions to Test::Unit::Assertions
2021-09-11 08:48:03 +09:00
卜部昌平
ef74483594
tool/strip-rdoc.rb: optimize
...
This script is called from Doxygen many times. Worth optimising.
[ci skip]
2021-09-10 20:00:06 +09:00
Nobuyoshi Nakada
0b9242ffac
[Misc #18153 ] Install debug symbol files/directories by the option
2021-09-08 18:51:49 +09:00
Hiroshi SHIBATA
ecfbf1df33
Use Test::Unit::PendedError instead of MiniTest::Skip for test-unit migration
2021-09-06 19:33:56 +09:00
Hiroshi SHIBATA
544e37f184
Simplify conditions for CoreAssertion initialization
2021-09-06 19:31:24 +09:00
Nobuyoshi Nakada
3a145066a6
Expand upstream issue numbers to URLs in ChangeLog
2021-09-04 00:26:39 +09:00
Nobuyoshi Nakada
af68112a1b
Add some punctuations as regexp separators to fix commit logs
2021-09-03 23:46:33 +09:00
Nobuyoshi Nakada
41867532ac
No commits to pick is success [ci skip]
2021-08-31 19:07:08 +09:00
Nobuyoshi Nakada
defdfa020a
Exit with the syncing status [ci skip]
2021-08-31 19:00:17 +09:00
aycabta
2d93b523e1
Add irb section to tool/sync_default_gems.rb
2021-08-30 03:00:02 +09:00
Nobuyoshi Nakada
265a725830
Handle non-succeeding reports mingled with dots
2021-08-29 16:32:55 +09:00
Nobuyoshi Nakada
6c40aa35a5
Memory::Status#_update should return `self`
2021-08-29 16:32:12 +09:00
Hiroshi SHIBATA
384c0f57aa
Added bundle install before bundle exec on rdoc sync
2021-08-25 15:02:29 +09:00
Yusuke Endoh
b44741f5dc
tool/test-bundled-gems.rb: Use the bundled RBS code to test TypeProf
...
Formerly, TypeProf was tested with the latest RBS code during
`make test-bundled-gems`. However, when a new version of rbs is
released, and if it is incompatible with TypeProf,
`make test-bundled-gems` starts failing, which was annoying.
By this change, TypeProf is tested with the bundled version of RBS.
2021-08-25 11:13:17 +09:00
Yusuke Endoh
4a6b5f4622
Revert "tool/test-bundled-gems.rb: Use the bundled RBS code to test TypeProf"
...
This reverts commit 22deda43cb
.
It was incomplete. Sorry!
2021-08-24 18:08:16 +09:00
Hiroshi SHIBATA
d140b03053
Added ruby/un entry
2021-08-24 18:02:44 +09:00
Yusuke Endoh
22deda43cb
tool/test-bundled-gems.rb: Use the bundled RBS code to test TypeProf
...
Formerly, TypeProf was tested with the latest RBS code during
`make test-bundled-gems`. However, when a new version of rbs is
released, and if it is incompatible with TypeProf,
`make test-bundled-gems` starts failing, which was annoying.
By this change, TypeProf is tested with the bundled version of RBS.
2021-08-24 17:43:11 +09:00
Jeremy Evans
48c8df9e0e
Allow tracing of optimized methods
...
This updates the trace instructions to directly dispatch to
opt_send_without_block. So this should cause no slowdown in
non-trace mode.
To enable the tracing of the optimized methods, RUBY_EVENT_C_CALL
and RUBY_EVENT_C_RETURN are added as events to the specialized
instructions.
Fixes [Bug #14870 ]
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2021-08-21 10:15:01 -07:00
Nobuyoshi Nakada
00d66f7ec2
Hard-link executable files to mae runnable
...
As `$ORIGIN` on Linux is refered from the real path of the
executable file, symbolic linked executable file cannot work.
2021-08-19 16:10:35 +09:00
Nobuyoshi Nakada
54199a3f5f
Use `VALUE` instead of `intptr_t`
...
On emscripten `intptr_t`, `uintptr_t`, `ptrdiff_t` and so on are
defined as `long`, but `PRIdPTR` and so on defined as `int`.
2021-08-16 15:36:37 +09:00
aycabta
ef6dd407c8
Import Gemfile and Rakefile of rdoc by tool/sync_default_gems.rb
2021-08-10 02:36:00 +09:00
Nobuyoshi Nakada
6e60fc2945
Group commands on GitHub Actions
2021-08-07 18:32:24 +09:00
Nobuyoshi Nakada
ae275f67ce
Show WorkingSetSize as RSS on Windows
2021-08-05 17:14:38 +09:00
Koichi Sasada
228b3e43be
check GC.enable'd status
...
Check GC.enable'd status before and after test execution.
Write this checker in gc_checker.rb, it was renamed from
gc_compact_checker.rb.
2021-08-05 17:11:50 +09:00
Nobuyoshi Nakada
3bb6410914
Use equivalent `__FILE__`
2021-08-05 14:15:30 +09:00
Nobuyoshi Nakada
5f2987d6c2
Fix relative paths from core_assertions.rb
2021-08-04 20:39:12 +09:00
Nobuyoshi Nakada
1f2b3f2529
Remove an extraneous escape
...
Since a3fb97465d
, this string is not inside the here-document.
2021-08-04 16:59:18 +09:00
Hiroshi SHIBATA
0dcae3bd4a
Support document sync for optparse
2021-07-28 20:13:39 +09:00
Nobuyoshi Nakada
0754cc4888
Added intern_ids.rb
2021-07-27 15:40:27 +09:00
Nobuyoshi Nakada
b8386f7f7f
Prepend DebugSystem to VCS class only
...
And revert 24e5f1c982
, pepending to
Kernel did not affect the top level methods before 3.0.
2021-07-26 15:44:40 +09:00
Nobuyoshi Nakada
24e5f1c982
Ignore 7z unless available
...
`DebugSystem#system` is prepended in vcs.rb and defaulted to
`exception: true`.
2021-07-26 14:17:30 +09:00
Nobuyoshi Nakada
c25cf1eaaa
Drop optional commit hash when updated
2021-07-21 20:44:13 +09:00
Andre Arko
44ba77d16d
[rubygems/rubygems] lock for development on macos
...
https://github.com/rubygems/rubygems/commit/60469e4cac
2021-07-16 15:40:07 +09:00
Nobuyoshi Nakada
4c039a2ea0
tool/sync_default_gems.rb: remove CRs
2021-07-13 19:36:52 +09:00
Nobuyoshi Nakada
f9c559a0a2
sync_default_gems.rb: expand links to PRs of the upstream
2021-07-13 19:05:50 +09:00
Nobuyoshi Nakada
690385014a
Move core_assertions.rb from test/unit
...
This file contains extended assertions for ruby core which do not
belong to test/unit.
2021-07-11 19:56:53 +09:00
Nobuyoshi Nakada
d6cf4c0c99
rbinstall.rb: just call File.basename directly
2021-07-08 17:58:25 +09:00