Commit graph

136 commits

Author SHA1 Message Date
Ivan Kuchin
cb84607d3e fix ordering for versions with different length patch number (nothing, p72, p375) 2017-02-25 15:48:03 +01:00
Ivan Kuchin
e35d7a59ab remove quotes preventing from iterating over each version in sort versions test 2017-02-25 15:48:03 +01:00
SHIBATA Hiroshi
6df6ab470f Merge pull request #1051 from yuichiro-naito/add_test_of_freebsd_11
Add test of FreeBSD-11.
2017-02-03 16:54:32 +09:00
Yuichiro NAITO
ea90779a98 Add test of FreeBSD-11. 2017-01-27 10:49:56 +09:00
Yuichiro NAITO
e38155a6da Fix to build with gcc on FreeBSD 2017-01-18 11:02:37 +09:00
Yuichiro NAITO
f70d958f47 Do not include whole $PATH.
'/usr/local/bin' is used for bash on FreeBSD.
It is the default install path of FreeBSD packages.
2016-12-23 00:55:15 +09:00
Yuichiro NAITO
0a347a4537 stub uname for Non Linux environment 2016-12-21 10:52:25 +09:00
Yuichiro NAITO
49a9471758 respect original PATH 2016-12-21 10:51:15 +09:00
Yuichiro NAITO
4dc6d7d7a4 add stub uname value for use_freebsd_pkg function 2016-11-24 17:50:09 +09:00
Yuichiro NAITO
646bb47b81 add stub uname default value 2016-11-24 16:12:00 +09:00
Jason Karns
21494ba359 Remove suite-wide setup
Bats doesn't support both suite-wide setup (in helper) *and* file-wide
setup. Which means the existance of any file-level setup() function
overwrites any setup() function from test_helper. This can be confusing,
and (IMO) easier to simply avoid the overwriting and remove any
_implied_ suite-wide setup function from test_helper.

This turns out to not be so bad for the recently added setup function,
because the only test files that actually need aria2c removed from PATH
are those that actually invoke curl. These can be found because they are
the only test files that stub curl; half of which already had
file-specific setup() functions. So the only ones which need a
file-local setup() function added were: checksum.bats and mirror.bats

Along these lines, rbenv.bats and hooks.bats were removing aria2c from
PATH but don't actually need to. (curl isn't stubbed in these tests so
the existance of aria2c wouldn't affect the tests)

Lastly, fixed a tab/spaces whitespace mixup that was introduced by:
750c086d11
2016-08-13 15:53:04 -04:00
Yamashita, Yuu
6baed1ff66 Prevent loading user's aria2.conf (yyuu/pyenv#625) 2016-06-22 00:37:56 +00:00
Yamashita, Yuu
63e76cc261 Add a test for aria2c 2016-06-10 06:04:58 +00:00
Yamashita, Yuu
b3ba8c8666 Use curl stub during tests by default 2016-06-10 05:11:26 +00:00
Yamashita, Yuu
2d2eef7012 Remove aria2c from PATH to use curl stub during test 2016-06-10 05:09:55 +00:00
Yamashita, Yuu
e56f6cf82d aria2c doesn't support writing remote content to stdout (yyuu/pyenv#619, yyuu/pyenv#620) 2016-06-02 01:58:02 +00:00
Yamashita, Yuu
f998f10597 Allow specifying custom command line options for aria2c, curl and wget 2016-02-13 03:51:31 +00:00
Yamashita, Yuu
54286dcb7e Use aria2c the "ultra fast" download utility if available 2016-02-13 03:43:25 +00:00
Mislav Marohnić
80796ac1cf Merge pull request #864 2016-01-30 18:23:34 +11:00
Jason Karns
84b49768b9 Add refute test helper 2016-01-20 10:43:46 -05:00
Jason Karns
8f86b59a34 Leverage assertion helpers in tests 2016-01-20 09:30:57 -05:00
Jason Karns
af49837c12 Helpful error msg for unexpected checksum length 2016-01-19 08:24:28 -05:00
Jason Karns
14750a0b93 Extract has_checksum_support predicate function
- Remove unnecessary HAS_X_SUPPORT variables
- Merge conditional for unsetting mirror-url
- Memoize has_checksum_support function
2016-01-18 23:27:01 -05:00
Jason Karns
26af69a9d3 Unknown checksum algorithms (based on length) are errors 2016-01-18 23:27:01 -05:00
Mislav Marohnić
981a34425e Merge pull request #888 from jasonkarns/test-assertions
Leverage assert_success helper
2016-01-19 11:49:37 +11:00
Jason Karns
29a987c9fb Include --version in completions 2016-01-18 12:12:09 -05:00
Jason Karns
9ff6402e43 Leverage assert_success helper
And separate test body into arrange-act-assert blocks via newlines
2016-01-18 11:49:59 -05:00
Chris Seaton
ca0e1474fc Remove builds of JRuby that bundle Graal. 2016-01-01 12:01:39 +00:00
Tatsuhiko Miyagawa
55ffea164a Skip mirror if the URL is cache.ruby-lang.org (Fastly) and there's no custom mirror set 2015-12-16 16:29:24 +01:00
Mislav Marohnić
eef6a2ed8e Merge pull request #841 from jasonkarns/rbenv-completions
Provide completion of flags for install/uninstall
2015-12-08 10:17:31 +01:00
Chulki Lee
866dacc0b4 update urls to rbenv 2015-12-07 14:17:04 -08:00
Jason Karns
273dab13b3 include flags in nodenv-install completions 2015-12-04 16:44:36 -05:00
Jason Karns
4ff6d72900 safer teardown 2015-12-02 13:55:36 -05:00
Mislav Marohnić
bd222051df Allow space-separated LDFLAGS arguments
Fixes #829, closes #830
2015-11-16 11:07:18 +01:00
Reed Loden
a902621171 Update RUBY_BUILD_MIRROR_URL to use https:// 2015-07-20 12:45:12 -07:00
Erik Michaels-Ober
b7237690e6 Merge pull request #766 from jasonkarns/remove-sed-fallback
remove sed fallback for help/usage
2015-07-19 11:59:57 +02:00
Reed Loden
058917cd1c Fix typo in test/arguments.bats (s/enought/enough/) 2015-07-17 23:50:18 -07:00
Tester
5013fa8b40 use head instead of function w/ sed 2015-06-03 00:19:41 -04:00
Tester
1f4843da56 just mock invocation, not output 2015-06-02 15:42:18 -04:00
Tester
9b240932b9 remove assertions of mocked output 2015-06-02 15:41:12 -04:00
Tester
ddb12e2e8b find bin dir relative to bats test dir 2015-06-02 15:40:13 -04:00
Tester
85a01065d1 assert that rbenv-install/uninstall scripts have usage section preface 2015-06-02 14:53:04 -04:00
Tester
f2f77388ff make the rbenv-help stub strictly match args 2015-06-02 10:11:36 -04:00
Tester
a102309067 fix tests
stub rbenv-help for rbenv-install and rbenv-uninstall help messages
2015-06-02 09:59:13 -04:00
Ben Browning
4c0df6afdb Properly detect OpenJDK versions in bin/ruby-build
OpenJDK reports its version slightly different than Oracle Java, and
this was causing the logic in bin/ruby-build to not detect Java 7 or
higher when OpenJDK was used.
2015-04-29 10:39:40 -04:00
Simon Hürlimann (CyT)
f2a43c5554 Add 'cd -' to proposed steps to upgrade ruby-build
When a target is not found, rbenv-install proposes pulling changes from
upstream. This involves changing the directory to the ruby-build checkout.

This patch adds a '&& cd -' to change the working directory back to where
we've been. Should work on at least Bash and Zsh.
2015-04-14 00:03:00 +02:00
Mislav Marohnić
4c1f8842e6 Avoid double shebangs when fixing Rubinius gem binstubs
This is to fix the error when installing new gems that have executables
which match existing binstubs in the Rubinius bin directory:

    "bundle" from bundler conflicts with PREFIX/gems/bin/bundle

RubyGems is supposed to override the binstub if it detects that the
previous one was also generated by RubyGems for the gem of the same
name, but its detection mechanism gets thrown off by having a double
shebang as a result of our binstubs fixing process.

https://github.com/rubygems/rubygems/blob/v2.2.2/lib/rubygems/installer.rb#L149-L154

This avoids generating binstubs with a double shebang.
2015-01-29 01:36:04 -08:00
Mislav Marohnić
7f1d8df3fe Read Java version number even if it's not on the 1st line
Handles output like:

    Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
    java version "1.8.0_31"

Fixes #710
2015-01-21 16:51:29 -08:00
Mislav Marohnić
34246f9f2e Have rbenv-uninstall respect -h|--help 2014-11-26 20:46:44 -08:00
Mislav Marohnić
96d9cbe77c Move rbenv-install/uninstall tests to rbenv.bats 2014-11-26 20:46:44 -08:00