rbenv-ruby-build/test
Jason Karns dc15799456
Only FreeBSD needs extra PATH for bash
For the tests to run on FreeBSD, the bash executable needs to be
available in PATH.

The test_helper PATH was modified by
49a9471758 and f70d958f47
in order to be sure that bash is in PATH on FreeBSD.
(The default location for packages on FreeBSD is /usr/local/bin, and
since bash isn't provided by FreeBSD itself, that means /usr/local/bin
is the most common, if not only, location to find bash on FreeBSD.)

However, adding /usr/local/bin to PATH means that homebrew-managed
packages on macOS are now in PATH for the test suite. This is especially
important due to packages like readline. Since ruby-build prefers
homebrew readline when available, this makes the tests fail on macOS
(because the tests are written assuming no readline configuration.)

While the tests could stub brew in all cases, to ensure the readline
package is ignored by the tests, it seems more prudent to revert the
PATH to be as minimal as possible, and to only include /usr/local/bin by
precisely the OS that depends on it.
2018-11-12 14:26:56 -05:00
..
fixtures Unknown checksum algorithms (based on length) are errors 2016-01-18 23:27:01 -05:00
stubs Fix stubbing programs that have dashes in them 2014-01-05 18:58:57 +01:00
tmp Ensure test/tmp directory exists 2012-11-19 19:25:52 -06:00
arguments.bats Fix typo in test/arguments.bats (s/enought/enough/) 2015-07-17 23:50:18 -07:00
build.bats Merge pull request #1198 from yyuu/http-client-based-on-envvar 2018-08-22 11:27:06 +00:00
cache.bats Allow overriding HTTP client type based on environment variable RUBY_BUILD_HTTP_CLIENT (pyenv/pyenv#1126) 2018-04-26 02:08:59 +00:00
checksum.bats Allow overriding HTTP client type based on environment variable RUBY_BUILD_HTTP_CLIENT (pyenv/pyenv#1126) 2018-04-26 02:08:59 +00:00
compiler.bats Fix to build with gcc on FreeBSD 2017-01-18 11:02:37 +09:00
definitions.bats Add tests for TruffleRuby 2018-06-15 20:17:13 +02:00
fetch.bats Allow aria2c to be found in PATH in tests 2018-08-22 12:50:02 +02:00
hooks.bats Remove suite-wide setup 2016-08-13 15:53:04 -04:00
installer.bats Fix test to compensate for different ls output on Fedora/Centos 2014-09-09 00:03:18 -07:00
mirror.bats Allow overriding HTTP client type based on environment variable RUBY_BUILD_HTTP_CLIENT (pyenv/pyenv#1126) 2018-04-26 02:08:59 +00:00
rbenv.bats Remove suite-wide setup 2016-08-13 15:53:04 -04:00
test_helper.bash Only FreeBSD needs extra PATH for bash 2018-11-12 14:26:56 -05:00
version.bats update urls to rbenv 2015-12-07 14:17:04 -08:00