aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2016-04-02fix brew testsXu Cheng
Fix the `brew tests` problem caused by core/formula separation.
2016-04-01Pathname: improve compute_disk_usageXu Cheng
* Count .DS_Store disk usage but not file count. * Count symlink's own disk usage instead of ignoring it. * Count hardlinks disk usage only once. * Add testcase. Closes Homebrew/homebrew#50563. Closes Homebrew/homebrew#50566. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-24--repository: support to show tap pathXu Cheng
This can become handy when we separate core code and formulae. For example, we could use `cd $(brew --repo homebrew/core)` to go to core tap path. Closes Homebrew/homebrew#50346. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-22test_diagnostic: update expected wordingDominyk Tiller
2016-03-21add HOMEBREW_ENV_PATH internal variableXu Cheng
`Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It should be able to be accessed during the `brew tests`. By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these codes.
2016-03-20fix tests for deprecating SHA1Xu Cheng
Closes Homebrew/homebrew#50272. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-14audit: fix crash when HOMEBREW_NO_GITHUB_API is setBaptiste Fontaine
Running brew audit --strict --online on a formula with a GitHub homepage/url would crash if HOMEBREW_NO_GITHUB_API is set because GitHub.repository returns `nil` and the audit code assumes it always returns a hash. Closes Homebrew/homebrew#50054. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-03-08Set HOMEBREW_API_TOKEN from Git when available.Mike McQuaid
As requested in Homebrew/homebrew#46578. Falls back to existing functionality. Closes Homebrew/homebrew#46578. Closes Homebrew/homebrew#49846. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-03-08test_update_report: simplify testXu Cheng
Closes Homebrew/homebrew#49874. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-08install_renamed: handle recursive installs.Mike McQuaid
Closes Homebrew/homebrew#49845. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-03-07rename CoreFormulaRepository to CoreTapXu Cheng
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
2016-03-06tap: add methods to get git related informationXu Cheng
These methods will be used in `brew --version`, `brew config` and `brew doctor` after core/formula separation. Closes Homebrew/homebrew#49796. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-26tap: support --quieter flagXu Cheng
Closes Homebrew/homebrew#49551. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-26ARGV: switch? should only has one dashXu Cheng
If user inputs argument such as `-with-flag`, we can assume it's a bad flag. Closes Homebrew/homebrew#49256 Closes Homebrew/homebrew#49550. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-26test_formulary: use CoreFormulaRepository abstractionXu Cheng
2016-02-25remove update-rubyXu Cheng
Closes Homebrew/homebrew#49523. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-25test_update_report: fix testXu Cheng
Closes Homebrew/homebrew#48546. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-25add Tap#tap_migrationsXu Cheng
This enables tap migration feature in per tap case, which will ultimately help core/formula separation.
2016-02-22audit: a couple more testsBaptiste Fontaine
Closes Homebrew/homebrew#49404. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-21go: warn about no-op stage_deps callsBaptiste Fontaine
Closes Homebrew/homebrew#49389. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-21test_pathname: add append_lines testsDominyk Tiller
Closes Homebrew/homebrew#49233. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-02-19version: correctly parse codeload URLsAlex Dunn
Needed for Homebrew/homebrew#49346. Closes Homebrew/homebrew#49354. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2016-02-18tests: add groups and project name to coverageMartin Afanasjew
Groups make it easier to get an overview of the coverage without having to scan through a single very long list of files. They also display a possibly helpful per-group coverage. The project name is normally derived from the `root` directory which happens to be `Library` in our case, thus make it explicitly `Homebrew`. Closes Homebrew/homebrew#49303. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-02-18formula: add new pour_bottle DSL with reason.Mike McQuaid
This allows there to be a user-visible description of why a bottle is not being installed.
2016-02-17version: fix GitHub releases URLs parsingBaptiste Fontaine
The current code doesn't work with releases that have more than one digit in the third group, i.e.: .../releases/download/1.2.3/... works .../releases/download/1.2.34/... doesn't work Closes Homebrew/homebrew#49255. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-16add Tap#formula_file?Xu Cheng
Return true if given path would present a Formula file in this Tap. Accepts both absolute path and relative path (relative to this Tap's path) It offer an abstraction such that caller would not need to worry about low level file system in the tap. It will be used in `brew pull` and `brew update`. Closes Homebrew/homebrew#49191. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-15Promote update-bash to the default updater.Mike McQuaid
Also, rename the existing updater to `update-ruby` to allow using as a fallback. It will eventually be removed. Closes Homebrew/homebrew#49109. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-10tests: Add missing version testsBaptiste Fontaine
Closes Homebrew/homebrew#49031. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-10bottle: do not follow symlink when setting mtimeXu Cheng
Also set atime to mtime, which seems to be a more common practice. Fixes Homebrew/homebrew#49007 Closes Homebrew/homebrew#49027. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-09Audit: Regexp.escape formula namesMisty De Meo
We allow certain special regex characters in formula names, and if those aren't escaped when interpolating them into a regex, they'll be interpreted as special regex characters. This can cause regex compile errors on Ruby 1.8 (for example, with "libxml++3", which has nested match characters), and more subtle matching bugs in general. Refs an issue surfaced in Homebrew/homebrew#48744. Closes Homebrew/homebrew#49005. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2016-02-07tests: add leaves & prune integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48943. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-07tests: cleanup test bottleBaptiste Fontaine
2016-02-07tests: monkey-patch exec to get coverage reportsBaptiste Fontaine
Closes Homebrew/homebrew#48923. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-07tests: remove unnecessary cdBaptiste Fontaine
2016-02-07more test for dependency_expansionXu Cheng
Closes Homebrew/homebrew#48904. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-06tests: fix simplecov handling in integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48250. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-06tests: track all filesBaptiste Fontaine
2016-02-06tests: use our patched simplecov, bump coverallsBaptiste Fontaine
We must bump coveralls otherwise we get a conflicting dependency: we use a patched simplecov v0.11.1 but coveralls 0.8.9 needs simplecov 0.10.x.
2016-02-06tests: enforce min. 40% coverageBaptiste Fontaine
2016-02-06tests: don't use Coveralls outside of CIBaptiste Fontaine
2016-02-06make HOMEBREW_BREW_FILE a Pathname objectXu Cheng
Currently HOMEBREW_BREW_FILE is a String, while other of HOMEBREW_* variables are all Pathname. This commit unifies them all as Pathname, so it will not cause any confusion. Closes Homebrew/homebrew#48872. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-05HOMEBREW_BREW_FILE was unset for the testsilovezfs
This fixes a regression introduced by 3f6a355, which caused HOMEBREW_BREW_FILE to be unset while running the tests. Patch provided by Xu Cheng.
2016-02-03os/mac/hardware: add Skylake CPU.ilovezfs
Closes Homebrew/homebrew#48781. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-03test_integration_cmds: fix warning.ilovezfs
Closes Homebrew/homebrew#48772. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-03tests: remove the problematic test-bot testBaptiste Fontaine
It makes Travis checks fail on the master.
2016-02-03tests: more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48785. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-03tests: remove unnecessary codeBaptiste Fontaine
2016-02-03tests: add audit regression test for Homebrew/homebrew#48744Baptiste Fontaine
Closes Homebrew/homebrew#48748. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-01DSL method "apply" to specify patch filesilovezfs
The "apply" DSL method can be called from patch-do blocks to specify the paths within an archive of the desired patch files, which will be applied in the order in which they were supplied to the "apply" calls. If "apply" isn't used, raise an error whenever the extracted directory doesn't contain exactly one file. The "apply" method can be called zero or more times within a patch-do block with the following syntaxes supported: apply "single_apply" apply "multiple_apply_1", "multiple_apply_2" apply [array_of_apply] If apply must be used, a single call using the second syntax above is usually best practice. Each apply leaf should be the relative path to a specific patch file in the extracted directory. For example, if extracting this-v123-patches.tar.gz gives you this-123 this-123/.DS_Store this-123/LICENSE.txt this-123/patches this-123/patches/A.diff this-123/patches/B.diff this-123/patches/C.diff this-123/README.txt and you want to apply only B.diff and C.diff, then you need to use "patches/B.diff" and "patches/C.diff" for the lowest-level apply leaves. The code was provided by Xu Cheng. Any mistakes are mine.
2016-01-31tests: more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48674. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>