diff options
| author | Alexander Yastrebov <yastrebov.alex@gmail.com> | 2024-01-10 03:44:22 +0100 |
|---|---|---|
| committer | Gunnar Morling <gunnar.morling@googlemail.com> | 2024-01-10 14:29:18 +0100 |
| commit | 7def69eee7eb5f6167dc1046617a22a085709dfa (patch) | |
| tree | 43427b06f45250357cc99e6a5ac5ff696b2c60ef /test.sh | |
| parent | 7a617720ad20ce4b22bc2d03c7387b3f33fc4803 (diff) | |
Fix test.sh to use prepare script
Diffstat (limited to 'test.sh')
| -rwxr-xr-x | test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
