-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
Conflicts: truffle/src/main/java/org/jruby/truffle/nodes/core/TrufflePrimitiveNodes.java
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
- 9.2.0.0
- 9.1.17.0
- 9.1.16.0
- 9.1.15.0
- 9.1.14.0
- 9.1.13.0
- 9.1.12.0
- 9.1.11.0
- 9.1.10.0
- 9.1.9.0
- 9.1.8.0
- 9.1.7.0
- 9.1.6.0
- 9.1.5.0
- 9.1.4.0
- 9.1.3.0
- 9.1.2.0
- 9.1.1.0
- 9.1.0.0
- 9.0.5.0
- 9.0.4.0
- 9.0.3.0
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
slow:ARGF.read reads the contents of stdin | ||
slow:ARGF.read reads a number of bytes from stdin | ||
slow:ARGF.read reads the contents of one file and stdin | ||
fails:ARGF.read reads the contents of stdin | ||
fails:ARGF.read reads a number of bytes from stdin | ||
fails:ARGF.read reads the contents of one file and stdin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
fails:Dir.entries returns entries encoded with the filesystem encoding by default | ||
fails:Dir.entries returns entries encoded with the specified encoding | ||
fails:Dir.entries returns entries transcoded to the default internal encoding |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
fails:Encoding::Converter#primitive_convert accepts a nil source buffer | ||
fails:Encoding::Converter#primitive_convert calls #to_int to convert the destination byte size | ||
fails:Encoding::Converter#primitive_convert reuses read-again bytes after the first error |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:Encoding::Converter#primitive_errinfo returns the state, source encoding, target encoding, erroneous bytes, and the read-again bytes when #convert last raised InvalidByteSequenceError | ||
fails:Encoding::Converter#primitive_errinfo returns the state, source encoding, target encoding, erroneous bytes, and the read-again bytes when #finish last raised InvalidByteSequenceError |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
fails:IO#codepoints yields each codepoint | ||
fails:IO#codepoints raises an error if reading invalid sequence | ||
fails:IO#codepoints does not change $_ | ||
fails:IO#codepoints calls the given block |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,25 @@ | ||
fails:IO.copy_stream from an IO does not close the source IO | ||
fails:IO.copy_stream from an IO does not change the IO offset when an offset is specified | ||
fails:IO.copy_stream from an IO does change the IO offset when an offset is not specified | ||
fails:IO.copy_stream from an IO to a file name copies the entire IO contents to the file | ||
fails:IO.copy_stream from an IO to a file name returns the number of bytes copied | ||
fails:IO.copy_stream from an IO to a file name copies only length bytes when specified | ||
fails:IO.copy_stream from an IO to a file name calls #to_path to convert on object to a file name | ||
fails:IO.copy_stream from an IO to a file name copies only length bytes from the offset | ||
fails:IO.copy_stream from an IO to an IO copies the entire IO contents to the IO | ||
fails:IO.copy_stream from an IO to an IO returns the number of bytes copied | ||
fails:IO.copy_stream from an IO to an IO starts writing at the destination IO's current position | ||
fails:IO.copy_stream from an IO to an IO leaves the destination IO position at the last write | ||
fails:IO.copy_stream from an IO to an IO does not close the destination IO | ||
fails:IO.copy_stream from an IO to an IO copies only length bytes when specified | ||
fails:IO.copy_stream from an IO to an IO copies only length bytes from the offset | ||
fails:IO.copy_stream from a file name calls #to_path to convert on object to a file name | ||
fails:IO.copy_stream from a file name to a file name copies the entire IO contents to the file | ||
fails:IO.copy_stream from a file name to a file name returns the number of bytes copied | ||
fails:IO.copy_stream from a file name to a file name copies only length bytes when specified | ||
fails:IO.copy_stream from a file name to a file name calls #to_path to convert on object to a file name | ||
fails:IO.copy_stream from a file name to a file name copies only length bytes from the offset | ||
fails:IO.copy_stream from a file name to an IO copies the entire IO contents to the IO | ||
fails:IO.copy_stream from a file name to an IO returns the number of bytes copied | ||
fails:IO.copy_stream from a file name to an IO starts writing at the destination IO's current position | ||
fails:IO.copy_stream from a file name to an IO leaves the destination IO position at the last write | ||
fails:IO.copy_stream from a file name to an IO does not close the destination IO | ||
fails:IO.copy_stream from a file name to an IO copies only length bytes when specified | ||
fails:IO.copy_stream from a file name to an IO copies only length bytes from the offset | ||
fails:IO.copy_stream from a pipe IO does not close the source IO | ||
fails:IO.copy_stream from a pipe IO raises an error when an offset is specified | ||
fails:IO.copy_stream from a pipe IO to a file name copies the entire IO contents to the file | ||
fails:IO.copy_stream from a pipe IO to a file name returns the number of bytes copied | ||
fails:IO.copy_stream from a pipe IO to a file name copies only length bytes when specified | ||
fails:IO.copy_stream from a pipe IO to a file name calls #to_path to convert on object to a file name | ||
fails:IO.copy_stream from a pipe IO to an IO copies the entire IO contents to the IO | ||
fails:IO.copy_stream from a pipe IO to an IO returns the number of bytes copied | ||
fails:IO.copy_stream from a pipe IO to an IO starts writing at the destination IO's current position | ||
fails:IO.copy_stream from a pipe IO to an IO leaves the destination IO position at the last write | ||
fails:IO.copy_stream from a pipe IO to an IO does not close the destination IO | ||
fails:IO.copy_stream from a pipe IO to an IO copies only length bytes when specified | ||
fails:IO.copy_stream with non-IO Objects calls #readpartial on the source Object if defined | ||
fails:IO.copy_stream with non-IO Objects calls #write on the destination Object | ||
fails:IO.copy_stream with non-IO Objects does not call #pos on the source if no offset is given |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
fails:IO#each_codepoint yields each codepoint | ||
fails:IO#each_codepoint raises an error if reading invalid sequence | ||
fails:IO#each_codepoint does not change $_ | ||
fails:IO#each_codepoint calls the given block | ||
fails:IO#each_codepoint returns self |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
fails:IO#gets assigns the returned line to $_ | ||
fails:IO#gets reads limit bytes and extra bytes when limit is reached not at character boundary | ||
fails:IO#gets read limit bytes and extra bytes with maximum of 16 | ||
fails:IO#gets transcodes to internal encoding if the IO object's external encoding is ASCII-8BIT |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
fails:IO#read_nonblock raises EAGAIN when there is no data | ||
fails:IO#read_nonblock raises IO::WaitReadable when there is no data | ||
fails:IO#read_nonblock returns at most the number of bytes requested | ||
fails:IO#read_nonblock returns less data if that is all that is available | ||
fails:IO#read_nonblock allows for reading 0 bytes before any write | ||
fails:IO#read_nonblock allows for reading 0 bytes after a write | ||
fails:IO#read_nonblock raises EOFError when the end is reached |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:Module#class_eval uses the optional filename and lineno parameters for error messages | ||
fails:Module#class_eval adds methods respecting the lexical constant scope |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:Module#module_eval uses the optional filename and lineno parameters for error messages | ||
fails:Module#module_eval adds methods respecting the lexical constant scope |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:Module#name is set with a conditional assignment to a nested constant | ||
fails:Module#name preserves the encoding in which the class was defined |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,53 @@ | ||
# jruby+truffle_runner gem | ||
|
||
- Use `jt install-tool` or add alias to the gem's executable, | ||
e.g. `~/Workspace/labs/jruby/tool/truffle/jruby_truffle_runner/bin/jruby+truffle` | ||
- `git clone foo` project/gem you would like to run in JRuby+Truffle | ||
- `cd foo` | ||
- You need other Ruby (MRI or JRuby) to run the tool. | ||
- `jruby+truffle setup` to install required gems and prepare environment to run on JRuby+Truffle | ||
- `jruby+truffle setup a_file` to execute files in prepared environment of the gem | ||
- For more information see `jruby+truffle --help` | ||
# JRuby+Truffle Runner | ||
|
||
`jruby+truffle_runner` gem is a small command line utility designed to run and test Ruby gems and applications | ||
on JRuby+Truffle Ruby runtime. It uses other Ruby implementation to prepare environment and to execute files, tests | ||
on JRuby+Truffle. It is a temporary tool to make working with JRuby+Truffle easy until it fully supports | ||
`rubygems` and `bundler` | ||
|
||
## Installation | ||
|
||
There are 3 options. | ||
|
||
1. Install the gem from rubygems.org (Not yet published). | ||
Install the gem `gem install jruby+truffle_runner` | ||
2. Use `jt` tool from JRuby's repository. | ||
Run `jt install-tool` to install the gem from the cloned repository. | ||
3. Create alias for the gem's executable. E.g. add | ||
`alias jruby+truffle="~/path-to-jruby/tool/truffle/jruby_truffle_runner/bin/jruby+truffle" to your `.zshrc`. | ||
|
||
Then run `jruby+truffle --help` to see available subcommands. | ||
|
||
## Setup | ||
|
||
There is a `setup` subcommand to create environment for JRuby+Truffle. | ||
|
||
- Go to directory of a gem/application you would like to test. | ||
- Run `jruby+truffle setup` | ||
|
||
It copies default configuration (part of the gem) if one is available for a given gem (looks for a `gemspec` in current | ||
directory). It installs all required gems (based on `Gemfile`) to local bundle (default path: `.jruby+truffle_bundle`), | ||
and executes other steps defined in configuration file (`.jruby+truffle.yaml`) or as command line options | ||
(see `jruby+truffle setup --help` to learn what additional setup steps are available, or see one of the bundled | ||
configuration files found in `gem_configurations` directory). | ||
|
||
## Running | ||
|
||
After the environment is set the gem can be used to execute code, files, or gem's executables on JRuby+Truffle | ||
in prepared environment. Examples follows (options after `--` are interpreted by Ruby, options before `--` are options | ||
for this tool): | ||
|
||
- `jruby+truffle run -- file.rb` - executes file.rb | ||
- `jruby+truffle run -- -e '1+1'` - evaluates 1+1 expresion | ||
- `jruby+truffle run -- -I test test/a_test_file_test.rb` - runs test_file | ||
- `jruby+truffle run -S rspec -- spec/a_spec_file_spec.rb` - runs a spec file using executable of rspec gem | ||
- `jruby+truffle run --require mocks -- file.rb` - executes file.rb, but requires mocks first. | ||
(mocks can be made to load always by putting the option to configuration file instead) | ||
|
||
See `jruby+truffle run --help` to see all available options. | ||
|
||
## Clean up | ||
|
||
To remove all files added during setup phase run `jruby+truffle clean`, it'll only keep `.jruby+truffle.yaml` | ||
configuration file for future re-setup. | ||
|