Mike McQuaid
b1a16deb19
Use BSD tar's libarchive LZMA support if available
...
Avoid using an unnecessary `xz` dependency when it's not needed.
2016-10-15 13:10:37 +01:00
Bob W. Hogg
aae4dfaec0
automated rubocop fixup
2016-09-22 22:10:32 -04:00
Bob W. Hogg
0029ad2929
add the other test back in
2016-09-22 17:36:57 -04:00
Bob W. Hogg
2a82770f70
move mac-specific tests elsewhere
2016-09-22 08:31:50 -04:00
Bob W. Hogg
54a086e2fe
dependency_collector: Fix ant_dep for Linux.
...
Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2016-09-22 08:31:50 -04:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
219c373115
test/test_dependency_collector: fix Rubocop warnings.
2016-09-11 21:48:05 +01:00
Mike McQuaid
1f6f832c00
test_dependency_collector: port to generic layer.
2016-07-27 15:05:42 -06:00
Misty De Meo
31501e7b38
Add more tests for DependencyCollector inferred deps
2015-12-31 19:52:41 -04:00
BrewTestBot
13d544e11e
Core files style updates.
...
Closes Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Mike McQuaid
1e86730289
Rename requirements named *Dependency.
...
Dependency is another similar, related class and it's super confusing
to have some Requirements that are named *Dependency.
Closes Homebrew/homebrew#38891 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-16 08:12:01 +01:00
Jack Nagel
a412b49c2c
Fix dependency equality
2014-11-21 17:03:58 -06:00
Jack Nagel
309001fd9f
Fix tests on 1.8
2014-08-30 02:01:17 -05:00
Jack Nagel
26f4a78825
No need to set the URL for dependency test
2014-07-15 20:18:25 -05:00
Jack Nagel
771bc2978c
Eagerly set the download strategy
2014-07-15 13:42:03 -05:00
Jack Nagel
618b894c3e
Replace ComparableSet with a Requirements collection
2014-07-03 14:50:57 -05:00
Jack Nagel
4cbae37d62
Don't expose the dependency cache data structure
2014-07-02 15:15:59 -05:00
Jack Nagel
fc2d403a82
X11Dependency: use Version objects
2014-07-01 21:26:41 -05:00
Jack Nagel
4b6abc7da2
Use assert_includes
2014-06-18 20:34:10 -05:00
Jack Nagel
58a75b0f71
Use assert_predicate
2014-06-18 20:34:09 -05:00
Jack Nagel
982e9239b8
Use a custom test class so we can avoid monkeypatching
2014-06-18 20:32:51 -05:00
Jack Nagel
9a554f5f4b
Use example.com as domain in tests
2014-06-12 17:58:12 -05:00
Jack Nagel
d8f86f290b
Use external interface in tests
2014-06-10 19:56:42 -05:00
Jack Nagel
d22ad92a84
Remove special behavior of autotools symbol deps
...
Closes Homebrew/homebrew#28094 .
2014-04-03 09:12:25 -05:00
Jack Nagel
9970c97c28
Clear dependency cache after each test
2014-03-09 12:38:19 -05:00
Jack Nagel
8bfcdf0bd8
Remove special X11 proxy deps
2014-03-05 20:45:44 -06:00
Jack Nagel
c5289f2503
Infer dependencies from download strategies and URLs
...
Closes Homebrew/homebrew#20849 .
Closes Homebrew/homebrew#22871 .
2013-09-28 16:37:05 -05:00
Jack Nagel
f2ebc0e325
Stop mutating dependency specifications
2013-09-13 09:57:53 -05:00
Jack Nagel
e9d245cf3a
Avoid unnecessary float to string conversion
2013-06-15 10:13:20 -05:00
Misty De Meo
c9c5e56363
Add :ld64 dependency
...
This allows formulae which won't build with Tiger's ld to conditionally
request a dependency on the ld64 formula. This modifies the build
environment appropriately, and will only be active on Tiger.
2013-06-08 19:10:38 -05:00
Jack Nagel
b322020338
Reduce allocations in dependency construction
...
By always passing around a single, unnested array rather than splatting
and then defensively flattening and compacting things, we can avoid
allocating a bunch of unnecessary arrays. This gives a performance boost
of roughly 4% when enumerating 2500 formulae, and has the side effect of
cleaning up the dependency API.
2013-05-06 16:08:50 -05:00
Jack Nagel
894a6c9776
TypeError is appropriate here
2013-05-06 16:08:49 -05:00
Jack Nagel
c3d48b5d8a
Don't use "assert_not_nil"
2013-04-02 15:33:34 -05:00
Jack Nagel
207f24be07
Split out and fix LanguageModuleDependency tests
2013-04-02 15:33:34 -05:00
Jack Nagel
3e9241312d
Add :libltdl dep for libtool's libltdl
...
The :libtool dep is implicitly a build-time dep; :libltdl can be used
for software that uses the ltdl library at runtime.
2013-02-10 19:28:14 -06:00
Jack Nagel
803649bf04
Shrink DependencyCollector#parse_symbol_spec and add tests
2013-02-10 19:27:33 -06:00
Jack Nagel
b65398c549
LanguageModuleDependency: foward args to superclass initalizer
2013-02-08 00:12:49 -06:00
Jack Nagel
26c0524f1a
DependencyCollector: return created dep from #add
2013-01-28 10:35:14 -06:00
Jack Nagel
adf90691f1
Split dependency classes into separate files
2013-01-26 20:30:05 -06:00
Jack Nagel
046d802d09
FormulaInstaller: allow formulae to pass options to deps
...
Formulae can now pass build options to dependencies. The following
syntax is supported:
depends_on 'foo' => 'with-bar'
depends_on 'foo' => ['with-bar', 'with-baz']
If a dependency is already installed but lacks the required build
options, an exception is raised. Eventually we may be able to just stash
the existing keg and reinstall it with the combined set of used_options
and passed options, but enabling that is left for another day.
2013-01-26 12:14:46 -06:00
Jack Nagel
fe4f39dcee
Split up dependency test coverage
...
The DependencyCollector tests are really integration tests, while the
rest are closer to real unit tests. Split them up so that the tests can
be run in isolation on a per-class basis.
2013-01-13 21:01:15 -06:00