aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2016-01-21update-report: skip non git tapXu Cheng
2016-01-21update-bash: fix incorrect argument parsingXu Cheng
2016-01-21tests: speed up integration test runsMartin Afanasjew
While running a command from the integration tests, invoke `.result` to trigger a save of the result set, but don't call `.format!` to avoid (re)generating the HTML output with every run. The final output will still be written once the main unit test run completes. This significantly speeds up the integration tests, that take about 1/3 less time to complete when not generating the intermediate output. Closes Homebrew/homebrew#48280. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-21tests: use unique identifiers w/ integration testsMartin Afanasjew
Commands executed during integration testing are executed in a separate process and thus generate a new result set for each command. To avoid that these results override each other, they need to have a unique `command_name`. Derive this name from the test class/name and the index of the command inside that test, resulting in identifiers like `IntegrationCommandTests#test_prefix.1 brew --prefix`. Also replaces `TEST_TMPDIR` in the arguments with `"@TMPDIR@"` to get a cleaner command identifier that is independent of the temporary directory that changes with every run.
2016-01-21tests: add --only=<test>[/<method>] flagMartin Afanasjew
Simplify running a single test (or even a single method from a single test), which is useful when developing or debugging a test. Instead of `brew test TEST=test_diagnostic.rb TESTOPTS=--name=test_check_DYLD_vars` it is now possible to run `brew tests --only=diagnostic/check_DYLD_vars` to get the same effect. Similarly, `brew tests --only=diagnostic` maps to `brew test TEST=test_diagnostic.rb`. Closes Homebrew/homebrew#48279. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-21tests: allow passing --seed <number>Martin Afanasjew
This parameter is printed by every `brew tests` run and feeding it back into the test suite allows to get an identical run. Make it easier to do that by accepting the argument as it is printed during `brew tests`. This requires a slight adjustment to named-argument passing as the number that follows `--seed` is also seen as a named argument, but we usually only want to pass `TEST=<something>` and `TESTOPTS=<something>`.
2016-01-21tests: remove useless filter for coverage testsMartin Afanasjew
The filter for `vendor/bundle/` is useless because this directory is located in `Homebrew/test/` and that one is already filtered. Moreover, SimpleCov already loads the `bundler_filter` profile (that installs basically the same filter) in its default configuration.
2016-01-20command: support .sh commandsBaptiste Fontaine
Closes Homebrew/homebrew#48192. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-20commands: support .sh commandsBaptiste Fontaine
2016-01-20update test for Homebrew/homebrew-emacs#158Alex Dunn
Closes Homebrew/homebrew#48131. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2016-01-20test: add metafiles to testballAlex Dunn
2016-01-20build#install: install metafiles in buildpathAlex Dunn
This came up in https://github.com/Homebrew/homebrew-emacs/pull/158#issuecomment-172031003; `install_metafiles` is passed the current directory, which can be changed during installation by `Dir.chdir`. There may be cases where the metafiles are in a subdirectory, but my guess is those are rare and this is brittle and undocumented behavior anyway.
2016-01-20tap-readme: fix for Ruby 1.8Baptiste Fontaine
Closes Homebrew/homebrew#48281. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-20tests: ExternalPatch test addedBaptiste Fontaine
2016-01-20tests: exceptions tests addedBaptiste Fontaine
2016-01-20tests: tap-readme integration test addedBaptiste Fontaine
2016-01-20tests: cmd/edit & cmd/info tests addedBaptiste Fontaine
2016-01-20sh: flush stdout before executing the shellBaptiste Fontaine
Closes Homebrew/homebrew#48268. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-20diagnostic: fix autoconf checkMartin Afanasjew
Xcode can only provide autotools if it is installed, thus check that first. Skipping this check will try to compare a `nil` Xcode version to 4.3, the first version of Xcode to not provide autotools. Fixes Homebrew/homebrew#48208. Closes Homebrew/homebrew#48278. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-19os/mac: use start_with? when possibleBaptiste Fontaine
Closes Homebrew/homebrew#48071. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-19keg: mkpath on lua sharesDominyk Tiller
Closes Homebrew/homebrew#48134.
2016-01-19Revert "formula_installed: tweak source build behaviour."Mike McQuaid
This reverts commit 5dd200c6b40f4fa9cc3a70cbc9ca2885e4626943. Closes Homebrew/homebrew#47889.
2016-01-19tests: rm the coverage cache before each runBaptiste Fontaine
Closes Homebrew/homebrew#48209. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-18Update manpage to remove cleanup --forceMisty De Meo
2016-01-18Permit cleanup to remove outdated keg-only formulaeMisty De Meo
This check is not really relevant anymore; old-style, pre-opt installs date from 2012 at the very latest, so it is very unlikely that any packages remain which still link against these. Refs Homebrew/homebrew#48139.
2016-01-18Revert "Revert "dependency: don't recurse infinitely.""Mike McQuaid
This reverts commit fa43883dd1cd82f234b79c4a322339f03b9c098d. Closes Homebrew/homebrew#48187.
2016-01-18formula: output recommended/optional deps in JSON.John Zeringue
Fixes Homebrew/homebrew#47914 by distinguishing between required, optional, and recommended dependencies when using `brew info --json=v1`. This is done by adding the `optional_dependencies` and `recommended_dependencies` fields to the JSON output. A good example of this fix is `brew info --json=v1 dtrx`. Closes Homebrew/homebrew#48196. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-18diagnostic: update check for findutils.Josh Bode
Check for non-prefixed findutils in path via gnubin symlinks or directly Closes Homebrew/homebrew#46987. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-17diagnostic: note El Capitan upgrade permissions.Grant Hutchins
On all of the machines I have upgraded to OS X El Capitan, my /usr/local directory has changed ownership. Since this message shows up as an error during `brew update`, I figured it would be good to beef up the explanation. Closes Homebrew/homebrew#44670. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-17Search also in Caskroom/versions TapTommy Sparber
Extending the current search functionallity to search in https://github.com/caskroom/homebrew-versions Closes Homebrew/homebrew#47954. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-17test_edit: HOMEBREW_EDITOR takes precedence over EDITORMisty De Meo
2016-01-17Revert "dependency: don't recurse infinitely."Mike McQuaid
This reverts commit 16ffbe1a2b2d99da42481dc50f70dbfee4472da6.
2016-01-17dependency: don't recurse infinitely.Mike McQuaid
If we have a dependency cycle ensure that infinite recursion does not result by storing state in a stack which we push/pop from for each level of recursion and verify that we haven’t been through this dependency already. Closes Homebrew/homebrew#47933. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-17formula_installer: build formula options better.Mike McQuaid
Previously we got all the options based on the build, any inherited options, any passed options and the tab. We want to make sure that these then exclude any options that don't exist as, otherwise, passing an option that doesn't exist (or has been deleted) is enough to stop a bottle being poured. This was particularly nasty on upgrades where we deleted options and one left in the tab would stop the bottle being poured. Closes Homebrew/homebrew#47891. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-17formula_installed: tweak source build behaviour.Mike McQuaid
Currently `brew install —build-from-source wget` builds all the dependencies also from source. I can see people wanting to do this when `HOMEBREW_BUILD_FROM_SOURCE` is set by passing it on the command-line is mostly just annoying; it means you have to use `—build-bottle` and deal with the CFLAGS and `post_install` changes if you want to build from source. Tweak `formula_installer` so this behaviour is more intuitive. Closes Homebrew/homebrew#47889. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-17test_bash: tests to assert Bash syntax is valid.Mike McQuaid
Closes Homebrew/homebrew#47380.
2016-01-17Add new update-bash command for testing.Mike McQuaid
This will become the default updater at a later point in the future.
2016-01-17bin/brew: set more HOMEBREW_* env from Bash.Mike McQuaid
2016-01-17Rubocop: upgrade to version 0.36.0Bob W. Hogg
Stop using Style/TrailingComma as it is no longer recognized and start using Style/TrailingCommaInArguments and Style/TrailingCommaInLiteral instead. Closes Homebrew/homebrew#48144. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-17test-bot: change directory for git rev-parse --verifyXu Cheng
2016-01-17audit_revision: only check 10 recent related commitsXu Cheng
It helps to reduce overhead. Closes Homebrew/homebrew#48108. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-17FormulaVersion: support max depthXu Cheng
2016-01-17audit: imporve revision check logicXu Cheng
* Check revision decrease against both stable and devel spec. * Check revision reset only for stable spec if stable spec is available.
2016-01-17test-bot: prevent formula building from source multiple timesXu Cheng
After formula updates its bottle block, remove itself from changed formulae list. Therefore, if it's requested next time as dependency, it will be installed from bottle just created. Closes Homebrew/homebrew#48121. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-17test-bot: all formula name are canonical nowXu Cheng
2016-01-17test-bot: always use canonical formula nameXu Cheng
Otherwise, we may get incorrect result when preforming set operations on list of formula names.
2016-01-17Tap: allow invoking formula_file_to_name by Homebrew internallyXu Cheng
2016-01-17test-bot: simplify Test#gitXu Cheng
2016-01-17test-bot: remove dead codeXu Cheng
2016-01-17test-bot: simplify Test#initializeXu Cheng