Ivan Pozdeev
32a86a84c0
Show output for assert_line() and refure_line()
Required for diagnostics
4 jaren geleden
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
4 jaren geleden
Ivan Pozdeev
c6c4e41eb9
Bats: show output on failed assertions
4 jaren geleden
Ivan Pozdeev
876be1bb04
Bats: path_without: support multiple args
4 jaren geleden
Yamashita, Yuu
b3ba0fd7e3
Refactor test code of python-build. Use curl during tests by default
8 jaren geleden
Yamashita, Yuu
fc90785f75
Allow overriding HTTP client type based on environment variable `PYTHON_BUILD_HTTP_CLIENT` ( #1126 )
8 jaren geleden
Yamashita, Yuu
b8885e4fe2
Keep using original PATH ordering in `test_helper`
10 jaren geleden
Yamashita, Yuu
a456528be8
Keep original ordering of PATH configuration
10 jaren geleden
Yamashita, Yuu
2485257424
Add a test to confirm the prefix doesn't work fine with `/bin/ruby`
10 jaren geleden
Yamashita, Yuu
5c83c4abb7
Add test for `/bin/python` case
10 jaren geleden
Jason Karns
5ccba5d7cc
Extract common create_hook helper
10 jaren geleden
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.
10 jaren geleden
Mislav Marohnić
8a0555f8ef
Init RBENV_TEST_DIR properly and only once during test setup
10 jaren geleden
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
10 jaren geleden
Yamashita Yuu
f0e852553a
Import rbenv changes at 7e0e85bdda
11 jaren geleden
Mislav Marohnić
3f74da0e73
Fail hard if RBENV_NATIVE_EXT is set but extensions failed to load
12 jaren geleden
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.
12 jaren geleden
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 )
12 jaren geleden
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.
12 jaren geleden
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.
12 jaren geleden
Yamashita Yuu
5dea3c9e63
Import changes from recent rbenv
12 jaren geleden
Yamashita Yuu
0965577b93
Import tests from rbenv with `sed -e s/rbenv/pyenv/g`
12 jaren geleden
Mislav Marohnić
8b043038b8
ensure cleaner PATH in test environment
13 jaren geleden
Mislav Marohnić
7fc5f46bbb
undo `assert_output_lines` in tests
It was a dumb idea and it wasn't even implemented perfectly.
13 jaren geleden
Mislav Marohnić
b8504ed2a9
saner assertions for multiline output
13 jaren geleden
Mislav Marohnić
4b6ab0389b
add tests for exec
13 jaren geleden
Mislav Marohnić
a81ace2ccb
add hook lookup tests
13 jaren geleden
Mislav Marohnić
bb6bccb782
tests galore
13 jaren geleden