mirror of
				https://github.com/Jonny007-MKD/OTR-SaneRename
				synced 2025-11-03 16:15:35 +01:00 
			
		
		
		
	Added framework for testing
This commit is contained in:
		
							parent
							
								
									de6ab0957f
								
							
						
					
					
						commit
						86c8134748
					
				
					 1 changed files with 17 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								testing/test.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								testing/test.sh
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					srArgs="-d"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					files=(		"Inspector_Barnaby_14.10.27_21-45_zdfneo_95_TVOON_DE.mpg.HQ.avi");
 | 
				
			||||||
 | 
					results=(	"Inspector.Barnaby..S14E03..Sonstwas.HQ.avi");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					i=0
 | 
				
			||||||
 | 
					while(i < ${#files[@]}); do
 | 
				
			||||||
 | 
						echo ${files[$i]};
 | 
				
			||||||
 | 
						result="$(../saneRenamix.sh $srArgs -s -f ${files[$i]})";
 | 
				
			||||||
 | 
						if [ "$result" != "${results[$i]}" ]; then
 | 
				
			||||||
 | 
							echo "${files[$i]} -> $result"
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
						i=$(($i+1));
 | 
				
			||||||
 | 
					done;
 | 
				
			||||||
		Loading…
	
		Reference in a new issue