addition of python script to parse test output

This commit is contained in:
Bart Cools 2014-05-21 10:08:02 +02:00
parent 26967a41db
commit a3c751728b
2 changed files with 8 additions and 1 deletions

6
batch.py Normal file
View File

@ -0,0 +1,6 @@
from os import listdir
for file in listdir('../batch'):
f = open('../batch/'+file,'r')
for c in f.readlines():
print(c)

View File

@ -10,6 +10,7 @@ for run in {1..50}; do
for laps in {2..7}; do
./cmake_build/bin/supertuxkart.app/Contents/MacOS/supertuxkart -R --mode=3 --numkarts=$num --with-profile --profile-laps=$laps --no-graphics > /dev/null
grep "profile" ~/Library/Application\ Support/SuperTuxKart/stdout.log > ../batch/$run.$num.$laps.txt
python batch.py
done
done
done