mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
14 lines
428 B
Ruby
14 lines
428 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
|
|
|
|
def test_hardware_intel_family
|
|
families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell, :skylake, :dunno]
|
|
assert_includes families, Hardware::CPU.family
|
|
end if Hardware::CPU.intel?
|
|
end
|