From 86c813474840c04c44494244089d80d872ebf4d5 Mon Sep 17 00:00:00 2001 From: Jonny007-MKD Date: Thu, 30 Oct 2014 08:49:07 +0100 Subject: [PATCH] Added framework for testing --- testing/test.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 testing/test.sh diff --git a/testing/test.sh b/testing/test.sh new file mode 100644 index 0000000..15715b4 --- /dev/null +++ b/testing/test.sh @@ -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; \ No newline at end of file