aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2017-01-22tests: remove more per-test file system cleanupAlyssa Ross
These locations are now all automatically cleaned up after every test.
2017-01-22tests: remove explicit tmpdir deletionsAlyssa Ross
These are no longer necessary.
2017-01-22tests: clean up file system for all testsAlyssa Ross
(No longer just integration tests.)
2017-01-21tests: reset ARGV in teardownAlyssa Ross
2017-01-21tests: clear tab cache in global teardownAlyssa Ross
2017-01-21tests: enforce `super` in lifecycle hooksAlyssa Ross
This will allow us to have global setup and teardown for tests. For example, we can automatically clear caches after each test, to avoid annoying intermittent failures like #1879 and #1886.
2017-01-19tests: revert modification to ARGV at end of testAlyssa Ross
Similar to 6fc1747e0550545b4fe80f5a1854d16dd2b08afe. I hadn't seen any test failures caused by this, but I noticed it in the process of trackign that down and it's an accident waiting to happen.
2017-01-19tests: add a missing Tab cache clearAlyssa Ross
This was responsible for the sporadic failures I encountered in #1878.
2017-01-18integration_command_test_case: improve fail outputMike McQuaid
Instead of `puts`ing when the failure occurs save it until the error message and print a prose description of what the failure was and the output from the command. This makes the output from failing tests significantly easier to read.
2017-01-17Merge pull request #1863 from alyssais/uses_ignore_untappedMike McQuaid
uses: properly handle untapped formulae in recursive dependency expansion (again!)
2017-01-17Merge pull request #1849 from alyssais/requirement_testsMike McQuaid
tests: test Formula#recursive_requirements
2017-01-16Revert "Revert "uses: properly handle untapped fo…Alyssa Ross
…rmulae in recursive dependency expansion"" This reverts commit dc9819b86c60b5c6fd10373ff318d8ef60f97d52.
2017-01-16tests: fix style of recursive_requirements testsAlyssa Ross
2017-01-16Merge pull request #1763 from ↵Mike McQuaid
minamijoyo/add-feature-github-release-download-strategy New feature: Allow download from private GitHub repository
2017-01-15tests: test Formula#recursive_requirementsAlyssa Ross
2017-01-08Fix rubocop style warning of download_strategyMasayuki Morita
2017-01-08Validate a token when initializing GitHubPrivateRepositoryDownloadStrategyMasayuki Morita
2017-01-08Generalize GitHubReleaseDownloadStrategy in order to support archive URLMasayuki Morita
2017-01-07Revert "uses: properly handle untapped formulae in recursive dependency ↵Mike McQuaid
expansion"
2017-01-05dependency: TapDependency#tap returns a TapAlyssa Ross
Previously, this returned a String, but a Tap instance seems much more sensible. I couldn't find anywhere this method was actually used, so the change shouldn't break anything.
2017-01-04tab: set homebrew_version in Tab.emptyAlyssa Ross
2017-01-04tests: remove temp tab homebrew_version overrideAlyssa Ross
This had to be added in #1750 to work around special-casing for tabs generated with Homebrew versions < 1.1.6. Now that 1.1.6 is the current version, we can remove this hack.
2017-01-03Deprecate Homebrew/versions, Homebrew/devel-only.Mike McQuaid
Don't use Homebrew/versions in a test and remove them both from the OFFICIAL_TAPS list (i.e. `brew search`).
2017-01-03Use util/github insted of open-uri in GitHubReleaseDownloadStrategyMasayuki Morita
2017-01-02New feature: GitHubReleaseDownloadStrategyMasayuki Morita
GitHubReleaseDownloadStrategy downloads tarballs from GitHub Release assets. To use it, add ":using => GitHubReleaseDownloadStrategy" to the URL section of your formula. This download strategy uses GitHub access tokens (in the environment variables GITHUB_TOKEN) to sign the request. This strategy is suitable for corporate use just like S3DownloadStrategy, because it lets you use a private GttHub repository for internal distribution. It works with public one, but in that case simply use CurlDownloadStrategy.
2017-01-01tests: optlink fake kegs in uninstall testAlyssa Ross
2017-01-01keg: check installed dependencies iff optlinkedAlyssa Ross
2017-01-01keg: keg_only kegs can have installed dependentsAlyssa Ross
2017-01-01keg: update installed dependency resolutionAlyssa Ross
Closes #1525. (See there for a motivation for this change.)
2016-12-31keg: test dep fallback with unknown formulaeAlyssa Ross
2016-12-31keg: handle dependencies of moved/renamed formulaeAlyssa Ross
In #1497 I switched from Keg#to_formula for comparing kegs to formulae to comparing the name and tap in the keg's tab to the name and tap of the formula. However, this fails to match if the name and tap of the formula have changed since the keg was installed, so it's clearly better to use Keg#to_formula where possible, and fall back to the information in the tab when #to_formula can't be used.
2016-12-31Merge pull request #1750 from alyssais/fallback_dependenciesMike McQuaid
keg: fall back for dependencies of buggy tabs
2016-12-31Merge pull request #1756 from alyssais/nil_dependentsMike McQuaid
keg: don't return nil dependencies
2016-12-31Merge pull request #1752 from alyssais/uninstalling_dependenciesMike McQuaid
keg: fix fallback dependencies with multiple kegs
2016-12-31keg: don't return nil dependenciesAlyssa Ross
This is a proper fix to the problem addressed by #1510. The problem arises when f_kegs is nil, which can happen if the name and tap used to install a keg don't match the name and tap currently associated with its formula (i.e. if it's been renamed or moved).
2016-12-30Merge pull request #1701 from MikeMcQuaid/deprecate-std-superenv-stuffMike McQuaid
ENV: deprecate old methods.
2016-12-30tab: remove #reliable_runtime_dependencies?Alyssa Ross
See https://github.com/Homebrew/brew/pull/1750#discussion_r94243825 for discussion. Removes Tab#reliable_runtime_dependencies? in favour of returning nil from Tab#runtime_dependencies if the list is unreliable. Because Homebrew 1.1.6 hasn't been tagged yet, tabs created in tests aren't created with a homebrew_version that marks the runtime_dependencies in the Tab as reliable, so there are some tests that fail. To work around this, I've had to add a line to some tests that explicitly overrides the homebrew_version in the Tab. This is really ugly though, so they should be removed as soon as possible after 1.1.6 is released.
2016-12-30ENV: deprecate old methods.Mike McQuaid
These should have been deprecated long ago but we didn’t really have the necessary framework to do so.
2016-12-30keg: fix fallback dependencies with multiple kegsAlyssa Ross
Fixes #1524.
2016-12-30tests: explain Homebrew version checking in tabsAlyssa Ross
2016-12-30tab: remove #homebrew_tagAlyssa Ross
This method isn't used any more
2016-12-30tab: parse full Homebrew version stringAlyssa Ross
It didn't occur to me that this would work, but it does! Magic.
2016-12-30keg: fall back for dependencies of buggy tabsAlyssa Ross
Fixes #1554.
2016-12-30tab: implement #reliable_runtime_dependencies?Alyssa Ross
2016-12-30tests: include homebrew version in receipt fixtureAlyssa Ross
2016-12-30Add option to disable methods on specific date.Markus Reiter
2016-12-29Merge pull request #1694 from rwhogg/add-kabylakeMike McQuaid
Add Kaby Lake to Linux hardware list
2016-12-29Merge pull request #1723 from alyssais/runtime_dependenciesMike McQuaid
formula: don't expand unused optional dependencies
2016-12-29Merge pull request #1737 from alyssais/tap_dependentsMike McQuaid
keg: installed dependencies of unknown formulae
2016-12-27keg: fix dependents with unavailable formulaeAlyssa Ross
Because of an accidental use of `=` instead of `==`, the source formula check would be skipped when determining if a keg depended on another one (so only the versions would be compared). Fixed that comparison, and updated the corresponding test. Glad I caught that!