aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.sh b/test.sh
index 4bec036..1eb25b1 100755
--- a/test.sh
+++ b/test.sh
@@ -22,6 +22,10 @@ if [ -z "$1" ]; then
exit 1
fi
+if [ -f "./prepare_$1.sh" ]; then
+ "./prepare_$1.sh"
+fi
+
for sample in $(ls src/test/resources/samples/*.txt); do
echo "Validating calculate_average_$1.sh -- $sample"
@@ -30,4 +34,5 @@ for sample in $(ls src/test/resources/samples/*.txt); do
diff <("./calculate_average_$1.sh") ${sample%.txt}.out
done
+
rm measurements.txt