diff options
| author | Misty De Meo | 2013-03-17 13:30:12 -0500 |
|---|---|---|
| committer | Misty De Meo | 2013-03-23 13:40:18 -0500 |
| commit | 2476801613a293d7810c5faf2e3383a653b1389c (patch) | |
| tree | 1b86ee2f82286aa45d325b4768a37eedbc7b4889 /Library/Homebrew/test | |
| parent | 21f566b662e1643da1ee9baf1ee8f3eb5293c019 (diff) | |
| download | brew-2476801613a293d7810c5faf2e3383a653b1389c.tar.bz2 | |
Hardware: separate out CPU values into CPU module
* CPU functions now exist in Hardware::CPU
* Added compatibility functions in compat/hardware_compat.rb
* Names are less specific to Mac hardware, e.g. CPU.family instead of
Hardware.intel_family
* Hardware::CPU.family works for both Intel and PowerPC
* New helper methods on CPU, like .sse4? and .altivec?
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_hardware.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_hardware.rb b/Library/Homebrew/test/test_hardware.rb index ab55826f9..2f9787c9c 100644 --- a/Library/Homebrew/test/test_hardware.rb +++ b/Library/Homebrew/test/test_hardware.rb @@ -5,13 +5,13 @@ class HardwareTests < Test::Unit::TestCase # these will raise if we don't recognise your mac, but that prolly # indicates something went wrong rather than we don't know def test_hardware_cpu_type - assert [:intel, :ppc].include?(Hardware.cpu_type) + assert [:intel, :ppc].include?(Hardware::CPU.type) end def test_hardware_intel_family if Hardware.cpu_type == :intel assert [:core, :core2, :penryn, :nehalem, - :arrandale, :sandybridge, :ivybridge].include?(Hardware.intel_family) + :arrandale, :sandybridge, :ivybridge].include?(Hardware::CPU.family) end end end |
