2434 Commits

Author SHA1 Message Date
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
Jack Nagel
094c184b12 Remove unused branches from Options.coerce 2014-08-13 11:09:57 -05:00
Jack Nagel
a980938773 Options is no longer used directly by BuildOptions 2014-08-13 11:09:57 -05:00
Jack Nagel
c5a888fb3a Always pass an Options instance to the BuildOptions constructor 2014-08-13 11:09:57 -05:00
Mike McQuaid
9f14262d92 Revert "Always pass an Options instance to the BuildOptions constructor"
This reverts commit e143bcef259ca76b2124e6e73bd9bdf872418723.

Closes Homebrew/homebrew#31557.
Closes Homebrew/homebrew#31559.
Closes Homebrew/homebrew#31561.
Closes Homebrew/homebrew#31562.
2014-08-13 08:46:17 +01:00
Mike McQuaid
1e852a8f3f Revert "Options is no longer used directly by BuildOptions"
This reverts commit 1c05bc0238aa1abf7d5542b8afa11ead2bee66a8.
2014-08-13 08:45:07 +01:00
Mike McQuaid
00d1bb8d12 Revert "Remove unused branches from Options.coerce"
This reverts commit cee42c339e7632eab15111e2c4e6c121ace6f9e2.
2014-08-13 08:45:07 +01:00