aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_dependency_expansion.rb
AgeCommit message (Collapse)Author
2016-11-16Reorder and rename test files.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-08-06tests: fix code style issues (#587)Andrea Kao
2016-02-07more test for dependency_expansionXu Cheng
Closes Homebrew/homebrew#48904. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-18Revert "Revert "dependency: don't recurse infinitely.""Mike McQuaid
This reverts commit fa43883dd1cd82f234b79c4a322339f03b9c098d. Closes Homebrew/homebrew#48187.
2015-12-17tests: rely on fewer implementation detailsMartin Afanasjew
These tests were using too much semi-global state (instance variables) and relied unnecessarily on the exact number of calls to `optional?` and `recommended?` in the `Depedable` module.
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-11-21Fix dependency equalityJack Nagel
2014-06-18Use a custom test class so we can avoid monkeypatchingJack Nagel
2014-02-27Eliminate mutation of Dependency objectsJack Nagel
2014-02-27Apply cyclic dependency hack unconditionallyJack Nagel
2013-12-09Pass deps collection to be expanded as a parameterJack Nagel
2013-11-13Prevent deps of build-time deps from leaking into the build environmentJack Nagel
When decided what dependencies should be part of the build environment (and have appropriate entries added to variables like PKG_CONFIG_PATH), we select the entire dependency tree except for (1) inactive optional and recommended deps (2) indirect build-time deps (i.e., build-time deps of other deps) There is a third category that sould be excluded: dependencies of direct build-time deps. These are irrelevant to the build, and including them can cause unexpected linkages.
2013-07-22Check deps of satisfied depsJack Nagel
2013-06-25Uniqify tags when merging dependenciesJack Nagel
2013-06-24Actually make the assertion we care aboutJack Nagel
2013-06-24Copy env_proc when merging depsJack Nagel
2013-06-08Merge repeated deps with differing optionsJack Nagel
When expanding dependencies, repeated deps are treated as equal and all but the first are discarded when #uniq is called on the resulting array. However, they may have different sets of options attached, so we cannot assume they are the same. After the initial expansion, we group them by name and then create a new Dependency object for each name, merging the options from each group. Fixes Homebrew/homebrew#20335.
2013-06-07test_dependency_expansion: dep names should always be stringsJack Nagel
2013-05-10Refactor Dependency.expandJack Nagel