Jack Nagel
a412b49c2c
Fix dependency equality
2014-11-21 17:03:58 -06:00
Jack Nagel
9dfc5e39e8
Fix Requirement equality
2014-11-12 17:35:16 -06:00
Jack Nagel
b34fa6cfd8
Use libexec method in install test
2014-11-07 17:04:23 -06:00
Jack Nagel
d63ba368ef
Normalize requires in tests
2014-11-07 17:03:51 -06:00
Tim D. Smith
f5a54ab349
BottleVersion: add imap-uw style versions
2014-11-05 19:11:25 -08:00
Jack Nagel
d3b2a213fe
Use more relevant assertions
2014-10-30 00:23:46 -05:00
Jack Nagel
503d781150
Allow tests to reset bottle hooks on teardown
...
This avoids polluting other tests that might invoke the installer, thus
executing any registered hooks.
2014-10-29 23:49:57 -05:00
Jack Nagel
1a487fa2b3
Add predicate methods for specs and stop testing internals
2014-10-29 23:32:38 -05:00
Jack Nagel
56aec9494c
Fix filename case
2014-10-26 23:17:13 -05:00
Jack Nagel
55e0f40d02
Handle broken symlinks in resolve_any_conflicts
...
Fixes Homebrew/homebrew#33328 .
2014-10-20 17:07:54 -05:00
Jack Nagel
975f61d981
Fix filesystem leak in keg tests
2014-10-20 17:07:53 -05:00
Mike McQuaid
7a06bc067e
bottle_version: handle libpano.
2014-10-20 08:57:19 +01:00
Mike McQuaid
33b3449621
tab: remap deprecated options in tabs.
...
If a deprecated option is found in a tab, rename it to the new option.
2014-10-19 13:58:52 +01:00
Mike McQuaid
d0240e7cd4
formula: add spec deprecated_option DSL.
2014-10-19 13:58:52 +01:00
Mike McQuaid
02e10beb7c
Add deprecated_option to software_spec.
...
Allows remapping one option name to another and updates build options
and flags accordingly.
2014-10-19 13:58:52 +01:00
Mike McQuaid
da0a65356d
Add DeprecatedOption class.
...
Used to capture options that are being renamed.
2014-10-19 13:58:52 +01:00
Stian Eikeland
91ec31cdd4
gifsicle 1.86
...
Closes Homebrew/homebrew#33307 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-10-19 01:59:09 -05:00
Jack Nagel
dfb7657557
Compare patchlevels numerically rather than lexically
...
Fixes Homebrew/homebrew#32960 .
2014-10-06 13:55:23 -05:00
J. Brandt Buckley
f2fa551291
Use pcap fixture with complete packets
...
The existing `test.pcap` consists of just one Ethernet frame, so it's missing TCP/IP headers.
This updated file is a full HTTP GET request and reply.
Relates to Homebrew/homebrew#32852
Closes Homebrew/homebrew#32869 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-02 11:02:30 -07:00
Jack Nagel
aaaab946ec
Make inreplace errors fatal
...
Closes Homebrew/homebrew#32649 .
Closes Homebrew/homebrew#32703 .
2014-09-28 01:11:31 -05:00
Jack Nagel
54ac9c560a
Revert "Add test for inreplace sub!/gsub! with hash argument"
...
Ruby 1.8 doesn't support this, so we don't officially support it (yet).
This reverts commit 7d5eb6f5e2da42c1378fefb63fde55cae97a3909.
2014-09-27 23:53:01 -05:00
Jack Nagel
14594741e1
Add test for inreplace sub!/gsub! with hash argument
2014-09-27 23:31:08 -05:00
Jack Nagel
9f9f5bf31c
Add test for inreplace sub!/gsub!
2014-09-27 23:31:08 -05:00
Jack Nagel
701691c261
Add missing test for inreplace with tabs
2014-09-26 22:01:00 -05:00
Jack Nagel
c0cb58177e
Fix formatting in inreplace tests
2014-09-26 21:55:26 -05:00
Jack Nagel
04dae13ae7
Replace CompilerQueue with predetermined priority lists
2014-09-18 15:50:54 -05:00
Jack Nagel
3bbc9998a5
Rewrite debugger to remove monkeypatches and use of call/cc
2014-09-18 14:16:07 -05:00
Jack Nagel
f3b7c3236b
Consistently call name on formula instead of relying on to_s
2014-09-14 11:19:30 -05:00
Mike McQuaid
9531ecc72a
Use bundler for test gem dependencies.
...
Closes Homebrew/homebrew#31986 .
References Homebrew/homebrew#31981 .
2014-09-10 13:29:14 +01:00
Mike McQuaid
f4d87d41be
test.pcap: add pcap fixture.
2014-09-08 09:05:23 +01:00
Jack Nagel
356c391dfb
Rewrite fails_with tests as tests for CompilerFailure
2014-08-31 13:40:51 -05:00
Jack Nagel
372945299d
Use the accessors to update the test double
2014-08-30 23:41:12 -05:00
Jack Nagel
8b338bd534
Test CompilerSelector against a SoftwareSpec instance
2014-08-30 23:38:48 -05:00
Jack Nagel
eec50f0a9a
Remove unnecessary empty block
2014-08-30 23:25:46 -05:00
Jack Nagel
2e2c348944
Test fails_with against spec objects
2014-08-30 23:25:46 -05:00
Jack Nagel
842b051aa7
Test against real CompilerFailure objects
2014-08-30 23:11:02 -05:00
Jack Nagel
b4a634903e
Remove obsolete nil check
2014-08-30 23:11:02 -05:00
Jack Nagel
309001fd9f
Fix tests on 1.8
2014-08-30 02:01:17 -05:00
Jack Nagel
750d7bb2c8
Options internals no longer need to support switches
2014-08-29 19:38:32 -05:00
Jack Nagel
b14851903c
Add a method for retrieving only flags from ARGV
2014-08-29 19:38:32 -05:00
Jack Nagel
6885f588d0
Move handling of leading dashes to Options.create
2014-08-29 19:38:32 -05:00
Jack Nagel
e18da89f3c
Implement ARGV.named in terms of ARGV.options_only
2014-08-28 22:11:08 -05:00
Jack Nagel
f7f8ca45fc
Remove to_str from Option
...
We no longer need implicit conversion of options to strings.
2014-08-27 14:08:14 -05:00
Jack Nagel
af3d551de7
Options no longer needs deep-copy semantics
...
Follow-up to 23d90a6a187a57fbdf4eeac146993e3b37c3d4d9.
2014-08-20 19:05:49 -05:00
Jack Nagel
c7444d34f7
Use the as_flags method instead of map
2014-08-14 01:00:23 -05:00
Jack Nagel
2311181b54
Remove Options#concat
2014-08-13 18:16:25 -05:00
Jack Nagel
d443089270
Simplify tab test setup
2014-08-13 17:15:03 -05:00
Jack Nagel
eed8af9b80
Drop unnecessary parens in tests
2014-08-13 17:14:55 -05:00
Jack Nagel
e40143efd5
Drop unnecessary to_a calls in options tests
2014-08-13 11:09:57 -05:00
Jack Nagel
268cd143be
Replace Options.coerce with an alternate constructor
2014-08-13 11:09:57 -05:00