summaryrefslogtreecommitdiffstatsci
path: root/scripts
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-09-09 06:44:45 +0200
committerj-p <jp_bruyere@hotmail.com>2021-05-10 08:46:18 +0200
commite6217d1d71839eed502500e43458d82a3b3ef7d3 (patch)
treeba6aef2a1ba700b489fad244ed3d7d84376e35df /scripts
parent2c8bd7262907121cff1f6510ce77b95dc4cffd91 (diff)
tests improvments, print test config header, cmd args parsing
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/batchTests.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/scripts/batchTests.sh b/scripts/batchTests.sh
index b880572..b7c8d02 100755
--- a/scripts/batchTests.sh
+++ b/scripts/batchTests.sh
@@ -52,14 +52,20 @@ logfile="$logdir/log-$today.txt"
git log -n 1 --pretty=format:'%h %d %s%n%n' > $logfile
-echo "_____________________________________________________________________________________________________" >> $logfile
-echo "| Test File Name | Sub Test | Iter | SIZE | FPS | Average | Median | Sigma |" >> $logfile
-echo "|-----------------|---------------------------|------|------|---------|---------|---------|---------|" >> $logfile
+files=( test_* )
+./"${files[0]}" -p >> $logfile
+
+echo "__________________________________________________________________________________________________________" >> $logfile
+echo "| N° | Test File Name | Sub Test | Iter | Size | FPS | Average | Median | Sigma |" >> $logfile
+echo "|----|-----------------|---------------------------|------|------|---------|---------|---------|---------|" >> $logfile
for file in test_*
do
if [[ -x "$file" ]]
then
- ./"$file" $ITERATIONS $SIZE >> $logfile
+ printf "."
+ ./"$file" -i $ITERATIONS -s $SIZE -q >> $logfile
fi
done
-echo "_____________________________________________________________________________________________________" >> $logfile
+echo "__________________________________________________________________________________________________________" >> $logfile
+echo
+echo "results writen in $logfile"