aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_hardware.rb
blob: 2bea5387d52128841e6aea67e7d6303526c04948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "testing_env"
require "hardware"

class HardwareTests < Homebrew::TestCase
  def test_hardware_cpu_type
    assert_includes [:intel, :ppc, :dunno], Hardware::CPU.type
  end

  if Hardware::CPU.intel?
    def test_hardware_intel_family
      families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell, :skylake, :dunno]
      assert_includes families, Hardware::CPU.family
    end
  end
end