| 
									
										
										
										
											2015-08-03 13:09:07 +01:00
										 |  |  | require "testing_env" | 
					
						
							|  |  |  | require "hardware" | 
					
						
							| 
									
										
										
										
											2010-02-18 12:00:07 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-18 20:32:51 -05:00
										 |  |  | class HardwareTests < Homebrew::TestCase | 
					
						
							| 
									
										
										
										
											2010-02-18 12:00:07 -08:00
										 |  |  |   def test_hardware_cpu_type | 
					
						
							| 
									
										
										
										
											2014-06-11 13:03:06 -05:00
										 |  |  |     assert_includes [:intel, :ppc], Hardware::CPU.type | 
					
						
							| 
									
										
										
										
											2010-02-18 12:00:07 -08:00
										 |  |  |   end | 
					
						
							| 
									
										
										
										
											2012-06-20 00:51:01 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-18 12:00:07 -08:00
										 |  |  |   def test_hardware_intel_family | 
					
						
							| 
									
										
										
										
											2016-02-03 04:06:08 -08:00
										 |  |  |     families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell, :skylake] | 
					
						
							| 
									
										
										
										
											2014-06-11 13:03:06 -05:00
										 |  |  |     assert_includes families, Hardware::CPU.family | 
					
						
							| 
									
										
										
										
											2014-06-13 16:32:26 -05:00
										 |  |  |   end if Hardware::CPU.intel? | 
					
						
							| 
									
										
										
										
											2012-04-18 15:43:42 -05:00
										 |  |  | end |