You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					19 lines
				
				366 B
			
		
		
			
		
	
	
					19 lines
				
				366 B
			| 
								 
											6 years ago
										 
									 | 
							
								#!/usr/bin/env sh
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								# Loop over all hardware types:
							 | 
						||
| 
								 | 
							
								#   HW_TYPE_UNKNOWN 0U
							 | 
						||
| 
								 | 
							
								#   HW_TYPE_WHITE_PANDA 1U
							 | 
						||
| 
								 | 
							
								#   HW_TYPE_GREY_PANDA 2U
							 | 
						||
| 
								 | 
							
								#   HW_TYPE_BLACK_PANDA 3U
							 | 
						||
| 
								 | 
							
								#   HW_TYPE_PEDAL 4U
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								#   HW_TYPE_UNO 5U
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								# Make sure test fails if one HW_TYPE fails
							 | 
						||
| 
								 | 
							
								set -e
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								for hw_type in 0 1 2 3 4 5
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								do
							 | 
						||
| 
								 | 
							
								  echo "Testing HW_TYPE: $hw_type"
							 | 
						||
| 
								 | 
							
								  HW_TYPE=$hw_type python -m unittest discover .
							 | 
						||
| 
								 | 
							
								done
							 |