
Note that no Mac hardware using a Kaby Lake processor has been released yet, so do not add it to the equivalent list for macOS.
16 lines
455 B
Ruby
16 lines
455 B
Ruby
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, :kabylake, :dunno]
|
|
assert_includes families, Hardware::CPU.family
|
|
end
|
|
end
|
|
end
|