|  |  | @ -1,15 +1,16 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | #!/bin/bash |  |  |  | #!/bin/bash | 
			
		
	
		
		
			
				
					
					|  |  |  | set -e |  |  |  | set -e | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | # NOTE: this may be not an up-to-date list of tests and checks, see .github/workflows/test.yaml for the current list of tests | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | SETUP="cd /tmp/openpilot && " |  |  |  | SETUP="cd /tmp/openpilot && " | 
			
		
	
		
		
			
				
					
					|  |  |  | BUILD="cd /tmp/openpilot && scons -c && scons -j$(nproc) && " |  |  |  | BUILD="cd /tmp/openpilot && scons -c && scons -j$(nproc) && " | 
			
		
	
		
		
			
				
					
					|  |  |  | RUN="docker run --shm-size 1G --rm tmppilot /bin/bash -c" |  |  |  | RUN="docker run --shm-size 1G --rm tmppilot /bin/bash -c" | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | docker build -t tmppilot -f Dockerfile.openpilot . |  |  |  | docker build -t tmppilot -f Dockerfile.openpilot . | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | $RUN "$SETUP cd /tmp/openpilot/selfdrive/test/ && ./test_fingerprints.py" |  |  |  | $RUN "$SETUP cd selfdrive/test/ && ./test_fingerprints.py" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | $RUN "$SETUP ./flake8_openpilot.sh" |  |  |  | $RUN "$SETUP git init && git add -A && pre-commit run --all" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | $RUN "$SETUP ./pylint_openpilot.sh" |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | $RUN "$BUILD python -m unittest discover common && \ |  |  |  | $RUN "$BUILD python -m unittest discover common && \ | 
			
		
	
		
		
			
				
					
					|  |  |  |              python -m unittest discover opendbc/can && \ |  |  |  |              python -m unittest discover opendbc/can && \ | 
			
		
	
		
		
			
				
					
					|  |  |  |              python -m unittest discover selfdrive/boardd && \ |  |  |  |              python -m unittest discover selfdrive/boardd && \ | 
			
		
	
	
		
		
			
				
					|  |  | 
 |