mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			325 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			325 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| go test || exit
 | |
| for action in $@; do go $action; done
 | |
| 
 | |
| mkdir -p bin
 | |
| find regretable examples/* ext/* -maxdepth 0 -type d | while read d; do
 | |
| 	(cd $d
 | |
| 	go build -o ../../bin/$(basename $d)
 | |
| 	find *_test.go -maxdepth 0 2>/dev/null|while read f;do
 | |
| 		for action in $@; do go $action; done
 | |
| 		go test
 | |
| 		break
 | |
| 	done)
 | |
| done
 |