Ivan Pozdeev
32a86a84c0
Show output for assert_line() and refure_line()
Required for diagnostics
pirms 4 gadiem
Ville Skyttä
a9e11ba164
Use `command` and `type` instead of `which` ( #2144 )
`which` has been deprecated in Debian's debianutils 5.0+
They suggest using `type` and `command` as replacements:
3a8dd10b45 ,
610a65c6ef
pirms 4 gadiem
Ivan Pozdeev
c6c4e41eb9
Bats: show output on failed assertions
pirms 4 gadiem
Ivan Pozdeev
876be1bb04
Bats: path_without: support multiple args
pirms 4 gadiem
Yamashita, Yuu
b3ba0fd7e3
Refactor test code of python-build. Use curl during tests by default
pirms 8 gadiem
Yamashita, Yuu
fc90785f75
Allow overriding HTTP client type based on environment variable `PYTHON_BUILD_HTTP_CLIENT` ( #1126 )
pirms 8 gadiem
Yamashita, Yuu
b8885e4fe2
Keep using original PATH ordering in `test_helper`
pirms 10 gadiem
Yamashita, Yuu
a456528be8
Keep original ordering of PATH configuration
pirms 10 gadiem
Yamashita, Yuu
2485257424
Add a test to confirm the prefix doesn't work fine with `/bin/ruby`
pirms 10 gadiem
Yamashita, Yuu
5c83c4abb7
Add test for `/bin/python` case
pirms 10 gadiem
Jason Karns
5ccba5d7cc
Extract common create_hook helper
pirms 10 gadiem
Daniel Hahler
6296bf3f8b
tests: fix path_without to handle /bin properly
I was seeing /bin being left. This patch fixes it by anchoring the search
pattern with ':' on both sides.
pirms 10 gadiem
Mislav Marohnić
8a0555f8ef
Init RBENV_TEST_DIR properly and only once during test setup
pirms 10 gadiem
Mislav Marohnić
3a265c1af9
Unset XDG_CONFIG_HOME and related variables during tests
If set by the user's environment, `git config --global` writes will go
to that destination instead of temporary $HOME. We definitely don't want
that.
Fixes #742
pirms 10 gadiem
Yamashita Yuu
f0e852553a
Import rbenv changes at 7e0e85bdda
pirms 11 gadiem
Mislav Marohnić
3f74da0e73
Fail hard if RBENV_NATIVE_EXT is set but extensions failed to load
pirms 12 gadiem
Mislav Marohnić
284588f9b4
Fix hooks tests on OS X by expanding BATS_TMPDIR
With `realpath` extension, hooks tests on OS X will output
`/private/tmp` instead of `/tmp` because the latter is an actual symlink
to the former.
Avoid this mistmach in output assertions by expanding BATS_TMPDIR if
`realpath` extension is compiled.
pirms 12 gadiem
Daniel Hahler
024bee1a6f
Use `mktemp -d` for RBENV_TEST_DIR
This prevents the tests from removing an existing directory.
Fixes #561 (https://github.com/sstephenson/rbenv/issues/561 )
pirms 12 gadiem
Mislav Marohnić
1e1c9cb0dc
Fix emulating the scenario where system Ruby is missing on OpenBSD
On other systems, we expected to find system Ruby in `/usr/bin`, but in
OpenBSD 5.4 it will be found in `/usr/local/bin`.
This replaces the limited USRBIN_ALT hack with a more generic
`path_without` function that will ensure that the given executable is
not present in the resulting PATH even if it's found in multiple
system paths.
pirms 12 gadiem
Mislav Marohnić
3dc0005032
Fix test suite running on OpenBSD
The error was "bash: no such file or directory" and it was due to bash
being located in `/usr/local/bin` on OpenBSD 5.4 instead of `/bin` like
on other systems.
Fixed by keeping `/usr/local/bin` in PATH during the test run.
pirms 12 gadiem
Yamashita Yuu
5dea3c9e63
Import changes from recent rbenv
pirms 12 gadiem
Yamashita Yuu
0965577b93
Import tests from rbenv with `sed -e s/rbenv/pyenv/g`
pirms 12 gadiem
Mislav Marohnić
8b043038b8
ensure cleaner PATH in test environment
pirms 13 gadiem
Mislav Marohnić
7fc5f46bbb
undo `assert_output_lines` in tests
It was a dumb idea and it wasn't even implemented perfectly.
pirms 13 gadiem
Mislav Marohnić
b8504ed2a9
saner assertions for multiline output
pirms 13 gadiem
Mislav Marohnić
4b6ab0389b
add tests for exec
pirms 13 gadiem
Mislav Marohnić
a81ace2ccb
add hook lookup tests
pirms 13 gadiem
Mislav Marohnić
bb6bccb782
tests galore
pirms 13 gadiem