Markus Reiter
791af7e910
Move invalid Cask fixtures into sub-directories.
2018-04-14 11:44:19 +02:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Mike McQuaid
0f4e22e28d
Merge pull request #3981 from MikeMcQuaid/rspec-cleanup
...
test: rubocop-rspec style auto-corrects.
2018-03-28 11:51:44 +01:00
commitay
2373ee6168
cask audit: check for :latest with appcast
2018-03-27 20:56:05 +10:00
commitay
4020f50c14
cask audit: check for appcast if the cask uses github releases
2018-03-27 16:17:37 +10:00
commitay
43244e7953
cask audit: check allow_untrusted
2018-03-27 08:57:39 +10:00
Mike McQuaid
5e1806e796
test: rubocop-rspec style auto-corrects.
...
There’s too many warnings to start enabling `rubocop-rspec` by default
but let’s at least apply the cleanups it does automatically.
2018-03-25 13:30:37 +01:00
Mike McQuaid
e03f07f302
Rubocop 0.53.0 automatic fixes.
2018-03-08 14:10:02 +00:00
Markus Reiter
6760d26319
Create Hbc::Config
class.
2018-01-27 21:47:18 +01:00
Mike McQuaid
1f48e17f1b
rubocop: fix brew style warnings.
2018-01-17 10:42:43 +00:00
Mike McQuaid
8ed1425ed7
tests: don't output seed multiple times.
...
This clutters up the output. Instead, hide it with a RSpec formatter and
generate and output it ourselves.
2017-12-15 09:14:44 +00:00
Markus Reiter
a02ce4f8e9
Also remove writer method for Hbc.binarydir
.
2017-12-03 10:09:09 +01:00
Markus Reiter
e4bb09dd40
Remove unused writer methods for Hbc.caskroom
and Hbc.cache
.
2017-12-03 09:58:01 +01:00
L. E. Segovia
10a0662dc0
Test upgrade for Casks with version :latest
2017-11-28 00:29:45 +00:00
Markus Reiter
f50ae44980
Merge pull request #3396 from amyspark/hacktoberfest-upgrade
...
Implement `brew cask upgrade`
2017-11-27 23:41:03 +01:00
Bob W. Hogg
3cd869651b
Add test fixtures for ELF executables
...
Add test/support/fixtures/elf/
and test/support/fixtures/tarballs/testball-0.1-linux.tbz
2017-11-26 08:37:57 -08:00
Shaun Jackman
48ed28a154
Change the generic bottle tag to processor-system
2017-11-22 23:06:26 -08:00
L. E. Segovia
36fe355159
Add tests for upgrade recovery
2017-11-13 08:46:08 -03:00
L. E. Segovia
522a229dbb
Fix upgrade tests and some upgrade? leftovers
2017-11-08 08:33:33 -03:00
L. E. Segovia
c636be07f9
Separate do end into multiple lines
2017-10-31 09:54:30 -03:00
L. E. Segovia
917c138eeb
Add tests for uninstall_* and zap stanzas
2017-10-30 20:47:40 -03:00
Mike McQuaid
8aa697363b
test.flac: add flac fixture.
2017-10-27 09:33:37 +01:00
Markus Reiter
7e970216a3
Refactor and fix RuboCop specs.
2017-10-24 19:39:40 +02:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Markus Reiter
97333df4cb
Add helper method for Cask fixture paths and refactor CaskLoader.
2017-10-07 16:11:25 +02:00
Markus Reiter
ec0d8fa7ba
Merge pull request #3220 from yzguy/yzguy/cask_available_languages_to_info
...
add available languages to cask info command
2017-10-03 08:31:56 +02:00
Adam Smith
270bf0506a
stylistic changes for cask info tests
2017-10-02 11:34:50 -07:00
Adam Smith
92311901c9
add available languages to cask info command
...
add language tests for dsl
add fixtures, tests for languages info output
add extra lines
2017-09-30 18:25:12 -07:00
Shaun Jackman
9642ec769e
testball_bottle-0.1: Add the formula to the bottle
...
Update the SHA-256.
2017-09-28 12:29:23 -07:00
Dan Wendorf
acf1b278ae
List cask full-names
...
`brew cask list` supports the `--full-name` flag which will include the tap
name for casks not part of the core caskroom/cask tap. For example, if
cask "foo-beta" is installed from the caskroom/versions cask, `brew cask
list --full-name` will report the name as "caskroom/versions/foo-beta".
2017-09-16 10:00:06 -07:00
Markus Reiter
f89e09b785
Add spec for conflicts_with cask
.
2017-08-05 16:21:14 +02:00
Markus Reiter
2ad3a87045
Silence all specs by default.
2017-07-29 20:25:37 +02:00
Markus Reiter
aa8eb21b8c
Merge pull request #2861 from reitermarkus/cask-search-tty
...
Output plain list when running `brew cask search` without a TTY.
2017-07-24 00:04:43 +02:00
Mike McQuaid
8b63214c2e
integration_test: try tests on Gem load failure.
...
This should help with debugging `Gem::LoadError`s (e.g. for
https://github.com/Homebrew/homebrew-test-bot/pull/111 ).
2017-07-13 17:25:34 +01:00
Mike McQuaid
cabb7e898a
integration_test: add simplecov libs when needed.
...
Don't add these unconditionally or with Bundler to speed things up a
bit. Also, to speed things up further cache these arguments so we don't
have to do the same generation every time.
2017-07-10 07:51:04 +01:00
Markus Reiter
4e26fdfcf6
Add test for non-TTY brew cask search
.
2017-07-10 00:09:32 +02:00
Markus Reiter
dccdac55a8
Add helper for testing TTY output.
2017-07-08 00:57:08 +02:00
Mike McQuaid
cb3a47d9e2
Fix brew tests
on High Sierra.
...
The `brew test` tests were failing as they were unable to include
`test/unit/assertions`. This is because it's a gem and we were setting
the `GEM_HOME` so system gems were being ignored.
While I was there and examining the `$LOAD_PATH`: reduce the number of
things we add there by using `Bundler.with_clean_env` and only adding
`HOMEBREW_LIBRARY_PATH` in the `$LOAD_PATH` if it isn't already there
(which it always is [and has to be] for integration tests).
This also seems to have the side effect of speeding up integration
tests from 1m26s to 1m8s on my machine.
2017-07-07 15:20:19 +01:00
Markus Reiter
4af1d2265b
Add symlink for High Sierra test bottle.
2017-06-09 14:02:57 +02:00
Mike McQuaid
2269518768
Merge pull request #2746 from MikeMcQuaid/cleanup-tests
...
tests: cleanup tests.
2017-06-08 16:16:55 +03:00
Mike McQuaid
c572081f8b
formula_desc_cop: tweak some rules.
...
Allow some specific lowercase words and provide an autocorrect for some
of these rules.
2017-06-08 15:13:10 +03:00
Mike McQuaid
7d5b8a5cea
tests: cleanup tests.
...
Remove pending tests that are never run on CI (i.e. require `--online`),
remove fixtures for those tests and just make `--official-cmd-taps`
run by `--online` instead.
2017-06-07 16:25:07 +01:00
Mike McQuaid
28cd0d3856
Fix Linux build
...
Remove `testbottest` formula (this should have lived in the `brew
test-bot` repository from the outset) and make various other changes to
fix the Linux build here.
2017-05-30 09:51:06 +01:00
Markus Reiter
3139383fe6
Merge pull request #2623 from rednoah/master
...
Support GPG (signed data) container in Homebrew Cask
2017-05-19 20:48:35 +02:00
Reinhard Pointner
5c59b3352f
Support GPG (signed data) container in Homebrew Cask (test case)
2017-05-11 16:27:45 +08:00
Markus Reiter
5828eefd01
Remove to_s
from some Pathname
s.
2017-05-08 13:37:28 +02:00
Mike McQuaid
57db2e539e
Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"
...
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing
changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07 17:28:39 +01:00
Mike McQuaid
e1bbab6ca6
Revert "Merge pull request #2603 from MikeMcQuaid/tweak-gem-vendoring"
...
This reverts commit 2372872974d1049c2beafe7dedb7f8f882502058, reversing
changes made to 3e4547f52e7ebec633f8bfefc8a396d944edf908.
2017-05-07 17:28:37 +01:00
Mike McQuaid
33f83be10e
Tweak Gem vendoring.
...
If people have `HOMEBREW_RUBY_PATH` set then things explode in a rather
confusing fashion. Instead, run `bundle` for them with the arguments
that they'd want.
Also, move `macho` requires into the module itself; it's a pain having
to do everything for Bundler before requiring `pathname` which is a core
Ruby class.
2017-05-07 15:33:54 +01:00
Mike McQuaid
ee253e465b
Vendor all Homebrew's gems.
...
Homebrew's actually ended up using a fair few gems. While we want to
avoid Bundler at runtime (and this PR still does that, in fact uses
Bundler even less at runtime than it did before) writing our own version
to use at build-time seems redundant.
2017-05-07 13:52:57 +01:00