moved test scripts to tools directory

This commit is contained in:
Bart Cools 2014-07-01 14:32:24 +02:00
parent 4a13eebc00
commit d8f65cf3fa
2 changed files with 6 additions and 6 deletions

View File

@ -16,11 +16,11 @@ avg_speed = {}
avg_top = {}
total_rescued = {}
tests = len(listdir('../batch'))-1
for file in listdir('../batch'):
tests = len(listdir('../../batch'))-1
for file in listdir('../../batch'):
if (file == '.DS_Store'):
continue
f = open('../batch/'+file,'r')
f = open('../../batch/'+file,'r')
'''

View File

@ -1,6 +1,6 @@
#!/bin/bash
mkdir -p ../batch
mkdir -p ../../batch
#tracks='snowmountain city lighthouse olivermath hacienda startrack farm zengarden'
#karts='gnu tux sara elephpant'
laps=4
@ -9,10 +9,10 @@ laps=4
#for kart in $karts; do
for run in {901..1500}; do
for lap in $laps; do
./cmake_build/bin/supertuxkart.app/Contents/MacOS/supertuxkart -R --mode=3 --numkarts=4 --track=snowmountain --with-profile --profile-laps=4 --kart=gnu --ai=sara,tux,elephpant --no-graphics > /dev/null
./../cmake_build/bin/supertuxkart.app/Contents/MacOS/supertuxkart -R --mode=3 --numkarts=4 --track=snowmountain --with-profile --profile-laps=4 --kart=gnu --ai=sara,tux,elephpant --no-graphics > /dev/null
#./cmake_build/bin/supertuxkart.app/Contents/MacOS/supertuxkart -R --mode=3 --numkarts=4 --track=$track --with-profile --profile-laps=$lap --kart=$kart --ai=beastie,beastie,beastie --no-graphics > /dev/null
#grep "profile" ~/Library/Application\ Support/SuperTuxKart/stdout.log > ../batch/$kart.$track.$run.txt
grep "profile" ~/Library/Application\ Support/SuperTuxKart/stdout.log > ../batch/faceoff.$run.txt
grep "profile" ~/Library/Application\ Support/SuperTuxKart/stdout.log > ../../batch/faceoff.$run.txt
done
done
# done