aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2016-04-20tests: expand help and help-related testsMartin Afanasjew
Closes #114. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-20tests: fix Ruby 1.8 syntax warningsMartin Afanasjew
In `Library/Homebrew/test/`: test_integration_cmds.rb:431: warning: (...) interpreted as grouped expression test_integration_cmds.rb:502: warning: (...) interpreted as grouped expression test_integration_cmds.rb:507: warning: (...) interpreted as grouped expression test_integration_cmds.rb:585: warning: (...) interpreted as grouped expression test_integration_cmds.rb:709: warning: (...) interpreted as grouped expression test_integration_cmds.rb:710: warning: (...) interpreted as grouped expression test_integration_cmds.rb:711: warning: (...) interpreted as grouped expression
2016-04-19Tap#install: better TapRemoteMismatchError checkXu Cheng
* remote check requires `git` installed. * Do not perform check if user does not passing remote explicitly. Fixes #108
2016-04-18brew test, install, update-test: add --keep-tmp optionAndrew Janke
Also enables sandbox for --interactive and --debug use of install and test, using automatic retention. Closes #66. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-17tests: test FormulaClassUnavailableErrorMartin Afanasjew
Closes #101. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-16tests: ensure desc prints short name only if there are conflictsJosh Hagins
Fixes #70. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-04-12tap: various improvements (#77)Xu Cheng
* make `read_or_set_private_config` private * add doc * add test
2016-04-06tests: update prune --verbose testMartin Afanasjew
Closes #15. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-06tests: update linkapps/unlinkapps testsMartin Afanasjew
2016-04-05test_cmd_audit: add plist testDominyk Tiller
2016-04-05tap: support --full even if installedilovezfs
Makes `tap` re-runnable and unshallows when requested with `--full`. Tapping with a different URL raises an exception. The homebrew/core tap cannot be untapped with `untap` so running `brew tap --full homebrew/core` is now a built-in way to get a full clone of this tap without resorting to workarounds. Closes #17. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-04-03Update documentation after repository split.Mike McQuaid
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.