51 Commits

Author SHA1 Message Date
Misty De Meo
e5212d74a6 Diagnostic: require CLT headers on 10.14 2018-06-13 17:24:32 -07:00
Maxim Belkin
e5435dfeb7
Cross-platform diagnostics. 2018-05-14 04:44:15 -05:00
Markus Reiter
5e2d4d52ba Refactor OsxfuseRequirement spec. 2018-04-20 19:11:22 +02:00
Mike McQuaid
7095738d1d Remove config/doctor checks we no longer need
A bunch of these were needed before superenv, environment filtering or
on now long-unsupported versions of macOS.
2018-04-02 09:40:39 +01: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
Shaun Jackman
5500c3b25e unzip_dep_if_needed: Needs unzip not zip [Linux] (#632) 2018-03-05 11:51:08 -08:00
Maxim Belkin
c83dd0d04b brew style: replace tabs with spaces 2018-02-21 13:44:51 +00:00
Maxim Belkin
14d7a7a08c Code refactoring 4.0 2018-02-20 21:33:38 +00:00
Maxim Belkin
c6dac68d8b Code refactoring v3.0 2018-02-19 10:21:01 +00:00
Maxim Belkin
d25fc5ce50 Code refactoring 2018-02-19 09:54:36 +00:00
Maxim Belkin
73a3592981 Renaming linux-specifix file with tests
Files are globbed based on their name. Therefore, we have to rename
them so tests for Linux are not executed on a Mac.
2018-02-19 08:54:30 +00:00
Maxim Belkin
5cfcd2ae9f
Fixing test 2018-02-16 15:04:43 -06:00
Maxim Belkin
a53171d9fe
Adding tests for dependency_collector on Linux 2018-02-16 14:58:07 -06:00
Mike McQuaid
27be33b245 Deprecate Git, Subversion requirements.
These rely on `default_formula` to be useful and are better following
the `*_dep_if_needed` pattern.
2018-01-10 13:19:50 +00:00
Mike McQuaid
d54e670a64 requirements: move more to compat. 2017-12-30 20:56:55 +00:00
Mike McQuaid
6b9ca5dbf5 Remove some unset/checked environment checks
These will be redundant once environment filtering is on by default
in #3529.
2017-12-08 16:33:33 +00:00
ilovezfs
5377a42f7f Revert "Added tests for os/mac/keg" 2017-09-27 02:57:12 -07:00
mansimarkaur
9f57840486
test: Tests for os/mac/keg 2017-09-26 19:06:57 -04:00
Mike McQuaid
e12d2746b6 os/mac/diagnostic: allow custom Ruby for devs.
This avoids `brew doctor` warnings on High Sierra but in general this is
a good idea for future versions and to allow Homebrew developers to test
things out with different versions of Ruby.
2017-09-15 08:06:58 +01:00
Mike McQuaid
24d39430b5 diagnostic_spec: tweak_formatting. 2017-06-06 08:03:06 +01:00
constXife
4f5643a676 Fix undefined variable ruby_version 2017-06-06 13:45:09 +07:00
Mike McQuaid
945cfc7cb7 diagnostic: move some more macOS doctor checks.
Move some `brew doctor` checks that are pretty macOS specific so they
are only run on macOS.
2017-05-27 13:34:59 +01:00
Markus Reiter
3cdf8f938a Use scoped RSpec matchers. 2017-05-15 17:23:40 +02:00
Mike McQuaid
2be7999878 Merge pull request #2274 from rwhogg/fuse-requirement
Port OsxfuseRequirement to Linux
2017-04-20 17:14:42 +01:00
Bob W. Hogg
608d72a35f OsxfuseRequirement: Port to Linux 2017-04-15 21:20:09 -07:00
Misty De Meo
944bff4de2 Mac Hardware: provide a more Mac-specific implementation of can_run? 2017-04-15 22:59:55 +08:00
Markus Reiter
a554902380 Add mktmpdir helper method. 2017-02-28 15:06:32 +01:00
Markus Reiter
26c01b4c43 Convert X11Requirement test to spec. 2017-02-27 17:58:42 +01:00
Mike McQuaid
fd639f4aa9 Merge pull request #2176 from reitermarkus/spec-os_mac_diagnostic
Convert `os/mac/diagnostic` test to spec.
2017-02-25 14:40:40 +00:00
Markus Reiter
89a4a7a710 Convert os/mac/dependency_collector test to spec. 2017-02-25 11:11:35 +01:00
Markus Reiter
7cc4ca41bc Convert os/mac/diagnostic test to spec. 2017-02-25 10:19:27 +01:00
Markus Reiter
2ab1f13168 Merge pull request #2090 from reitermarkus/spec-bottles
Convert Utils::Bottles test to spec.
2017-02-23 09:31:28 +01:00
Markus Reiter
48a211fc90 Convert os/mac/language test to spec. 2017-02-23 02:47:33 +01:00
Markus Reiter
dd99d656a3 Convert Utils::Bottles test to spec. 2017-02-21 21:45:34 +01:00
Markus Reiter
e218266aaf Convert Mach-O test to spec. 2017-02-21 20:20:44 +01:00
Markus Reiter
445281f77a Merge pull request #2074 from reitermarkus/spec-java_requirement
Convert JavaRequirement test to spec.
2017-02-21 20:12:01 +01:00
Markus Reiter
6d4aa91b37 Merge pull request #2076 from reitermarkus/spec-os_mac_keg
Convert OS::Mac::Keg test to spec.
2017-02-21 20:10:49 +01:00
Markus Reiter
a0dca79f01 Merge pull request #2080 from reitermarkus/spec-os_mac_version
Convert MacOS::Version test to spec.
2017-02-21 20:09:03 +01:00
Markus Reiter
15d6810641 Convert os/mac/blacklist test to spec. 2017-02-21 06:09:09 +01:00
Markus Reiter
66e3541b12 Convert MacOS::Version test to spec. 2017-02-21 06:00:24 +01:00
Markus Reiter
5ec9597810 Convert OS::Mac::Keg test to spec. 2017-02-21 04:52:53 +01:00
Markus Reiter
9c1db3c820 Convert JavaRequirement test to spec. 2017-02-21 02:50:52 +01:00
Markus Reiter
398de9cf3c Merge pull request #2060 from reitermarkus/spec-bottle-collector
Convert Utils::Bottles::Collector test to spec.
2017-02-20 13:57:27 +01:00
Markus Reiter
6dfbf7066b Convert Utils::Bottles::Collector test to spec. 2017-02-19 23:55:12 +01:00
Bob W. Hogg
5a214de68d java_requirement: port to Linux and refactor
Split the core requirement class into generic, Linux-specific,
and macOS-specific parts.

Additionally, the Linux version is now able to detect Java versions
(the previous Linuxbrew implementation was only able to detect
if Java was present at all.)
2017-02-15 21:35:26 -08:00
Alyssa Ross
0c1d665568 tests: set developer in ENV rather than stubbing 2017-01-22 19:53:58 +00:00
Alyssa Ross
116ed3ec80 tests: automatically restore ENV in teardown 2017-01-22 19:53:58 +00:00
Alyssa Ross
6861451f87 tests: remove more per-test file system cleanup
These locations are now all automatically cleaned up after every test.
2017-01-22 11:15:18 +00:00
Alyssa Ross
d7b8420aaa tests: clean up file system for all tests
(No longer just integration tests.)
2017-01-22 11:15:18 +00:00
Alyssa Ross
70a381a00f tests: enforce super in lifecycle hooks
This will allow us to have global setup and teardown for tests.

For example, we can automatically clear caches after each test, to avoid
annoying intermittent failures like #1879 and #1886.
2017-01-21 11:34:52 +00:00