Fix test.sh to use prepare script
This commit is contained in:
committed by
Gunnar Morling
parent
7a617720ad
commit
7def69eee7
5
test.sh
5
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
|
||||
|
||||
Reference in New Issue
Block a user