Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
375efe0945
Remove LLVM-GCC support. ( #252 )
...
At this point it's never a good compiler to use so let's just remove it.
2016-05-22 09:40:08 +01: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
Jack Nagel
04dae13ae7
Replace CompilerQueue with predetermined priority lists
2014-09-18 15:50:54 -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
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
06305e6211
Switch to Minitest
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
c319eb1f01
Decouple CompilerSelector from MacOS, clean up tests
2014-06-11 21:23:05 -05:00
Jack Nagel
d18a4001b4
Adjust tests for ac1fd380759ebe9aa3fe42465cd5d38b209c32b5
2013-12-03 22:23:14 -06:00
Misty De Meo
15a3ae3d28
Fix CompilerSelector test for llvm
...
Update test to reflect that llvm-gcc should take precedence over
non-Apple GCC.
2013-09-10 13:08:03 -07:00
Misty De Meo
ef1d9c0cd0
Implement fails_with for non-Apple compilers
...
This adds support for non-Apple GCC compilers in the fails_with code.
A fails_with block for a non-Apple compiler looks like:
fails_with :gcc => '4.8.1' do
cause 'Foo'
end
Non-Apple compilers don't have build numbers, so compiler failures are
based on version strings instead.
Internally non-Apple compilers can be distinguished because they are
passed around as strings instead of symbols.
In addition, this alters the priority list for compilers, with the
following changes:
* Apple GCC 4.2 and LLVM-GCC swap positions, with GCC now taking
priority. (Maybe LLVM-GCC should just go away.)
* Non-Apple GCC compilers are ranked below GCC 4.2 but above LLVM-GCC
and Apple GCC 4.0.
2013-09-01 13:19:13 -07:00
Jack Nagel
0f314f9808
Remove unused variable
2013-06-12 17:25:29 -05:00
Jack Nagel
0147ac70c6
Fix CompilerSelector tests on systems that have gcc 4.0
2013-05-21 22:44:23 -05:00
Misty De Meo
4fdbb2d685
CompilerSelector: raise when no compatible compiler
...
This replaces the old behaviour of falling back to the original
compiler with no messaging.
Fixes Homebrew/homebrew#19170 .
Fixes mistydemeo/tigerbrew#45 .
2013-05-20 23:25:15 -05:00
Jack Nagel
2f49fd07b1
Isolate compiler selector tests
2013-04-02 13:19:04 -05:00