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