aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_integration_cmds.rb
AgeCommit message (Collapse)Author
2016-04-02fix brew testsXu Cheng
Fix the `brew tests` problem caused by core/formula separation.
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-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-02-26tap: support --quieter flagXu Cheng
Closes Homebrew/homebrew#49551. Signed-off-by: Xu Cheng <xucheng@me.com>
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-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-06tests: fix simplecov handling in integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48250. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
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-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-01-31tests: more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48674. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-31tests: more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48635. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-27tests: don't try to rm an unexisting fileBaptiste Fontaine
This line is necessary if the test fails. If it passes the file won't exist anymore and shouldn't be removed.
2016-01-27tests: fix a file leakBaptiste Fontaine
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-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-17test_edit: HOMEBREW_EDITOR takes precedence over EDITORMisty De Meo
2016-01-16tests: more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48124. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-09fix test_missing testXu Cheng
2016-01-06a few more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#47714. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05doctor: move code away from cmd/Baptiste Fontaine
Closes Homebrew/homebrew#47665. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05integration tests: allow env overridingBaptiste Fontaine
2016-01-04integration tests: fix failing testBaptiste Fontaine
If the test fails above `formula_file`’s definition this line fails because `formula_file` is `nil`. Closes Homebrew/homebrew#47663. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-03test_intergration_cmds: fix minor typoDominyk Tiller
2016-01-03test_intergration_cmds: paren-wrap regexDominyk Tiller
Fixes this `brew readall` warning: test_integration_cmds.rb:116: warning: ambiguous first argument; put parentheses or even spaces
2015-12-26IntegrationCommandTests: improve bottle testXu Cheng
Also let `cmd_output` capture `$stderr` Closes Homebrew/homebrew#47383. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-12-19add IntergrationCommandTests#test_tapXu Cheng
Closes Homebrew/homebrew#47177. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-12-19add IntergrationCommandTests#test_readallXu Cheng
2015-12-18Add some more integration command tests.Mike McQuaid
Add them for `install`, `bottle`, `uninstall`, `cleanup`. Closes Homebrew/homebrew#47079. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-25Skip pouring from a bottle if --cc is passedDaniel Trebbien
A formula should be built from source by default if the --cc option is passed to specify a particular compiler. Added a test to test_formula_installer: test_not_poured_from_bottle_when_compiler_specified Modified test_formula_installer to assert that the formula was not poured from a bottle. Similarly modified test_formula_installer_bottle to assert that the formula *was* installed from a bottle. Added an install method to the TestballBottle formula (the same as the Testball formula's install method) so that the TestballBottle formula can be "built from source". Fixes Homebrew/homebrew#46046 - Build from source should be the default behavior if --cc option is passed Closes Homebrew/homebrew#46162. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-06test_integration_cmds: fix syntax warningXu Cheng
Library/Homebrew/test/test_integration_cmds.rb:68: warning: ambiguous first argument; put parentheses or even spaces
2015-08-25include git sha1 in --version outputTim D. Smith
HOMEBREW_VERSION doesn't change very often; the repository state is more interesting. Closes Homebrew/homebrew#41886.
2015-08-15let tests pass on Xcode-only systemsTim D. Smith
Closes Homebrew/homebrew#42976.
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-28test_integration_cmds: basic integration tests.Mike McQuaid
Closes Homebrew/homebrew#41945. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>