Hash :
70438be2
Author :
Date :
2014-12-03T10:55:23
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
#!/bin/sh
function pause() {
read -p "$*"
}
function pass() {
if [ -d "$1/Build/Debug" ]; then
cd $1/Build/Debug
echo "Testing:" $1
echo "\033]0;Testing: $1\007"
"./$@"
cd ../../..
pause "Press any key to continue..."
fi
}
function randomfile() {
fcount=($1/*.*)
fcount=${#fcount[@]}
fpick=$(($RANDOM % $fcount))
for d in $1/*.*; do
if [[ $fpick -eq 0 ]]; then
RETURN=$d
echo $d
return
fi
fpick=$(($fpick - 1))
done
}
function testspecial() {
if [ -d "$1/Build/Debug" ]; then
cd $1/Build/Debug
randomfile $2
cd ../../..
pass $1 $RETURN
fi
}
# change to directory above command file
cd `dirname $0`/..
cd tests
pass "checkkeys"
pass "loopwave"
#pass "testatomic"
pass "testaudioinfo"
pass "testautomation"
pass "testdraw2"
pass "testchessboard"
pass "testerror"
pass "testfile"
pass "testfilesystem"
pass "testgamecontroller"
pass "testgesture"
pass "testgl2"
pass "testgles"
pass "testhaptic"
pass "testiconv"
pass "testime"
pass "testintersection"
pass "testjoystick"
pass "testkeys"
#pass "testloadso"
pass "testlock"
pass "testmessage"
#pass "testmultiaudio"
pass "testnative"
pass "testoverlay2"
pass "testplatform"
pass "testpower"
pass "testrelative"
pass "testrendercopyex"
pass "testrendertarget"
pass "testresample" "sample.wav" "newsample.wav" "44100"
pass "testrumble"
pass "testscale"
pass "testsem" 1
pass "testshader"
#testspecial "testshape" ./shapes
#testspecial "testshape" ./shapes
#testspecial "testshape" ./shapes
pass "testsprite2"
pass "testspriteminimal"
pass "teststreaming"
pass "testthread"
pass "testtimer"
pass "testver"
pass "testwm2"
pass "torturethread"
cd ..