mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 08:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			292 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			292 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| make || exit
 | |
| 
 | |
| mkdir -p output
 | |
| 
 | |
| PROGS=*_test
 | |
| 
 | |
| for a in $PROGS; do
 | |
|     if [ -f "output/$a.out" ]; then
 | |
|         echo "Running $a:"
 | |
|         ./$a | diff output/$a.out -
 | |
|     else
 | |
|         echo "Creating $a.out"
 | |
|         ./$a > "output/$a.out"
 | |
|         git add "output/$a.out"
 | |
|     fi
 | |
| done
 |