aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorAlexander Yastrebov <yastrebov.alex@gmail.com>2024-01-10 03:44:22 +0100
committerGunnar Morling <gunnar.morling@googlemail.com>2024-01-10 14:29:18 +0100
commit7def69eee7eb5f6167dc1046617a22a085709dfa (patch)
tree43427b06f45250357cc99e6a5ac5ff696b2c60ef /test.sh
parent7a617720ad20ce4b22bc2d03c7387b3f33fc4803 (diff)
Fix test.sh to use prepare script
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