Alyssa Ross
452691528d
Revert "keg: fallback to missing_deps if deps not in tab"
...
This reverts commit da1caba17c624f03fa8e6fbe59683f57fb7ac17a.
2016-10-25 22:34:35 +01:00
Alyssa Ross
ae3f53a1ec
keg: fallback to missing_deps if deps not in tab
2016-10-25 22:34:35 +01:00
Alyssa Ross
8e3e8e31c2
missing: add tests for not missing and hide
2016-10-25 22:34:35 +01:00
Alyssa Ross
7792acda52
uninstall: allow dependent checks to be by-passed
...
Dependent can be bypassed with `--ignore-dependencies`.
This is now the default for `HOMEBREW_DEVELOPER`s.
2016-10-25 22:34:35 +01:00
Alyssa Ross
13d705c5e7
integration tests: preserve HOMEBREW_DEVELOPER
...
This means that run_as_not_developer can be used in integration tests
2016-10-25 22:34:34 +01:00
Alyssa Ross
ecb1075390
uninstall: check for dependents even with --force
2016-10-25 22:34:34 +01:00
Alyssa Ross
888c44b238
uninstall: fix dependent order bug
2016-10-25 22:34:34 +01:00
Alyssa Ross
08c898f280
integration tests: testball install overridable
2016-10-25 22:34:34 +01:00
Alyssa Ross
08f3aecf6b
uninstall: consistent spelling of "dependent"
...
@ilovezfs pointed out that Homebrew generally uses "dependent", rather than
"dependant".
2016-10-25 22:34:34 +01:00
Alyssa Ross
6f0aabe707
uninstall: refuse when dependants still installed
...
Closes #934 .
2016-10-25 22:34:34 +01:00
Josh Hagins
9c519bbdbc
keg_relocate: refactor relocate_text_files
...
Replace relocate_text_files with three methods that clarify intent:
replace_locations_with_placeholders, replace_placeholders_with_locations
and replace_text_in_files, the first two calling the third.
2016-10-24 16:21:08 -04:00
Josh Hagins
c46155aba4
keg_relocate: cache files rewritten during brew bottle
...
`brew bottle` replaces instances of the Homebrew prefix, cellar, and
repository with placeholders in all text files. Cache these files in
INSTALL_RECEIPT.json so that we don't have to check every single text
file for placeholders on install.
2016-10-24 16:21:08 -04:00
Markus Reiter
e6bce5ec27
Merge pull request #1342 from reitermarkus/fixtures
...
Move cask's fixtures to `test/fixtures`.
2016-10-24 22:09:45 +02:00
Markus Reiter
b28b21fd7f
Don’t use bare percent literals.
2016-10-24 17:27:20 +02:00
Markus Reiter
31ec04704a
Move cask fixtures to test/fixtures/cask
.
2016-10-24 15:52:41 +02:00
Uladzislau Shablinski
4ec43d02f5
test_formula: fix tests
...
New name and old name must have different names
2016-10-20 03:09:28 +03:00
Josh Hagins
fba00f2bbf
testing_env: extract with_environment to helper module
2016-10-19 12:35:46 -04:00
ilovezfs
a53eca8cde
dependency_collector: need xz dep on <= macOS 10.8
...
Mountain Lion: http://opensource.apple.com/source/libarchive/libarchive-25.1/config.h
`/* #undef HAVE_LIBLZMA */`
Mavericks: http://opensource.apple.com/source/libarchive/libarchive-29/config.h
`#define HAVE_LIBLZMA 1`
2016-10-16 05:48:37 -07:00
Markus Reiter
198bf4d3bd
Convert puts_columns
to puts Formatter.columns
.
2016-10-15 17:13:38 +02:00
Markus Reiter
a89dc33834
Change test for puts_columns
with empty input.
2016-10-15 17:13:38 +02:00
Mike McQuaid
527a62b64b
Merge pull request #1279 from MikeMcQuaid/use-tar-xz
...
Use BSD tar's libarchive LZMA support if available
2016-10-15 13:37:35 +01:00
Mike McQuaid
b1a16deb19
Use BSD tar's libarchive LZMA support if available
...
Avoid using an unnecessary `xz` dependency when it's not needed.
2016-10-15 13:10:37 +01:00
Mike McQuaid
7ab39e184b
Improve integration command test case output.
2016-10-15 12:32:34 +01:00
Mike McQuaid
f435adc2d0
Rename tap-readme command to tap-new.
...
Write the README but also a `.travis.yml` file (and in future perhaps a
`Jenkinsfile`).
2016-10-15 12:32:34 +01:00
Alyssa Ross
cd615acd5f
tab: don't interpret unknown deps as no deps
2016-10-11 09:00:39 +01:00
Markus Reiter
b306f14b97
Rename FormulaMethodDeprecatedError to MethodDeprecatedError.
2016-10-08 13:26:10 +02:00
Markus Reiter
fca66e17b3
Make parsing locales more robust.
2016-10-07 20:03:50 +02:00
David Yun
2e9ec473e9
Fix HOMEBREW_PREFIX/Caskroom file leak
2016-10-07 17:09:24 +08:00
David Yun
81082303dc
Use odeprecated rather than remove it entirely
...
* Fix IntegrationCommandTestCask
2016-10-07 10:27:21 +08:00
Markus Reiter
ddf5583208
Refactor Cask’s extensions.
2016-10-04 15:43:58 +02:00
Markus Reiter
cafe149780
Merge pull request #1145 from reitermarkus/module-function
...
Use `module_function` for `Homebrew` module.
2016-10-04 10:31:49 +02:00
Bruce Steedman
bbea4ac871
fix bad method name in test
2016-10-03 09:53:20 +01:00
Bruce Steedman
62e14ea673
invalid build options - fixed conflicts; rename
2016-10-03 09:42:53 +01:00
Markus Reiter
929c594f41
Add test for MacOS.languages
.
2016-10-03 02:34:52 +02:00
Mike McQuaid
8a57fee68c
*/diagnostic: tweak messaging.
...
Update some messaging based on recent user confusion and the
`/usr/local/Homebrew` and Ruby 2 migrations.
2016-10-02 17:30:08 +01:00
Markus Reiter
0ab750bf24
Use module_function
for commands.
2016-10-02 00:24:47 +02:00
Markus Reiter
6d8ee395fa
Refactor Tty.
2016-10-01 20:00:49 +02:00
Mike McQuaid
98e7fb6b60
Merge pull request #1052 from sjackman/store-formula
...
Store the formula used to build the keg in the keg
2016-10-01 12:24:19 +01:00
Mike McQuaid
cbae10a732
test/test_custom_command: fix rubocop style.
2016-09-27 13:02:07 +01:00
Mike McQuaid
0c472ea6d9
test/test_create: fix rubocop style.
2016-09-27 13:02:07 +01:00
Mike McQuaid
776785459b
test/test_audit: fix rubocop style.
2016-09-27 13:02:07 +01:00
Mike McQuaid
47fe231552
test/helper/integration_command_test_case: fix rubocop style.
2016-09-27 13:02:07 +01:00
Markus Reiter
d508b124a4
Rename/merge test files.
2016-09-27 00:15:56 +02:00
Markus Reiter
cd677cf3ae
Speed up parallel_tests
by splitting integration tests.
2016-09-26 19:55:50 +02:00
Zhiming Wang
b6f983120a
fixtures: add test.m4a
...
test.m4a contains an AAC LC stream inside an M4A (MPEG-4 Part 14)
container. It is generated by FFmpeg 3.1.3 from test.wav:
ffmpeg -y -i test.wav -c:a aac -profile:a aac_low -b:a 32k test.m4a
test.m4a facilitates testing utilities or libraries that work with the
AAC codec or the M4A container, e.g., alac.
2016-09-26 09:07:24 -04:00
Markus Reiter
50b635e276
Add test for search_tap
.
2016-09-25 16:27:43 +02:00
Markus Reiter
b987230ddf
RuboCop: Style/CaseEquality
2016-09-25 00:22:53 +02:00
Mike McQuaid
e767fd3df9
Merge branch 'master' into mkdir_with_intermediates
2016-09-24 20:48:03 +01:00
Mike McQuaid
232078df57
Merge pull request #1123 from reitermarkus/rubocop
...
RuboCop: Style/AccessorMethodName
2016-09-24 20:40:00 +01:00
Mike McQuaid
67a7417a68
Merge pull request #1122 from MikeMcQuaid/test-bot-tap
...
test-bot: move to tap.
2016-09-24 19:51:31 +01:00