aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_integration_cmds.rb
AgeCommit message (Collapse)Author
2016-09-18Use new "macOS" naming where appropriate.Mike McQuaid
Not quite a mass replacement as I've used OS X and Mac OS X where describing specific older versions and added compatibility methods for things in the DSL.
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-16Move LinkedKegs/PinnedKegs/Locks from Library.Mike McQuaid
These don't make sense to be tied to the `HOMEBREW_REPOSITORY` but instead should live in the `HOMEBREW_PREFIX` as they all relate to its state.
2016-09-15Use constants for LinkedKegs/PinnedKegs/Locks.Mike McQuaid
These definitions are scattered throughout the codebase which makes it hard to refactor them later (my goal is to move them outside of HOMEBREW_LIBRARY). Unify their definitions for clearer code and easier movement later.
2016-09-11test/test_integration_cmds: fix Rubocop warnings.Mike McQuaid
2016-09-08Merge pull request #864 from vladshablinsky/skip-upgradeMike McQuaid
Skip upgrade of pinned dependency if it's outdated
2016-09-08Add `--help` to all developer commands.Mike McQuaid
Also, flag those that we never want to be in a manpage.
2016-09-07test_integration_cmds: reinstall pinnedVlad Shablinsky
2016-09-04Merge pull request #201 from gregory-nisbet/feature-env-shellsMike McQuaid
--env: support more shells, allow explicit shell selection
2016-08-26test_integration_cmds: use https://bot.brew.shDominyk Tiller
2016-08-18Rename bottle's revision to rebuild.Mike McQuaid
2016-08-10tests for shell-specific diagnostic messageGreg Nisbet
2016-08-10Utils::Shell.shell_profile in formula_cellar_checksGreg Nisbet
2016-08-10resolve conflict in diagnostic.rbGreg Nisbet
2016-08-08tests: extend cmd/install integration testAndrea Kao
Closes #626. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-08-08tests: refactor installation, renaming of CoreTap formulaAndrea Kao
2016-08-08test_integration_cmds: non-OS X skip cask/servicesMike McQuaid
2016-08-08tests: add cmd/test integration testAndrea Kao
2016-08-06tests: fix code style issues (#587)Andrea Kao
2016-08-04tests: add cmd/migrate integration testAndrea Kao
2016-08-02tests: update cmd/analytics integration testAndrea Kao
2016-07-27tests: add cmd/switch integration testAndrea Kao
2016-07-27tests: extend cmd_fail to all non-zero exit codes (#595)Andrea Kao
2016-07-27tests: add cmd/analytics integration test (#558)Andrea Kao
2016-07-26tests: add cmd/pull integration test (#525)Andrea Kao
2016-07-19tests: add cmd/irb integration test (#501)Andrea Kao
2016-07-19tests: nest HOMEBREW_TEMP inside TEST_TMPDIR (#554)Andrea Kao
2016-07-15brew.{rb,sh}: move to Library/Homebrew. (#506)Mike McQuaid
2016-07-14test-bot: start running generic tests. (#505)Mike McQuaid
* test-bot: start running generic tests. Start running the test suite in the "generic" mode i.e. a base layer for non-OS X platforms to be able to use to ensure we don't break the generic code for the parts of the code we've got running. Currently this just runs the integration tests as that's the only useful suite that's entirely passing but eventually this will be changed to run the full test suite in generic mode. * test_integration_cmds: fix tests on Linux.
2016-07-13tests: add cmd/link, cmd/unlink integration tests (#398)Andrea Kao
2016-07-11test_integration_cmds: compile in install test. (#479)Mike McQuaid
Most of our formulae do compilation so let's do it here too.
2016-07-10tests: clean up after bottle testMartin Afanasjew
Fix minor regression in b55250c44eacd49646407b26a73753965d4d36d0. The bottle is placed in the current working directory, is unaffected by the the single teardown introduced in #475, and thus needs manual handling. Closes #483. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-10tests: fuse broken/split --repository testsMartin Afanasjew
The latter was replacing the former due to an identical method name.
2016-07-10tests: remove bogus cleanup testMartin Afanasjew
Test was added in 61614d35294c8faffaeb5c7f0ec6dea78dbbc30f, but never had any effect because it was replaced by a method of the same name a few lines further down.
2016-07-08test_integration_cmds: use a single teardown. (#475)Mike McQuaid
Instead of writing a custom ensure for every test let's just nuke all the files every time. This may be something we might want to use for other unit tests too. It leans heavily on the fact that a `FileUtils.rm_rf` on files that don't exist is very quick and things like `brew cleanup` are super slow in comparison. Before: ``` $ brew tests --only=integration_cmds --official-cmd-taps Finished in 49.764724s, 1.0047 runs/s, 5.2648 assertions/s. ``` After: ``` $ brew tests --only=integration_cmds --official-cmd-taps Finished in 43.014769s, 1.1624 runs/s, 5.8352 assertions/s. ```
2016-07-05tests: fix leak in '[un]linkapps' integration test (#439)Martin Afanasjew
Prior to the fix, every run of the test suite would leave behind a pair of empty directories in `$TMPDIR`. (A temporary home directory was created but only its child `Applications` was wiped when done.)
2016-07-04Remove unnecessary official command tapping.Mike McQuaid
2016-07-04test_integration_cmds: loosen cask test.Mike McQuaid
2016-07-04Revert "Revert "Test officially supported cmd taps. (#390)""Mike McQuaid
This reverts commit dba1958bd79c1c9d18f215dfc2b806ea62edd1c8.
2016-07-04Revert "Test officially supported cmd taps. (#390)"Martin Afanasjew
This reverts commit 252c701c59227c385ef6178fe99523cca8c843bb. Taps installed prior to running the test suite are not visible to the test suite as most Homebrew paths are redefined as to not mess up the local installation.
2016-07-04Test officially supported cmd taps. (#390)Mike McQuaid
All of these taps use Homebrew internal APIs (or will shortly) and we autoinstall them all from `brew $CMD`. We should adjust our CI to ensure that we never accidentally break these taps when making changes to core code so that these taps can rely more on this core code rather than having to e.g. vendor equivalent code that never changes on our end.
2016-06-22tests: refactor formula file creation (#370)Andrea Kao
2016-06-19tests: add cmd/search integration test (#356)Andrea Kao
2016-06-14tests: fix problems in 'log with formula' test (#350)Martin Afanasjew
Problems fixed: - Broken and leaking test if run as part of `brew tests --coverage` due to the `cmd` call being nested in the `Pathname#cd` block. - Output during `git clone` operation because of a missing `shutup do`. - Still incomplete coverage for `cmd/log.rb` because `brew log` is invoked on the formula in the origin instead of the shallow clone. - Minor stylistic fixes: - Superfluous parentheses around `core_tap.path.dirname`. - Overly long lines.
2016-06-12tests: extend cmd/log integration test (#333)Andrea Kao
2016-06-03tests: extend cmd/desc integration test (#314)Andrea Kao
2016-06-02tests: add missing requireMartin Afanasjew
Amends e4d0187120e61bc80d31ebecc3b38f0740b20bb5. The `require` was accidentally omitted causing the tests to fail very sporadically (or always, when invoked as `brew tests --only=integration_cmds`).
2016-06-02tests: extend cmd/home integration test (#305)Andrea Kao
2016-05-30test_integration_cmds: fix when not a developer.Mike McQuaid
2016-05-08test_integration_cmds: print output on failure. (#213)Mike McQuaid
Makes it easy to debug what’s gone wrong.