Vlad Shablinsky
02a578d842
test_formula: eligible_kegs_for_cleanup_keg_pinned
2016-09-07 20:58:13 +03:00
Alyssa Ross
b90eba8ffd
Update Tap for alias_path
2016-09-05 14:26:17 +01:00
Alyssa Ross
65ee5408c3
Replace install_name/install_ref with alias_path
2016-09-05 01:19:08 +01:00
Alyssa Ross
c17664b124
Switch to hash rockets
2016-09-05 01:19:08 +01:00
Mike McQuaid
dfcbefff73
Merge pull request #201 from gregory-nisbet/feature-env-shells
...
--env: support more shells, allow explicit shell selection
2016-09-04 21:23:33 +01:00
Alyssa Ross
0ef3e1e0dc
Preserve alias when installing formulae
...
Part of #567
2016-09-03 21:16:43 +01:00
Mike McQuaid
0dc0bc1617
Merge pull request #773 from reitermarkus/report-cask-coverage
...
Also report Cask coverage.
2016-09-01 20:31:40 +01:00
Dominyk Tiller
4072628a80
test_utils: add Bottles::Bintray tests
2016-08-29 19:48:34 +01:00
Dominyk Tiller
24be5c4a39
test_formulary: add formula@version class translation check
2016-08-28 03:08:20 +01:00
Markus Reiter
c1621f7f54
Also report Cask coverage.
2016-08-27 10:17:20 +02:00
Dominyk Tiller
f37d7a5637
test_integration_cmds: use https://bot.brew.sh
2016-08-26 01:43:25 +01:00
Mike McQuaid
e7984b34d5
Improve HOMEBREW_BREW_FILE unset failure case.
...
Print a better exception message and handle this in more cases rather
than producing confusing errors when it’s unset.
2016-08-24 14:48:53 +01:00
Markus Reiter
39e9506557
Refactor shutup
.
2016-08-21 05:07:38 +02:00
Mike McQuaid
9967bc99f0
Merge pull request #731 from MikeMcQuaid/rename-bottle-revision
...
Rename bottle's revision to rebuild.
2016-08-19 12:15:00 +01:00
Mike McQuaid
27ecf588c7
Rename bottle's revision to rebuild.
2016-08-18 17:32:35 +01:00
ilovezfs
a5a1b2969f
version: fix parsing of URLs ending with version
...
https://github.com/lihaoyi/Ammonite/releases/download/0.7.4/0.7.4
was parsing as "0.7" not "0.7.4" since ".4" was being treated as a
legitimate file extension. At minimum, let's insist that a valid file
extension include at least one letter to avoid lopping off part of the
correct version string.
2016-08-18 06:51:02 -07:00
Mike McQuaid
b39eba6c5f
Merge pull request #719 from vladshablinsky/epochs
...
Implement epochs
2016-08-18 12:24:54 +01:00
Vlad Shablinsky
6a684f4199
test_formula: add epoch tests
2016-08-18 10:38:20 +02:00
Mike McQuaid
3774b4641f
test/Gemfile.lock: remove json pin.
2016-08-17 14:28:11 +01:00
Mike McQuaid
cf71e30180
Merge pull request #724 from MikeMcQuaid/assume-ruby-two
...
Assume Ruby 2
2016-08-17 11:07:17 +01:00
Mike McQuaid
495da233d7
test/Gemfile: assume Ruby 2.
2016-08-17 10:27:45 +01:00
Mike McQuaid
135ecd1295
Prepare for Homebrew Cask to be imported.
...
- ignore Cask's files in `readall` (for now, there's an intentional
syntax error that will need fixed)
- run Cask's tests if they exist
- don't check Cask's files in coverage reports (for now)
2016-08-17 09:11:11 +01:00
Mike McQuaid
2ab5c77d0c
Merge pull request #713 from MikeMcQuaid/ship-sandbox
...
Enable sandbox by default for homebrew/core
2016-08-17 08:30:16 +01:00
Andrea Kao
5a965d3006
tests: add cmd/audit unit tests (caveats, desc, homepage)
2016-08-15 15:28:06 -07:00
Mike McQuaid
6e887fbf5a
sandbox: add formula? method and sandbox core.
...
Add a new `Sandbox.formula?` method to see if a given formula should be
sandboxed. Use the formula to check its tap against a list of
pre-approved taps where we know every formula builds under the sandbox
(currently just homebrew/core).
2016-08-15 08:33:58 +01:00
Mike McQuaid
fed96385ac
sandbox: add test? method.
...
Simplify checking if we’re going to sandbox a test with `Sandbox.test?`.
2016-08-15 08:33:58 +01:00
Tim D. Smith
4309a19a7c
Test that sandbox complains correctly
...
Test that sandbox does not complain about bogus .pyc errors and does
complain about other failures.
Closes #684 .
2016-08-14 12:23:17 -07:00
Mike McQuaid
fcb0b33f16
Merge pull request #682 from eirinikos/extend-cmd-audit-tests
...
tests: refactor FormulaTextTests in test_cmd_audit, add assertion to test_simple_valid_formula
2016-08-14 09:44:54 +01:00
Dominyk Tiller
36b0666f25
test_gpg: tweak rmtree usage
...
Swats away this annoying warning when the test is skipped due to GPG being
unavailable:
```
1) Skipped:
GpgTest#test_create_test_key:
GPG Unavailable
Error:
GpgTest#test_create_test_key:
NoMethodError: undefined method `rmtree' for nil:NilClass
/usr/local/Library/Homebrew/test/test_gpg.rb:11:in `teardown'
```
Closes #675 .
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-08-13 03:33:34 +01:00
Dominyk Tiller
13dcdb3098
test_gpg2_requirement: add satisfied test
2016-08-13 03:33:33 +01:00
Dominyk Tiller
2c81083f3c
test_gpg: add initial tests
2016-08-12 23:46:42 +01:00
Andrea Kao
91b67bd41d
tests: add assertion to test_simple_valid_formula
2016-08-12 15:21:27 -07:00
Andrea Kao
967a7a1862
tests: refactor FormulaTextTests in test_cmd_audit
2016-08-12 15:20:22 -07:00
Greg Nisbet
bf63c08d50
tests for shell-specific diagnostic message
2016-08-10 23:21:30 -07:00
Greg Nisbet
f1ce358551
Utils::Shell.shell_profile in formula_cellar_checks
2016-08-10 23:21:30 -07:00
Greg Nisbet
9a29a306cf
resolve conflict in diagnostic.rb
2016-08-10 23:19:09 -07:00
Mike McQuaid
d0251c1abc
formulary: fix to_rack for fully-scoped references
...
Fixes the case where I have `mysql56` installed but do
`brew uninstall foo/bar/mysql56` which isn't a valid formula.
Fixes https://github.com/Homebrew/legacy-homebrew/issues/39883 .
2016-08-10 09:40:39 +01:00
Andrea Kao
8c0b72ac0d
tests: extend cmd/install integration test
...
Closes #626 .
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-08-08 22:44:36 +02:00
Andrea Kao
c8b0a55c09
tests: refactor installation, renaming of CoreTap formula
2016-08-08 22:44:36 +02:00
Martin Afanasjew
c016aedaab
tests: check all our Bash code for syntax errors
...
Additionally include our bootstrap code in `brew.sh`, Bash utilities in
`utils.sh` and `utils/*.sh`, `superenv` shims, and the Bash completion.
Closes #654 .
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-08-08 16:00:13 +02:00
Mike McQuaid
c9fabf57a5
test_integration_cmds: non-OS X skip cask/services
2016-08-08 10:52:59 +01:00
Mike McQuaid
b7b89b9406
test/.rubocop.yml: fix check category.
2016-08-08 10:52:43 +01:00
Andrea Kao
26fb38a739
tests: add cmd/test integration test
2016-08-08 08:50:30 +01:00
Vlad Shablinsky
072e5df4ed
Cache outdated_versions for Formula
...
Closes #584 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-08-06 21:25:57 +08:00
Vlad Shablinsky
04cb161ddb
test_formula: add outdated_versions tests
2016-08-06 21:25:56 +08:00
Vlad Shablinsky
00f37d6778
Apply and add new download strategy tests
2016-08-06 21:25:56 +08:00
Vlad Shablinsky
1114219384
Add tests for Tab versions
2016-08-06 21:25:56 +08:00
Andrea Kao
8ec59253df
tests: fix code style issues ( #587 )
2016-08-06 07:04:59 +02:00
Martin Afanasjew
d59f0f77a7
tests: fix fluctuations in test coverage ( #647 )
...
This basically started once our integration tests caused the overall
test time to raise above 10 minutes, causing some coverage data to be
dropped because SimpleCov believed it to be stale.
2016-08-06 04:24:18 +02:00
Andrea Kao
38209aadbf
tests: add cmd/migrate integration test
2016-08-04 11:44:39 +01:00