mirror of
				https://github.com/qurator-spk/ocrd-galley.git
				synced 2025-10-30 02:34:13 +01:00 
			
		
		
		
	✨ Add a simple test runner and move tests to subdirectory
This commit is contained in:
		
							parent
							
								
									b01d2ca6a1
								
							
						
					
					
						commit
						7b5f593709
					
				
					 14 changed files with 24 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								test.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										24
									
								
								test.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| count_ok=0 | ||||
| count_failed=0 | ||||
| 
 | ||||
| for test in tests/*.sh; do | ||||
|     echo "== $test" | ||||
|     $test && result=$? || result=$? | ||||
| 
 | ||||
|     if [[ $result = 0 ]]; then | ||||
|         echo "✔" | ||||
|         count_ok=$((count_ok+1)) | ||||
|     else | ||||
|         echo "❌" | ||||
|         count_failed=$((count_failed+1)) | ||||
|     fi | ||||
|     echo | ||||
| done | ||||
| 
 | ||||
| echo "$count_ok ok, $count_failed failed" | ||||
| if [[ $count_failed -gt 0 ]]; then | ||||
|     exit 1 | ||||
| fi | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue