axmol/tools/jenkins-scripts/mac/ios/test-ios-release.sh

25 lines
538 B
Bash
Raw Normal View History

#!bin/bash
#This script is used to finish a ios test automation.
compileresult=0
cd ..
2012-12-21 15:05:22 +08:00
cp -r iOS_SikuliTest.sikuli ../../../samples/Cpp/TestCpp/proj.ios
cd ../../../samples/Cpp/TestCpp/proj.ios
sdk_num=$(sed -n '1p' sdk_num.txt)
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' directory_name.txt)
echo $a
./iphonesim launch $(pwd)/build/${a}/TestCpp.app &
$SIKULI_HOME/sikuli-ide.sh -r $(pwd)/iOS_SikuliTest.sikuli
done
#Sikuli Test success!
echo Sikuli Test Success!
#git checkout -f
#git clean -df -x
exit 0
#End