diff options
| author | j-p <jp_bruyere@hotmail.com> | 2020-06-01 02:20:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-01 02:20:05 +0200 |
| commit | b1970a05b2958e4ea59814420811a2d0b35b3fec (patch) | |
| tree | f58110e718b503fbecb3c73cd36e704d93a5f032 /scripts | |
| parent | 4c51f16d54206b82be2a2ab94accdfa6f1d84833 (diff) | |
Win warn clean (#38)
* windows warnings cleaning
* use always fixed FONT_FILE_NAME_MAX_SIZE for allocating file name
* batch tests
* debug draw even odd fill + stroke with curves
* clean linux warnings
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/batchTests.sh | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/scripts/batchTests.sh b/scripts/batchTests.sh new file mode 100755 index 0000000..b880572 --- /dev/null +++ b/scripts/batchTests.sh @@ -0,0 +1,65 @@ +#!/bin/bash +#!/bin/bash +today=`date '+%Y%m%d-%HH%MM%S'`; +logdir=`pwd` + +POSITIONAL=() +while [[ $# -gt 0 ]] +do +key="$1" + +case $key in + -i|--iterations) + ITERATIONS="$2" + shift # past argument + shift # past value + ;; + -s|--size) + SIZE="$2" + shift # past argument + shift # past value + ;; + -d|--directory) + TESTDIR="$2" + shift # past argument + shift # past value + ;; + *) # unknown option + POSITIONAL+=("$1") # save it in an array for later + shift # past argument + ;; +esac +done +set -- "${POSITIONAL[@]}" # restore positional parameters + +if test -z "$TESTDIR" +then + TESTDIR="." +fi +if test -z "$ITERATIONS" +then + ITERATIONS="100" +fi +if test -z "$SIZE" +then + SIZE="100" +fi + + +cd $TESTDIR + +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 +for file in test_* +do + if [[ -x "$file" ]] + then + ./"$file" $ITERATIONS $SIZE >> $logfile + fi +done +echo "_____________________________________________________________________________________________________" >> $logfile |