remove other non-functional jenkins scripts

This commit is contained in:
heliclei 2013-12-30 22:03:22 +08:00
parent 7696a5f2cc
commit 62a0828f5b
57 changed files with 0 additions and 4532 deletions

View File

@ -1,52 +0,0 @@
#------------------------------------------------
# Monkeyrunner Test Report
# 10/08/2012
#------------------------------------------------
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email.MIMEMultipart import MIMEMultipart
from email.utils import COMMASPACE,formatdate
from email import Encoders
from email.header import Header
import smtplib,email,os,sys
if os.path.exists(os.getcwd()+'\\monkeyrunner_Error.log') or os.path.exists(os.getcwd()+'/monkeyrunner_Error.log'):
print "Sending Monkeyrunner Test Report..."
mail_from = 'redmine@cocos2d-x.org' #where the mail from
mail_to = ['739657621@qq.com','yangguangzaidongji@hotmail.com','yangguangzaidongji@gmail.com']
to_string =''
for item in mail_to:
to_string += item +','
mail_subject = "Monkeyrunner Test Report"
msg = MIMEMultipart()
#msg = MIMEText('body')
mail_attachment = 'monkeyrunner_Error.log'
#msg = "\nhell"
print mail_to
username = 'redmine@cocos2d-x.org'
password = 'cocos2d-x.org'
msg["From"] = mail_from
msg["To"] = to_string
msg["Subject"] = mail_subject
msg["Date"] = formatdate(localtime=True)
mail_body = "Monkeyrunner Test Finish! See attachment for logs."
msg.attach(MIMEText(mail_body))
#Add attachment.
fp = open(mail_attachment,"rb")
part = MIMEBase("application", "octet-stream")
part.set_payload(fp.read())
fp.close()
Encoders.encode_base64(part)
part.add_header("Content-Disposition", "attachment; filename=%s" % mail_attachment)
msg.attach(part)
#Send email.
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username,password)
server.sendmail(mail_from, mail_to, msg.as_string())
print 'Eamil success!'
server.quit()

View File

@ -1,20 +0,0 @@
# This file is used to override default values used by the Ant build system.
#
# This file must be checked in Version Control Systems, as it is
# integral to the build system of your project.
# This file is only used by the Ant script.
# You can use this to override default values such as
# 'source.dir' for the location of your java source folder and
# 'out.dir' for the location of your output folder.
# You can also use it define how the release builds are signed by declaring
# the following properties:
# 'key.store' for the location of your keystore and
# 'key.alias' for the name of the key to use.
# The password will be asked during the build when you use the 'release' target.
key.store=C:/.android/debug.keystore
key.alias=androiddebugkey
key.store.password=android
key.alias.password=android
#proguard.config=proguard.cfg
# Project target.
target=android-8

View File

@ -1,138 +0,0 @@
#!/bin/bash
#This script is used to finish a android automated compiler.
#You should make sure have finished the environment setting.
#Here are the environment variables you should set.
#$COCOS2DX_ROOT $ANDROID_SDK_ROOT $ANDROID_NDK_ROOT $NDK_ROOT
antcompile()
{
#Make sure the original target is android-8
sed '/target=/s/=.*$/=android-8/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
#Android ant build(debug ,API level:8)
ant debug
#If build failed,make sure the Jenkins could get the errorlevel.
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-debug.apk TestCpp-debug-8.apk
cd ..
fi
#Change API level.(API level:10)
sed '/target=/s/=.*$/=android-10/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant debug
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-debug.apk TestCpp-debug-10.apk
cd ..
fi
#Change API level.(API level:11)
sed '/target=/s/=.*$/=android-11/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant debug
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-debug.apk TestCpp-debug-11.apk
cd ..
fi
#Change API level.(API level:12)
sed '/target=/s/=.*$/=android-12/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant debug
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-debug.apk TestCpp-debug-12.apk
cd ..
fi
#Change API level.(API level:13)
sed '/target=/s/=.*$/=android-13/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant debug
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-debug.apk TestCpp-debug-13.apk
cd ..
fi
#After all test versions completed,changed current API level to the original.(API level:8)
sed '/target=/s/=.*$/=android-8/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
}
#record the relevant catalog
compileresult=0
CUR=$(pwd)
cd ../../../..
ROOT=$(pwd)
IsTestCpp=1
#copy configuration files to target.
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Cpp/TestCpp/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Cpp/TestCpp/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Cpp/TestCpp/proj.android
cd $ROOT/samples/Cpp/TestCpp/proj.android
sh rootconfig-mac.sh TestCpp
sh build_native.sh
#update android project configuration files
cd $ROOT/samples/Cpp/TestCpp
android update project -p proj.android
cd proj.android
antcompile
IsTestCpp=0
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Cpp/HelloCpp/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Cpp/HelloCpp/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Cpp/HelloCpp/proj.android
cd $ROOT/samples/Cpp/HelloCpp/proj.android
sh rootconfig-mac.sh HelloCpp
sh build_native.sh
cd $ROOT/samples/Cpp/HelloCpp
android update project -p proj.android
cd proj.android
antcompile
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Lua/HelloLua/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Lua/HelloLua/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Lua/HelloLua/proj.android
cd $ROOT/samples/Lua/HelloLua/proj.android
sh rootconfig-mac.sh HelloLua
sh build_native.sh
cd $ROOT/samples/Lua/HelloLua
android update project -p proj.android
cd proj.android
antcompile
#return the compileresult.
cd $ROOT
if [ $compileresult != 0 ]; then
# git checkout -f
# git clean -df -x
exit 1
else
# git checkout -f
# git clean -df -x
exit 0
fi

View File

@ -1,142 +0,0 @@
#!/bin/bash
#This script is used to finish a android automated compiler.
#You should make sure have finished the environment setting.
#Here are the environment variables you should set.
#$COCOS2DX_ROOT $ANDROID_SDK_ROOT $ANDROID_NDK_ROOT $NDK_ROOT
antcompile()
{
#Make sure the original target is android-8
sed '/target=/s/=.*$/=android-8/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
#Android ant build(debug ,API level:8)
ant release
#If build failed,make sure the Jenkins could get the errorlevel.
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-release.apk TestCpp-release-8.apk
cd ..
fi
#Change API level.(API level:10)
sed '/target=/s/=.*$/=android-10/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant release
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-release.apk TestCpp-release-10.apk
cd ..
fi
#Change API level.(API level:11)
sed '/target=/s/=.*$/=android-11/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant release
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-release.apk TestCpp-release-11.apk
cd ..
fi
#Change API level.(API level:12)
sed '/target=/s/=.*$/=android-12/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant release
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-release.apk TestCpp-release-12.apk
cd ..
fi
#Change API level.(API level:13)
sed '/target=/s/=.*$/=android-13/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant release
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-release.apk TestCpp-release-13.apk
cd ..
fi
#After all test versions completed,changed current API level to the original.(API level:8)
sed '/target=/s/=.*$/=android-8/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
}
#record the relevant catalog
compileresult=0
CUR=$(pwd)
cd ../../../..
ROOT=$(pwd)
IsTestCpp=1
#copy configuration files to target.
sed -i '' '14d' $CUR/ant.properties
gsed -i "14 i\\key.store=$ANDROID_HOME/debug.keystore" $CUR/ant.properties
cp $CUR/../debug.keystore $ANDROID_HOME
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Cpp/TestCpp/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Cpp/TestCpp/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Cpp/TestCpp/proj.android
cd samples/Cpp/TestCpp/proj.android
sh rootconfig-mac.sh TestCpp
sh build_native.sh
#update android project configuration files
cd ..
android update project -p proj.android
cd proj.android
antcompile
IsTestCpp=0
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Cpp/HelloCpp/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Cpp/HelloCpp/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Cpp/HelloCpp/proj.android
cd ../../Cpp/HelloCpp/proj.android
sh rootconfig-mac.sh HelloCpp
sh build_native.sh
cd ..
android update project -p proj.android
cd proj.android
antcompile
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Lua/HelloLua/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Lua/HelloLua/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Lua/HelloLua/proj.android
cd ../../Lua/HelloLua/proj.android
sh rootconfig-mac.sh HelloLua
sh build_native.sh
cd ..
android update project -p proj.android
cd proj.android
antcompile
#return the compileresult.
cd ../../..
if [ $compileresult != 0 ]; then
# git checkout -f
# git clean -df -x
exit 1
else
# git checkout -f
# git clean -df -x
exit 0
fi

View File

@ -1,96 +0,0 @@
#!/bin/bash
#This script is used to finish a android automated compiler.
#You should make sure have finished the environment setting.
#Here are the environment variables you should set.
#$COCOS2DX_ROOT $ANDROID_SDK_ROOT $ANDROID_NDK_ROOT $NDK_ROOT
antcompile()
{
#Change API level.(API level:14)
sed '/target=/s/=.*$/=android-14/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant debug
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-debug.apk TestCpp-debug-14.apk
cd ..
fi
#Change API level.(API level:15)
sed '/target=/s/=.*$/=android-15/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant debug
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-debug.apk TestCpp-debug-15.apk
cd ..
fi
#After all test versions completed,changed current API level to the original.(API level:8)
sed '/target=/s/=.*$/=android-8/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
}
#record the relevant catalog
compileresult=0
CUR=$(pwd)
cd ../../../..
ROOT=$(pwd)
IsTestCpp=1
#copy configuration files to target.
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Cpp/TestCpp/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Cpp/TestCpp/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Cpp/TestCpp/proj.android
cd samples/Cpp/TestCpp/proj.android
sh rootconfig-mac.sh TestCpp
sh build_native.sh
#update android project configuration files
cd ..
android update project -p proj.android
cd proj.android
antcompile
IsTestCpp=0
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Cpp/HelloCpp/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Cpp/HelloCpp/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Cpp/HelloCpp/proj.android
cd ../../Cpp/HelloCpp/proj.android
sh rootconfig-mac.sh HelloCpp
sh build_native.sh
cd ..
android update project -p proj.android
cd proj.android
antcompile
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Lua/HelloLua/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Lua/HelloLua/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Lua/HelloLua/proj.android
cd ../../Lua/HelloLua/proj.android
sh rootconfig-mac.sh HelloLua
sh build_native.sh
cd ..
android update project -p proj.android
cd proj.android
antcompile
#return the compileresult.
cd ../../..
if [ $compileresult != 0 ]; then
# git checkout -f
# git clean -df -x
exit 1
else
# git checkout -f
# git clean -df -x
exit 0
fi

View File

@ -1,100 +0,0 @@
#!/bin/bash
#This script is used to finish a android automated compiler.
#You should make sure have finished the environment setting.
#Here are the environment variables you should set.
#$COCOS2DX_ROOT $ANDROID_SDK_ROOT $ANDROID_NDK_ROOT $NDK_ROOT
antcompile()
{
#Change API level.(API level:14)
sed '/target=/s/=.*$/=android-14/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant release
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-release.apk TestCpp-release-14.apk
cd ..
fi
#Change API level.(API level:15)
sed '/target=/s/=.*$/=android-15/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
ant release
compileresult=$[$compileresult+$?]
if [ $IsTestCpp == 1 ] && [ $? == 0 ]
then
cd bin
mv TestCpp-release.apk TestCpp-release-15.apk
cd ..
fi
#After all test versions completed,changed current API level to the original.(API level:8)
sed '/target=/s/=.*$/=android-8/' ant.properties > anttmp.properties
cp anttmp.properties ant.properties
rm anttmp.properties
}
#record the relevant catalog
compileresult=0
CUR=$(pwd)
cd ../../../..
ROOT=$(pwd)
IsTestCpp=1
#copy configuration files to target.
sed -i '' '14d' $CUR/ant.properties
gsed -i "14 i\\key.store=$ANDROID_HOME/debug.keystore" $CUR/ant.properties
cp $CUR/../debug.keystore $ANDROID_HOME
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Cpp/TestCpp/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Cpp/TestCpp/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Cpp/TestCpp/proj.android
cd samples/Cpp/TestCpp/proj.android
sh rootconfig-mac.sh TestCpp
sh build_native.sh
#update android project configuration files
cd ..
android update project -p proj.android
cd proj.android
antcompile
IsTestCpp=0
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Cpp/HelloCpp/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Cpp/HelloCpp/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Cpp/HelloCpp/proj.android
cd ../../Cpp/HelloCpp/proj.android
sh rootconfig-mac.sh HelloCpp
sh build_native.sh
cd ..
android update project -p proj.android
cd proj.android
antcompile
cp $ROOT/tools/jenkins_scripts/ant.properties $ROOT/samples/Lua/HelloLua/proj.android
cp $ROOT/tools/jenkins_scripts/build.xml $ROOT/samples/Lua/HelloLua/proj.android
cp $ROOT/tools/jenkins_scripts/mac/rootconfig-mac.sh $ROOT/samples/Lua/HelloLua/proj.android
cd ../../Lua/HelloLua/proj.android
sh rootconfig-mac.sh HelloLua
sh build_native.sh
cd ..
android update project -p proj.android
cd proj.android
antcompile
#return the compileresult.
cd ../../..
if [ $compileresult != 0 ]; then
# git checkout -f
# git clean -df -x
exit 1
else
# git checkout -f
# git clean -df -x
exit 0
fi

View File

@ -1,190 +0,0 @@
#!/bin/bash
# Generate JS bindings for Cocos2D-X
# ... using Android NDK system headers
# ... and automatically update submodule references
# ... and push these changes to remote repos
# Dependencies
#
# For bindings generator:
# (see ../../../tojs/genbindings.sh
# ... for the defaults used if the environment is not customized)
#
# * $PYTHON_BIN
# * $CLANG_ROOT
# * $NDK_ROOT
#
# For automatically pushing changes:
#
# * REMOTE_AUTOGEN_BINDINGS_REPOSITORY
# * REMOTE_COCOS2DX_REPOSITORY
# * Note : Ensure you have commit access to above repositories
# * COCOS2DX_PULL_BASE
# * hub
# * see http://defunkt.io/hub/
# * Ensure that hub has an OAuth token to REMOTE_COCOS2DX_REPOSITORY
# * see http://defunkt.io/hub/hub.1.html#CONFIGURATION
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
COCOS2DX_ROOT="$DIR"/../../../..
GENERATED_WORKTREE="$COCOS2DX_ROOT"/scripting/javascript/bindings/generated
if [ -z "${HUB+aaa}" ]; then
# ... if HUB is not set, use "$HOME/bin/hub"
HUB="$HOME/bin/hub"
fi
# Update cocos2d-x repo
# It needs to be updated in Jenkins command before executing this script.
#pushd "$COCOS2DX_ROOT"
#git checkout -f
#git checkout gles20
#git pull upstream gles20
#rm -rf "$GENERATED_WORKTREE"
#git submodule update --init
#popd
# Update submodule of auto-gen JSBinding repo.
pushd "$GENERATED_WORKTREE"
git checkout -f
git clean -fdx
git fetch origin
git checkout -B master origin/master
# Delete all directories and files except '.git' and 'README'.
ls -a | grep -E -v ^\[.\]\{1,2\}$ | grep -E -v ^\.git$ | grep -E -v ^README$ | xargs -I{} rm -rf {}
popd
# Exit on error
set -e
# 1. Generate JS bindings
COCOS2DX_ROOT="$COCOS2DX_ROOT" /bin/bash ../../../tojs/genbindings.sh
echo
echo Bindings generated successfully
echo
if [ -z "${REMOTE_AUTOGEN_BINDINGS_REPOSITORY+aaa}" ]; then
echo
echo Environment variable must be set REMOTE_AUTOGEN_BINDINGS_REPOSITORY
echo This script expects to automatically push changes
echo to this repo
echo example
echo REMOTE_AUTOGEN_BINDINGS_REPOSITORY=\"git@github.com:folecr/cocos2dx-autogen-bindings.git\"
echo REMOTE_AUTOGEN_BINDINGS_REPOSITORY=\"\$HOME/test/cocos2dx-autogen-bindings\"
echo
echo Exiting with failure.
echo
exit 1
fi
if [ -z "${COMMITTAG+aaa}" ]; then
# ... if COMMITTAG is not set, use this machine's hostname
COMMITTAG=`hostname -s`
fi
echo
echo Using "'$COMMITTAG'" in the commit messages
echo
ELAPSEDSECS=`date +%s`
echo Using "$ELAPSEDSECS" in the branch names for pseudo-uniqueness
GENERATED_BRANCH=autogeneratedbindings_"$ELAPSEDSECS"
# 2. In JSBindings repo, Check if there are any files that are different from the index
pushd "$GENERATED_WORKTREE"
# Run status to record the output in the log
git status
echo
echo Comparing with origin/master ...
echo
# Don't exit on non-zero return value
set +e
git diff --stat --exit-code origin/master
DIFF_RETVAL=$?
if [ $DIFF_RETVAL -eq 0 ]
then
echo
echo "No differences in generated files"
echo "Exiting with success."
echo
exit 0
else
echo
echo "Generated files differ from origin/master. Continuing."
echo
fi
# Exit on error
set -e
# 3. In JSBindings repo, Check out a branch named "autogeneratedbindings" and commit the auto generated bindings to it
git checkout -b "$GENERATED_BRANCH"
git add --verbose .
git add --verbose -u .
git commit --verbose -m "$COMMITTAG : autogenerated bindings"
# 4. In JSBindings repo, Push the commit with generated bindings to "master" of the auto generated bindings repository
git push --verbose "$REMOTE_AUTOGEN_BINDINGS_REPOSITORY" "$GENERATED_BRANCH":master
popd
if [ -z "${REMOTE_COCOS2DX_REPOSITORY+aaa}" ]; then
echo
echo Environment variable is not set REMOTE_COCOS2DX_REPOSITORY
echo This script will NOT automatically push changes
echo unless this variable is set.
echo example
echo REMOTE_COCOS2DX_REPOSITORY=\"git@github.com:cocos2d/cocos2d-x.git\"
echo REMOTE_COCOS2DX_REPOSITORY=\"\$HOME/test/cocos2d-x\"
echo
echo Exiting with success.
echo
exit 0
fi
COCOS_BRANCH=updategeneratedsubmodule_"$ELAPSEDSECS"
pushd "${DIR}"
# 5. In Cocos2D-X repo, Checkout a branch named "updategeneratedsubmodule" Update the submodule reference to point to the commit with generated bindings
cd "${COCOS2DX_ROOT}"
git add scripting/javascript/bindings/generated
git checkout -b "$COCOS_BRANCH"
git commit -m "$COMMITTAG : updating submodule reference to latest autogenerated bindings"
# 6. In Cocos2D-X repo, Push the commit with updated submodule to "gles20" of the cocos2d-x repository
git push "$REMOTE_COCOS2DX_REPOSITORY" "$COCOS_BRANCH"
if [ -z "${COCOS2DX_PULL_BASE+aaa}" ]; then
echo
echo Environment variable is not set COCOS2DX_PULL_BASE
echo This script will NOT automatically generate pull requests
echo unless this variable is set.
echo example
echo COCOS2DX_PULL_BASE=\"cocos2d/cocos2d-x:master\"
echo COCOS2DX_PULL_BASE=\"username/repository:branch\"
echo
echo Exiting with success.
echo
exit 0
fi
# 7.
${HUB} pull-request "$COMMITTAG : updating submodule reference to latest autogenerated bindings" -b "$COCOS2DX_PULL_BASE" -h "$COCOS_BRANCH"
popd

View File

@ -1,87 +0,0 @@
#!/bin/bash
#This script is used to finished a android automated compiler in Mac OS.
#You'd better add "export PATH=$PATH:$ANDROID_HOME/platform-tools" and "export
#PATH=$PATH:$ANDROID_HOME/tools" to you bash_profile,it will be very convenient.
#Copy monkeyrunner python script to tools directory.
cd ../..
CUR=$(pwd)
cp $CUR/Monkeyrunner_TestCpp.py $ANDROID_HOME/tools
cp $CUR/ReportManager.py $ANDROID_HOME/tools
cd ../..
PROJECT_HOME=$(pwd)
#cp -r samples/TestCpp/proj.android/obj $ANDROID_HOME/tools
cd samples/Cpp/TestCpp/proj.android/bin
#Copy test apk to tools directory.
CUR=$(pwd)
cp $CUR/TestCpp-debug-8.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-debug-10.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-debug-11.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-debug-12.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-debug-13.apk $ANDROID_HOME/tools
#Enter tools directory.
cd $ANDROID_HOME/tools
#If monkeyrunner test failed,it automatically exit and make ERRORLEVEL nonzero.
#Running monkeyrunner test(debug,API level:8)
mv TestCpp-debug-8.apk TestCpp-debug.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-debug.apk
#Running monkeyrunner test(debug,API level:10)
mv TestCpp-debug-10.apk TestCpp-debug.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-debug.apk
#Running monkeyrunner test(debug,API level:11)
mv TestCpp-debug-11.apk TestCpp-debug.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-debug.apk
#Running monkeyrunner test(debug,API level:12)
mv TestCpp-debug-12.apk TestCpp-debug.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-debug.apk
#Running monkeyrunner test(debug,API level:13)
mv TestCpp-debug-13.apk TestCpp-debug.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-debug.apk
rm Monkeyrunner_TestCpp.py
rm ReportManager.py
#Monkeyrunner success!
echo Monkeyrunner Test Success!
#Clean project files.
cd $PROJECT_HOME
git checkout -f
git clean -df -x
#End

View File

@ -1,86 +0,0 @@
#!/bin/bash
#This script is used to finished a android automated compiler in Mac OS.
#You'd better add "export PATH=$PATH:$ANDROID_HOME/platform-tools" and "export
#PATH=$PATH:$ANDROID_HOME/tools" to you bash_profile,it will be very convenient.
#Copy monkeyrunner python script to tools directory.
cd ../..
CUR=$(pwd)
cp $CUR/Monkeyrunner_TestCpp.py $ANDROID_HOME/tools
cp $CUR/ReportManager.py $ANDROID_HOME/tools
cd ../..
PROJECT_HOME=$(pwd)
cd samples/Cpp/TestCpp/proj.android/bin
#Copy test apk to tools directory.
CUR=$(pwd)
cp $CUR/TestCpp-release-8.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-release-10.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-release-11.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-release-12.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-release-13.apk $ANDROID_HOME/tools
#Enter tools directory.
cd $ANDROID_HOME/tools
#If monkeyrunner test failed,it automatically exit and make ERRORLEVEL nonzero.
#Running monkeyrunner test(release,API level:8)
mv TestCpp-release-8.apk TestCpp-release.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-release.apk
#Running monkeyrunner test(release,API level:10)
mv TestCpp-release-10.apk TestCpp-release.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-release.apk
#Running monkeyrunner test(release,API level:11)
mv TestCpp-release-11.apk TestCpp-release.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-release.apk
#Running monkeyrunner test(release,API level:12)
mv TestCpp-release-12.apk TestCpp-release.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-release.apk
#Running monkeyrunner test(release,API level:13)
mv TestCpp-release-13.apk TestCpp-release.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-release.apk
rm Monkeyrunner_TestCpp.py
rm ReportManager.py
#Monkeyrunner success!
echo Monkeyrunner Test Success!
#Clean project files.
cd $PROJECT_HOME
git checkout -f
git clean -df -x
#End

View File

@ -1,56 +0,0 @@
#!/bin/bash
#This script is used to finished a android automated compiler in Mac OS.
#You'd better add "export PATH=$PATH:$ANDROID_HOME/platform-tools" and "export
#PATH=$PATH:$ANDROID_HOME/tools" to you bash_profile,it will be very convenient.
#Copy monkeyrunner python script to tools directory.
cd ../..
CUR=$(pwd)
cp $CUR/Monkeyrunner_TestCpp.py $ANDROID_HOME/tools
cp $CUR/ReportManager.py $ANDROID_HOME/tools
cd ../..
PROJECT_HOME=$(pwd)
cd samples/Cpp/TestCpp/proj.android/bin
#Copy test apk to tools directory.
CUR=$(pwd)
cp $CUR/TestCpp-debug-14.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-debug-15.apk $ANDROID_HOME/tools
#Enter tools directory.
cd $ANDROID_HOME/tools
#If monkeyrunner test failed,it automatically exit and make ERRORLEVEL nonzero.
#Running monkeyrunner test(debug,API level:14)
mv TestCpp-debug-14.apk TestCpp-debug.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-debug.apk
#Running monkeyrunner test(debug,API level:15)
mv TestCpp-debug-15.apk TestCpp-debug.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-debug.apk
rm Monkeyrunner_TestCpp.py
rm ReportManager.py
#Monkeyrunner success!
echo Monkeyrunner Test Success!
#Clean project files.
cd $PROJECT_HOME
git checkout -f
git clean -df -x
#End

View File

@ -1,56 +0,0 @@
#!/bin/bash
#This script is used to finished a android automated compiler in Mac OS.
#You'd better add "export PATH=$PATH:$ANDROID_HOME/platform-tools" and "export
#PATH=$PATH:$ANDROID_HOME/tools" to you bash_profile,it will be very convenient.
#Copy monkeyrunner python script to tools directory.
cd ../..
CUR=$(pwd)
cp $CUR/Monkeyrunner_TestCpp.py $ANDROID_HOME/tools
cp $CUR/ReportManager.py $ANDROID_HOME/tools
cd ../..
PROJECT_HOME=$(pwd)
cd samples/Cpp/TestCpp/proj.android/bin
#Copy test apk to tools directory.
CUR=$(pwd)
cp $CUR/TestCpp-release-14.apk $ANDROID_HOME/tools
cp $CUR/TestCpp-release-15.apk $ANDROID_HOME/tools
#Enter tools directory.
cd $ANDROID_HOME/tools
#If monkeyrunner test failed,it automatically exit and make ERRORLEVEL nonzero.
#Running monkeyrunner test(release,API level:14)
mv TestCpp-release-14.apk TestCpp-release.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-release.apk
#Running monkeyrunner test(release,API level:15)
mv TestCpp-release-15.apk TestCpp-release.apk
monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if [ $? != 0 ]; then
python ReportManager.py
exit 1
fi
rm TestCpp-release.apk
rm Monkeyrunner_TestCpp.py
rm ReportManager.py
#Monkeyrunner success!
echo Monkeyrunner Test Success!
#Clean project files.
cd $PROJECT_HOME
git checkout -f
git clean -df -x
#End

View File

@ -1,573 +0,0 @@
<html>
<head>
<style type="text/css">
.sikuli-code {
font-size: 20px;
font-family: "Osaka-mono", Monospace;
line-height: 1.5em;
display:table-cell;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
width: 99%; /* remove horizontal scroll-bar when viewing in IE7 */
}
.sikuli-code img {
vertical-align: middle;
margin: 2px;
border: 1px solid #ccc;
padding: 2px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 1px 1px 1px gray;
-webkit-box-shadow: 1px 1px 2px gray;
}
.kw {
color: blue;
}
.skw {
color: rgb(63, 127, 127);
}
.str {
color: rgb(128, 0, 0);
}
.dig {
color: rgb(128, 64, 0);
}
.cmt {
color: rgb(200, 0, 200);
}
h2 {
display: inline;
font-weight: normal;
}
.info {
border-bottom: 1px solid #ddd;
padding-bottom: 5px;
margin-bottom: 20px;
display: none;
}
a {
color: #9D2900;
}
body {
font-family: "Trebuchet MS", Arial, Sans-Serif;
}
</style>
</head>
<body>
<div class="info">
<h2>iOS_SikuliTest.sikuli</h2> <a href="iOS_SikuliTest.zip">(Download this script)</a>
</div>
<pre class="sikuli-code">
setAutoWaitTimeout(<span class="dig">10000</span>)
val = getFindFailedResponse()
<span class="kw">if</span> val == ABORT:
<span class="kw">print</span> <span class="str">"Abort"</span>
<span class="kw">if</span> val == SKIP:
<span class="kw">print</span> <span class="str">"SKIP"</span>
<span class="kw">if</span> val == PROMPT:
<span class="kw">print</span> <span class="str">"PROMPT"</span>
<span class="kw">if</span> val == RETRY:
<span class="kw">print</span> <span class="str">"RETRY"</span>
<span class="kw">def</span> common_test(a,b,c):
<span class="kw">for</span> i <span class="kw">in</span> range(a,b):
<span class="skw">wait</span>(c)
<span class="kw">if</span> exists(<img src="Next.png" />):
<span class="skw">click</span>(<img src="Next.png" />)
<span class="cmt">#ActionTest
</span><span class="skw">click</span>(<img src="ActionsTest.png" />)
<span class="kw">print</span>(<span class="str">"Run ActionsTest"</span>)
common_test(<span class="dig">1</span>,<span class="dig">28</span>,<span class="dig">1.0</span>)
<span class="skw">click</span>(Pattern(<img src="MainMenu_Common.png" />).targetOffset(-<span class="dig">93</span>,<span class="dig">0</span>))
common_test(<span class="dig">1</span>,<span class="dig">3</span>,<span class="dig">3.0</span>)
common_test(<span class="dig">1</span>,<span class="dig">6</span>,<span class="dig">1.0</span>)
<span class="kw">print</span>(<span class="str">"ActionsTest finished!"</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="cmt">#TransitionsTest
</span><span class="skw">click</span>(<img src="TransitionsTest.png" />)
<span class="kw">print</span>(<span class="str">"Run TransitionsTest"</span>)
common_test(<span class="dig">1</span>,<span class="dig">27</span>,<span class="dig">1.0</span>)
<span class="kw">print</span>(<span class="str">"TransitionsTest finished!"</span>)
<span class="skw">click</span>(Pattern(<img src="1346297215212.png" />).targetOffset(<span class="dig">49</span>,<span class="dig">0</span>))
<span class="cmt">#ActionsProgressTest
</span><span class="skw">click</span>(<img src="ActionsProgressTest.png" />)
<span class="kw">print</span>(<span class="str">"Run ActionsProgressTest"</span>)
common_test(<span class="dig">1</span>,<span class="dig">8</span>,<span class="dig">1.0</span>)
<span class="kw">print</span>(<span class="str">"ActionsProgressTest finished!"</span>)
<span class="skw">click</span>(<img src="MainMenu_ActionsProgress.png" />)
<span class="cmt">#EffectsTest
</span><span class="skw">click</span>(<img src="EffectsTest.png" />)
<span class="kw">print</span>(<span class="str">"Run EffectsTest"</span>)
common_test(<span class="dig">1</span>,<span class="dig">22</span>,<span class="dig">3.0</span>)
<span class="kw">print</span>(<span class="str">"Effects finished!"</span>)
<span class="skw">click</span>(<img src="MainMenu_Effects.png" />)
<span class="cmt">#ClickAndMoveTest
</span><span class="kw">print</span>(<span class="str">"Run ClickAndMoveTest"</span>)
<span class="skw">click</span>(<img src="CickAndMoveTest.png" />)
<span class="skw">wait</span>(<span class="dig">4</span>)
<span class="skw">click</span>(<img src="ClickAndMove_Click.png" />)
<span class="skw">click</span>(Pattern(<img src="ClickAndMove_Click.png" />).targetOffset(<span class="dig">200</span>,-<span class="dig">3</span>))
<span class="skw">click</span>(<img src="MainMenu_ClickAndMove.png" />)
<span class="kw">print</span>(<span class="str">"ClickAndMoveTest finished!"</span>)
<span class="cmt">#RotateWorldTest
</span><span class="kw">print</span>(<span class="str">"Run RotateWorldTest"</span>)
<span class="skw">click</span>(<img src="RotateWorldTest.png" />)
<span class="skw">wait</span>(<span class="dig">4</span>)
<span class="skw">click</span>(<img src="MainMenu_ActionsProgress.png" />)
<span class="kw">print</span>(<span class="str">"RotateWorldTest finished!"</span>)
<span class="cmt">#ParticleTest
</span><span class="kw">print</span>(<span class="str">"Run ParticleTest"</span>)
<span class="skw">click</span>(<img src="ParticleTest.png" />)
common_test(<span class="dig">1</span>,<span class="dig">43</span>,<span class="dig">2.0</span>)
<span class="kw">print</span>(<span class="str">"ParticleTest finished!"</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="skw">dragDrop</span>(Pattern(<img src="ParticleTest-1.png" />).targetOffset(<span class="dig">91</span>,<span class="dig">17</span>), Pattern(<img src="Acti0nsTest.png" />).targetOffset(<span class="dig">93</span>,-<span class="dig">19</span>))
<span class="cmt">#ActionEaseTest
</span><span class="kw">print</span>(<span class="str">"Run ActionEaseTest"</span>)
<span class="skw">click</span>(<img src="ActionsEaseTest.png" />)
common_test(<span class="dig">1</span>,<span class="dig">14</span>,<span class="dig">2.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"ActionEaseTest finished!"</span>)
<span class="cmt">#MotionStreakTest
</span><span class="kw">print</span>(<span class="str">"Run MotionStreakTest"</span>)
<span class="skw">click</span>(<img src="MotionStreakTest.png" />)
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(Pattern(<img src="MotionStreak_ChangeFastMode.png" />).targetOffset(<span class="dig">20</span>,<span class="dig">0</span>))
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">dragDrop</span>(<img src="Motion_Drag1.png" />, <img src="Motion_Drag2.png" />)
<span class="skw">click</span>(Pattern(<img src="MotionStreak_ChangeFastMode.png" />).targetOffset(<span class="dig">20</span>,<span class="dig">0</span>))
<span class="skw">dragDrop</span>(<img src="Motion_Drag1.png" />, <img src="Motion_Drag2.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">click</span>(Pattern(<img src="MotionStreak_ChangeFastMode.png" />).targetOffset(<span class="dig">20</span>,<span class="dig">0</span>))
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"MotionStreakTest finished!"</span>)
<span class="cmt">#DrawPimitivesTest
</span><span class="kw">print</span>(<span class="str">"Run DrawPimitivesTest"</span>)
<span class="skw">click</span>(<img src="DrawPrimitivesTest.png" />)
<span class="kw">if</span> exists(<img src="DrawPrimitives.png" />):
<span class="kw">print</span>(<span class="str">"DrawPrimitivesTest success!"</span>)
<span class="kw">print</span>(<span class="str">"DrawPimitivesTest finished!"</span>)
<span class="skw">click</span>(<img src="MainMenu_DrawPimitives.png" />)
<span class="cmt">#NodeTest
</span><span class="kw">print</span>(<span class="str">"Run NodeTest"</span>)
<span class="skw">click</span>(<img src="NodeTest.png" />)
common_test(<span class="dig">1</span>,<span class="dig">14</span>,<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"NodeTest finished!"</span>)
<span class="cmt">#TouchesTest
</span><span class="kw">print</span>(<span class="str">"Run TouchesTest"</span>)
<span class="skw">click</span>(<img src="TouchesTest.png" />)
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"TouchesTest finished!"</span>)
<span class="cmt">#MenuTest
</span><span class="kw">print</span>(<span class="str">"Run MenuTest"</span>)
<span class="skw">click</span>(<img src="MenuTest.png" />)
<span class="skw">click</span>(<img src="MenuTest_AtlasSprite.png" />)
<span class="skw">click</span>(<img src="MenuTest_HighScores.png" />)
<span class="skw">click</span>(<img src="MenuTest_Play.png" />)
<span class="skw">click</span>(<img src="MenuTest_Eitems.png" />)
<span class="skw">click</span>(<img src="MenuTest_Config.png" />)
<span class="skw">click</span>(<img src="MenuTest_Back.png" />)
<span class="skw">click</span>(<img src="MenuTest_Quit.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"MenuTest finished!"</span>)
<span class="cmt">#ActionManagerTest
</span><span class="kw">print</span>(<span class="str">"Run ActionManagerTest"</span>)
<span class="skw">click</span>(<img src="ActionManaerTest.png" />)
common_test(<span class="dig">1</span>,<span class="dig">5</span>,<span class="dig">3.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"ActionManagerTest finished!"</span>)
<span class="cmt">#LayerTest
</span><span class="kw">print</span>(<span class="str">"Run LayerTest"</span>)
<span class="skw">click</span>(<img src="LayerTest.png" />)
<span class="skw">dragDrop</span>(<img src="Layer_Drag1.png" />, <img src="Layer_Drag2.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">dragDrop</span>(<img src="Layer_Drag3.png" />, <img src="Layer_Drag4.png" />)
common_test(<span class="dig">1</span>,<span class="dig">3</span>,<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"LayerTest finished!"</span>)
<span class="skw">dragDrop</span>(Pattern(<img src="LaverTest-1.png" />).targetOffset(<span class="dig">98</span>,<span class="dig">6</span>), Pattern(<img src="Acti0nsEaseT.png" />).targetOffset(<span class="dig">106</span>,-<span class="dig">11</span>))
<span class="cmt">#SceneTest
</span><span class="kw">print</span>(<span class="str">"Run SceneTest"</span>)
<span class="skw">click</span>(<img src="SceneTest.png" />)
<span class="skw">click</span>(<img src="Scene_pushScene.png" />)
<span class="skw">click</span>(<img src="Scene_relaceScene.png" />)
<span class="skw">click</span>(<img src="Scene_popToRoot.png" />)
<span class="skw">click</span>(<img src="Scene_Quit.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"SceneTest finished!"</span>)
<span class="cmt">#ParallaxTest
</span><span class="kw">print</span>(<span class="str">"Run ParallaxTest"</span>)
<span class="skw">click</span>(<img src="ParaIIaxTest.png" />)
<span class="skw">wait</span>(<span class="dig">3.0</span>)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">dragDrop</span>(<img src="Parallax_Drag1.png" />, <img src="Parallax_Drag2.png" />)
<span class="skw">click</span>(<img src="MainMenu_Parallax.png" />)
<span class="kw">print</span>(<span class="str">"ParallaxTest finished!"</span>)
<span class="cmt">#TileMapTest
</span><span class="kw">print</span>(<span class="str">"Run TileMapTest"</span>)
<span class="skw">click</span>(<img src="TileMapTest.png" />)
common_test(<span class="dig">1</span>,<span class="dig">21</span>,<span class="dig">2.0</span>)
<span class="skw">click</span>(<img src="MainMenu_TileMap.png" />)
<span class="kw">print</span>(<span class="str">"TileMapTest finished!"</span>)
<span class="cmt">#IntervalTest
</span><span class="kw">print</span>(<span class="str">"Run IntervalTest"</span>)
<span class="skw">click</span>(<img src="IntervaITest.png" />)
<span class="skw">wait</span>(<span class="dig">2.0</span>)
<span class="skw">click</span>(<img src="Interval_pause.png" />)
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="Interval_pause.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"IntervalTest finished!"</span>)
<span class="cmt">#ChipmunkAccelTouchTest
</span><span class="kw">print</span>(<span class="str">"Run ChipmunkAccelTouchTest"</span>)
<span class="skw">click</span>(<img src="ChipmunkAccelTouchTest.png" />)
<span class="kw">for</span> i <span class="kw">in</span> range(<span class="dig">1</span>,<span class="dig">3</span>):
<span class="skw">click</span>(<img src="ChipmunkAccelTouchTest_Click.png" />)
<span class="kw">for</span> i <span class="kw">in</span> range(<span class="dig">1</span>,<span class="dig">3</span>):
<span class="skw">click</span>(<img src="it.png" />)
<span class="skw">wait</span>(<span class="dig">3.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"ChipmunkAccelTouchTest finished!"</span>)
<span class="cmt">#LabelTest
</span><span class="kw">print</span>(<span class="str">"Run LabelTest"</span>)
<span class="skw">click</span>(<img src="LabeITest.png" />)
<span class="skw">wait</span>(<span class="dig">1.0</span>)
common_test(<span class="dig">1</span>,<span class="dig">26</span>,<span class="dig">0.5</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"LabelTest finished!"</span>)
<span class="cmt">#TextInputTest
</span><span class="kw">print</span>(<span class="str">"Run TextInputTest"</span>)
<span class="skw">click</span>(<img src="TextInputTest.png" />)
<span class="skw">type</span>(<img src="TextInput_herefor.png" />, <span class="str">"1q~&lt;?;\@"</span>)
<span class="skw">click</span>(<img src="TextInput_return.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">type</span>(<img src="TextInput_herefor.png" />, <span class="str">"1q~&lt;?;\@"</span>)
<span class="skw">click</span>(<img src="TextInput_return.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"TextInputTest finished!"</span>)
<span class="skw">dragDrop</span>(Pattern(<img src=".png" />).targetOffset(<span class="dig">100</span>,<span class="dig">14</span>), Pattern(<img src="I_yUIICDI.png" />).targetOffset(<span class="dig">75</span>,-<span class="dig">8</span>))
<span class="cmt">#SpriteTest
</span><span class="kw">print</span>(<span class="str">"Run SpriteTest"</span>)
<span class="skw">click</span>(<img src="SpriteTest.png" />)
<span class="kw">for</span> i <span class="kw">in</span> range(<span class="dig">1</span>,<span class="dig">3</span>):
<span class="skw">click</span>(<img src="SpriteTest_SpriteClick1.png" />)
<span class="kw">for</span> j <span class="kw">in</span> range(<span class="dig">1</span>,<span class="dig">3</span>):
<span class="skw">click</span>(<img src="SpriteTest_SpriteClick2.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="kw">for</span> i <span class="kw">in</span> range(<span class="dig">1</span>,<span class="dig">3</span>):
<span class="skw">click</span>(<img src="SpriteTest_SpriteClick1.png" />)
<span class="kw">for</span> j <span class="kw">in</span> range(<span class="dig">1</span>,<span class="dig">3</span>):
<span class="skw">click</span>(<img src="SpriteTest_SpriteClick2.png" />)
common_test(<span class="dig">1</span>,<span class="dig">100</span>,<span class="dig">0.5</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"SpriteTest finished!"</span>)
<span class="cmt">#SchdulerTest
</span><span class="kw">print</span>(<span class="str">"Run SchdulerTest"</span>)
<span class="skw">click</span>(<img src="SchduIerTest.png" />)
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">dragDrop</span>(Pattern(<img src="SchdulerTest_timeScale.png" />).targetOffset(<span class="dig">23</span>,<span class="dig">0</span>),Pattern(<img src="SchdulerTest_timeScale.png" />).targetOffset(-<span class="dig">50</span>,<span class="dig">0</span>))
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">dragDrop</span>(<img src="Schduler_custom.png" />,Pattern(<img src="Schduler_custom.png" />).targetOffset(<span class="dig">58</span>,<span class="dig">0</span>))
common_test(<span class="dig">1</span>,<span class="dig">11</span>,<span class="dig">1</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"SchdulerTest finished!"</span>)
<span class="cmt">#RenderTextureTest
</span><span class="kw">print</span>(<span class="str">"Run RenderTextureTest"</span>)
<span class="skw">click</span>(<img src="RenderTextureTest.png" />)
<span class="skw">dragDrop</span>(<img src="RenderTexture_Drag1.png" />, <img src="RenderTexture_Drag2.png" />)
<span class="skw">dragDrop</span>(<img src="RenderTexture_Drag3.png" />, <img src="RenderTexture_Drag4.png" />)
<span class="skw">click</span>(<img src="SaveImage.png" />)
<span class="skw">click</span>(<img src="Clear.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">click</span>(<img src="RenderTexture_vertexZclick1.png" />)
<span class="skw">click</span>(<img src="RenderTexture_vertexZclick2.png" />)
<span class="skw">click</span>(<img src="RenderTexture_vertexZclick3.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">wait</span>(<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"RenderTextureTest finished!"</span>)
<span class="cmt">#Texture2DTest
</span><span class="kw">print</span>(<span class="str">"Run Texture2DTest"</span>)
<span class="skw">click</span>(<img src="Texture2DTest.png" />)
common_test(<span class="dig">1</span>,<span class="dig">36</span>,<span class="dig">0.5</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"Texture2DTest finished!"</span>)
<span class="cmt">#Box2dTest
</span><span class="kw">print</span>(<span class="str">"Run Box2dTest"</span>)
<span class="skw">click</span>(<img src="Box2dTest.png" />)
<span class="kw">for</span> i <span class="kw">in</span> range(<span class="dig">1</span>,<span class="dig">6</span>):
<span class="skw">click</span>(<img src="Box2dTest_Click1.png" />)
<span class="kw">for</span> i <span class="kw">in</span> range(<span class="dig">1</span>,<span class="dig">6</span>):
<span class="skw">click</span>(<img src="Box2dTest_Click2.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"Box2dTest finished!"</span>)
<span class="cmt">#Box2dTestBed
</span><span class="kw">print</span>(<span class="str">"Run Box2dTestBed"</span>)
<span class="skw">click</span>(<img src="Box2dTestBed.png" />)
common_test(<span class="dig">1</span>,<span class="dig">36</span>,<span class="dig">2.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"Box2dTestBed finished!"</span>)
<span class="cmt">#EffectAdvancedTest
</span><span class="kw">print</span>(<span class="str">"Run EffectAdvancedTest"</span>)
<span class="skw">click</span>(<img src="EffectAdvancedTest.png" />)
common_test(<span class="dig">1</span>,<span class="dig">6</span>,<span class="dig">1.0</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"EffectAdvancedTest finished!"</span>)
<span class="cmt">#Accelerometer
</span><span class="kw">print</span>(<span class="str">"Run Accelerometer"</span>)
<span class="skw">click</span>(<img src="Accelerometer.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"Accelerometer finished!"</span>)
<span class="skw">dragDrop</span>(Pattern(<img src="AccalaromeLI.png" />).targetOffset(<span class="dig">120</span>,<span class="dig">2</span>), Pattern(<img src="SmiteTest.png" />).targetOffset(<span class="dig">130</span>,-<span class="dig">9</span>))
<span class="cmt">#KeypadTest
</span><span class="kw">print</span>(<span class="str">"Run KeypadTest"</span>)
<span class="skw">click</span>(<img src="KeypadTest.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"KeypadTest finished!"</span>)
<span class="cmt">#CocosDenshionTest
</span><span class="kw">print</span>(<span class="str">"Run CocosDenshionTest"</span>)
<span class="skw">click</span>(<img src="CocosDenshionTest.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_play.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_stop.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_pause.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_resume.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_rewind.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_is.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_playeffect.png" />)
<span class="skw">dragDrop</span>(Pattern(<img src="playeffectrr.png" />).targetOffset(-<span class="dig">130</span>,<span class="dig">15</span>), Pattern(<img src="Dlavbackqrou.png" />).targetOffset(-<span class="dig">140</span>,-<span class="dig">15</span>))
<span class="skw">click</span>(<img src="CocosDenshionTest_playeffect.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_stop.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_unload.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_addback.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_subback.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_addeff.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_subeff.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_pause.png" />)
<span class="skw">dragDrop</span>(Pattern(<img src="pauseeffect.png" />).targetOffset(-<span class="dig">120</span>,<span class="dig">6</span>), Pattern(<img src="playeffectre.png" />).targetOffset(-<span class="dig">130</span>,-<span class="dig">9</span>))
<span class="skw">click</span>(<img src="CocosDenshionTest_addeff.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_subeff.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_pauseeffect.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_resumeff.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_pauseall.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_resumeall.png" />)
<span class="skw">click</span>(<img src="CocosDenshionTest_stop.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"CocosDenshionTest finished!"</span>)
<span class="cmt">#PerformanceTest
</span><span class="kw">print</span>(<span class="str">"Run PerformanceTest"</span>)
<span class="skw">click</span>(<img src="PerformanceTest.png" />)
<span class="skw">click</span>(<img src="Performance_NodeChiIdren.png" />)
<span class="skw">click</span>(<img src="Performance_Add.png" />)
common_test(<span class="dig">1</span>,<span class="dig">6</span>,<span class="dig">0.5</span>)
<span class="skw">click</span>(<img src="Common_Back.png" />)
<span class="skw">click</span>(<img src="Performance_Particle.png" />)
<span class="skw">click</span>(<img src="Performance_Add.png" />)
common_test(<span class="dig">1</span>,<span class="dig">5</span>,<span class="dig">0.5</span>)
<span class="skw">click</span>(<img src="Common_Back.png" />)
<span class="skw">click</span>(<img src="Performance_Sprite.png" />)
common_test(<span class="dig">1</span>,<span class="dig">5</span>,<span class="dig">0.5</span>)
<span class="skw">click</span>(<img src="nf.png" />)
<span class="skw">click</span>(<img src="Performance_Texture.png" />)
<span class="skw">click</span>(<img src="Common_Back.png" />)
<span class="skw">click</span>(<img src="Touches.png" />)
<span class="skw">click</span>(<img src="T.png" />)
<span class="skw">click</span>(<img src="Performance_Click2.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">click</span>(<img src="Performance_Click3.png" />)
<span class="skw">click</span>(<img src="Performance_Click2.png" />)
<span class="skw">click</span>(<img src="Common_Back.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"PerformanceTest finished!"</span>)
<span class="cmt">#ZwoptexTest
</span><span class="kw">print</span>(<span class="str">"Run ZwoptexTest"</span>)
<span class="skw">click</span>(<img src="ZwoptexTest.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"ZwoptexTest finished!"</span>)
<span class="cmt">#CurlTest
</span><span class="kw">print</span>(<span class="str">"Run CurlTest"</span>)
<span class="skw">click</span>(<img src="CurlTest.png" />)
<span class="skw">click</span>(<img src="SCFGSFI.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"CurlTest finished!"</span>)
<span class="cmt">#UserDefaultTest
</span><span class="kw">print</span>(<span class="str">"Run UserDefaultTest"</span>)
<span class="skw">click</span>(<img src="UserDefaultTest.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"UserDefaultTest finished!"</span>)
<span class="cmt">#BugsTest
</span><span class="kw">print</span>(<span class="str">"Run BugsTest"</span>)
<span class="skw">click</span>(<img src="BugsTest-1.png" />)
<span class="skw">click</span>(<img src="Bug350.png" />)
<span class="skw">click</span>(<img src="Back.png" />)
<span class="skw">click</span>(<img src="Buci422.png" />)
<span class="skw">click</span>(<img src="One.png" />)
<span class="skw">click</span>(<img src="1345694015019.png" />)
<span class="skw">click</span>(<img src="Common_Back.png" />)
<span class="skw">click</span>(<img src="Bug-458.png" />)
<span class="skw">click</span>(<img src="Common_Back.png" />)
<span class="skw">click</span>(<img src="Bug-624.png" />)
<span class="skw">click</span>(<img src="Common_Back.png" />)
<span class="skw">click</span>(<img src="Bug-886.png" />)
<span class="skw">click</span>(<img src="Bugs_back_1.png" />)
<span class="skw">click</span>(<img src="Bug-899.png" />)
<span class="skw">click</span>(<img src="Bugs_back_4.png" />)
<span class="skw">click</span>(<img src="Bug914.png" />)
<span class="skw">click</span>(<img src="Bugs_back_2.png" />)
<span class="skw">dragDrop</span>(Pattern(<img src="Bug914-2.png" />).targetOffset(-<span class="dig">103</span>,<span class="dig">16</span>), Pattern(<img src="Bug350-1.png" />).targetOffset(-<span class="dig">100</span>,-<span class="dig">19</span>))
<span class="skw">click</span>(<img src="Bug1159.png" />)
<span class="skw">click</span>(<img src="Bugs_back_5.png" />)
<span class="skw">click</span>(<img src="Bug1174.png" />)
<span class="skw">wait</span>(<span class="dig">0.5</span>)
<span class="skw">click</span>(<img src="Common_Back.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"BugsTest finished!"</span>)
<span class="skw">dragDrop</span>(Pattern(<img src="BugsTest-2.png" />).targetOffset(-<span class="dig">110</span>,<span class="dig">17</span>), Pattern(<img src="HUUBIUIUlIIU.png" />).targetOffset(-<span class="dig">120</span>,-<span class="dig">9</span>))
<span class="cmt">#FontTest
</span><span class="kw">print</span>(<span class="str">"Run FontTest"</span>)
<span class="skw">click</span>(<img src="FontTest.png" />)
common_test(<span class="dig">1</span>,<span class="dig">6</span>,<span class="dig">0.5</span>)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"FontTest finished!"</span>)
<span class="cmt">#CurrentLauguageTest
</span><span class="kw">print</span>(<span class="str">"Run CurrentLauguageTest"</span>)
<span class="skw">click</span>(<img src="CurrentLanguageTest.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"CurrentLauguageTest finished!"</span>)
<span class="cmt">#TextureCacheTest
</span><span class="kw">print</span>(<span class="str">"Run TextureCacheTest"</span>)
<span class="skw">click</span>(<img src="TextureCacheTest.png" />)
<span class="skw">click</span>(<img src="MainMenu_TextureCache.png" />)
<span class="kw">print</span>(<span class="str">"TextureCacheTest finished!"</span>)
<span class="cmt">#ExtensionsTest
</span><span class="kw">print</span>(<span class="str">"Run ExtensionsTest"</span>)
<span class="skw">click</span>(<img src="ExtensionsTest.png" />)
<span class="skw">click</span>(<img src="NotificationCenterTest.png" />)
<span class="skw">click</span>(<img src="Notification_switchon.png" />)
<span class="skw">click</span>(<img src="Common_Back.png" />)
<span class="skw">click</span>(<img src="Extensions_CCControlButton.png" />)
<span class="skw">wait</span>(<span class="dig">0.5</span>)
<span class="skw">dragDrop</span>(Pattern(<img src="D.png" />).targetOffset(-<span class="dig">120</span>,<span class="dig">0</span>),Pattern(<img src="D.png" />).targetOffset(<span class="dig">120</span>,<span class="dig">0</span>))
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">click</span>(<img src="ControlColourPickerTest.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">click</span>(Pattern(<img src="ControlSwitch.png" />).targetOffset(-<span class="dig">19</span>,<span class="dig">0</span>))
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">click</span>(<img src="ControlButton_Variable.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">click</span>(<img src="ControlButton_Event.png" />)
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">click</span>(<img src="ControlButton_Styling.png" />)
<span class="skw">click</span>(<img src="Back_ControlButton.png" />)
<span class="skw">click</span>(<img src="CocosBuilder.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_MenusItems.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_back.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_Sprite.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_back.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_Button.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_back.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_Labels.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_back.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_ParticleSystems.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_back.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_ScrollWews.png" />)
<span class="skw">click</span>(<img src="CocosBuilder_back.png" />)
<span class="skw">click</span>(<img src="MainMenu_Extensions.png" />)
<span class="kw">print</span>(<span class="str">"ExtensionsTest finished!"</span>)
<span class="cmt">#ShaderTest
</span><span class="kw">print</span>(<span class="str">"Run ShaderTest"</span>)
<span class="skw">click</span>(<img src="ShaderTest.png" />)
common_test(<span class="dig">1</span>,<span class="dig">7</span>,<span class="dig">0.5</span>)
<span class="skw">wait</span>(<span class="dig">0.5</span>)
<span class="skw">dragDrop</span>(Pattern(<img src="1345698378832.png" />).targetOffset(-<span class="dig">44</span>,<span class="dig">0</span>),Pattern(<img src="1345698378832.png" />).targetOffset(<span class="dig">80</span>,<span class="dig">0</span>))
<span class="skw">click</span>(<img src="Next.png" />)
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"ShaderTest finished!"</span>)
<span class="cmt">#MutiTouchTest
</span><span class="kw">print</span>(<span class="str">"Run MutiTouchTest"</span>)
<span class="skw">click</span>(<img src="MutiTouchTest.png" />)
<span class="kw">for</span> i <span class="kw">in</span> range(<span class="dig">1</span>,<span class="dig">3</span>):
<span class="skw">dragDrop</span>(<img src="i.png" />, <img src="Maintvienu.png" />)
<span class="skw">dragDrop</span>(<img src="1346311259004.png" />, Pattern(<img src="C.png" />).targetOffset(-<span class="dig">50</span>,<span class="dig">0</span>))
<span class="skw">click</span>(<img src="MainMenu_Common.png" />)
<span class="kw">print</span>(<span class="str">"MutiTouchTest finished!"</span>)
<span class="cmt">#Quit
</span><span class="kw">print</span>(<span class="str">"Quit"</span>)
<span class="skw">click</span>(<img src="1346315512087.png" />)
</pre>
</body>
</html>

View File

@ -1,498 +0,0 @@
setAutoWaitTimeout(10000)
val = getFindFailedResponse()
if val == ABORT:
print "Abort"
if val == SKIP:
print "SKIP"
if val == PROMPT:
print "PROMPT"
if val == RETRY:
print "RETRY"
def common_test(a,b,c):
for i in range(a,b):
wait(c)
if exists("Next.png"):
click("Next.png")
#ActionTest
click("ActionsTest.png")
print("Run ActionsTest")
common_test(1,28,1.0)
click(Pattern("MainMenu_Common.png").targetOffset(-93,0))
common_test(1,3,3.0)
common_test(1,6,1.0)
print("ActionsTest finished!")
click("MainMenu_Common.png")
#TransitionsTest
click("TransitionsTest.png")
print("Run TransitionsTest")
common_test(1,27,1.0)
print("TransitionsTest finished!")
click(Pattern("1346297215212.png").targetOffset(49,0))
#ActionsProgressTest
click("ActionsProgressTest.png")
print("Run ActionsProgressTest")
common_test(1,8,1.0)
print("ActionsProgressTest finished!")
click("MainMenu_ActionsProgress.png")
#EffectsTest
click("EffectsTest.png")
print("Run EffectsTest")
common_test(1,22,3.0)
print("Effects finished!")
click("MainMenu_Effects.png")
#ClickAndMoveTest
print("Run ClickAndMoveTest")
click("CickAndMoveTest.png")
wait(4)
click("ClickAndMove_Click.png")
click(Pattern("ClickAndMove_Click.png").targetOffset(200,-3))
click("MainMenu_ClickAndMove.png")
print("ClickAndMoveTest finished!")
#RotateWorldTest
print("Run RotateWorldTest")
click("RotateWorldTest.png")
wait(4)
click("MainMenu_ActionsProgress.png")
print("RotateWorldTest finished!")
#ParticleTest
print("Run ParticleTest")
click("ParticleTest.png")
common_test(1,43,2.0)
print("ParticleTest finished!")
click("MainMenu_Common.png")
dragDrop(Pattern("ParticleTest-1.png").targetOffset(91,17), Pattern("Acti0nsTest.png").targetOffset(93,-19))
#ActionEaseTest
print("Run ActionEaseTest")
click("ActionsEaseTest.png")
common_test(1,14,2.0)
click("MainMenu_Common.png")
print("ActionEaseTest finished!")
#MotionStreakTest
print("Run MotionStreakTest")
click("MotionStreakTest.png")
wait(1.0)
click(Pattern("MotionStreak_ChangeFastMode.png").targetOffset(20,0))
wait(1.0)
click("Next.png")
dragDrop("Motion_Drag1.png", "Motion_Drag2.png")
click(Pattern("MotionStreak_ChangeFastMode.png").targetOffset(20,0))
dragDrop("Motion_Drag1.png", "Motion_Drag2.png")
click("Next.png")
click(Pattern("MotionStreak_ChangeFastMode.png").targetOffset(20,0))
wait(1.0)
click("MainMenu_Common.png")
print("MotionStreakTest finished!")
#DrawPimitivesTest
print("Run DrawPimitivesTest")
click("DrawPrimitivesTest.png")
if exists("DrawPrimitives.png"):
print("DrawPrimitivesTest success!")
print("DrawPimitivesTest finished!")
click("MainMenu_DrawPimitives.png")
#NodeTest
print("Run NodeTest")
click("NodeTest.png")
common_test(1,14,1.0)
click("MainMenu_Common.png")
print("NodeTest finished!")
#TouchesTest
print("Run TouchesTest")
click("TouchesTest.png")
wait(1.0)
click("MainMenu_Common.png")
print("TouchesTest finished!")
#MenuTest
print("Run MenuTest")
click("MenuTest.png")
click("MenuTest_AtlasSprite.png")
click("MenuTest_HighScores.png")
click("MenuTest_Play.png")
click("MenuTest_Eitems.png")
click("MenuTest_Config.png")
click("MenuTest_Back.png")
click("MenuTest_Quit.png")
click("MainMenu_Common.png")
print("MenuTest finished!")
#ActionManagerTest
print("Run ActionManagerTest")
click("ActionManaerTest.png")
common_test(1,5,3.0)
click("MainMenu_Common.png")
print("ActionManagerTest finished!")
#LayerTest
print("Run LayerTest")
click("LayerTest.png")
dragDrop("Layer_Drag1.png", "Layer_Drag2.png")
click("Next.png")
wait(1.0)
click("Next.png")
wait(1.0)
click("Next.png")
dragDrop("Layer_Drag3.png", "Layer_Drag4.png")
common_test(1,3,1.0)
click("MainMenu_Common.png")
print("LayerTest finished!")
dragDrop(Pattern("LaverTest-1.png").targetOffset(98,6), Pattern("Acti0nsEaseT.png").targetOffset(106,-11))
#SceneTest
print("Run SceneTest")
click("SceneTest.png")
click("Scene_pushScene.png")
click("Scene_relaceScene.png")
click("Scene_popToRoot.png")
click("Scene_Quit.png")
click("MainMenu_Common.png")
print("SceneTest finished!")
#ParallaxTest
print("Run ParallaxTest")
click("ParaIIaxTest.png")
wait(3.0)
click("Next.png")
dragDrop("Parallax_Drag1.png", "Parallax_Drag2.png")
click("MainMenu_Parallax.png")
print("ParallaxTest finished!")
#TileMapTest
print("Run TileMapTest")
click("TileMapTest.png")
common_test(1,21,2.0)
click("MainMenu_TileMap.png")
print("TileMapTest finished!")
#IntervalTest
print("Run IntervalTest")
click("IntervaITest.png")
wait(2.0)
click("Interval_pause.png")
wait(1.0)
click("Interval_pause.png")
click("MainMenu_Common.png")
print("IntervalTest finished!")
#ChipmunkAccelTouchTest
print("Run ChipmunkAccelTouchTest")
click("ChipmunkAccelTouchTest.png")
for i in range(1,3):
click("ChipmunkAccelTouchTest_Click.png")
for i in range(1,3):
click("it.png")
wait(3.0)
click("MainMenu_Common.png")
print("ChipmunkAccelTouchTest finished!")
#LabelTest
print("Run LabelTest")
click("LabeITest.png")
wait(1.0)
common_test(1,26,0.5)
click("MainMenu_Common.png")
print("LabelTest finished!")
#TextInputTest
print("Run TextInputTest")
click("TextInputTest.png")
type("TextInput_herefor.png", "1q~<?;\@")
click("TextInput_return.png")
click("Next.png")
type("TextInput_herefor.png", "1q~<?;\@")
click("TextInput_return.png")
click("MainMenu_Common.png")
print("TextInputTest finished!")
dragDrop(Pattern(".png").targetOffset(100,14), Pattern("I_yUIICDI.png").targetOffset(75,-8))
#SpriteTest
print("Run SpriteTest")
click("SpriteTest.png")
for i in range(1,3):
click("SpriteTest_SpriteClick1.png")
for j in range(1,3):
click("SpriteTest_SpriteClick2.png")
click("Next.png")
for i in range(1,3):
click("SpriteTest_SpriteClick1.png")
for j in range(1,3):
click("SpriteTest_SpriteClick2.png")
common_test(1,100,0.5)
click("MainMenu_Common.png")
print("SpriteTest finished!")
#SchdulerTest
print("Run SchdulerTest")
click("SchduIerTest.png")
wait(1.0)
click("Next.png")
dragDrop(Pattern("SchdulerTest_timeScale.png").targetOffset(23,0),Pattern("SchdulerTest_timeScale.png").targetOffset(-50,0))
click("Next.png")
dragDrop("Schduler_custom.png",Pattern("Schduler_custom.png").targetOffset(58,0))
common_test(1,11,1)
click("MainMenu_Common.png")
print("SchdulerTest finished!")
#RenderTextureTest
print("Run RenderTextureTest")
click("RenderTextureTest.png")
dragDrop("RenderTexture_Drag1.png", "RenderTexture_Drag2.png")
dragDrop("RenderTexture_Drag3.png", "RenderTexture_Drag4.png")
click("SaveImage.png")
click("Clear.png")
click("Next.png")
wait(1.0)
click("Next.png")
click("RenderTexture_vertexZclick1.png")
click("RenderTexture_vertexZclick2.png")
click("RenderTexture_vertexZclick3.png")
click("Next.png")
wait(1.0)
click("MainMenu_Common.png")
print("RenderTextureTest finished!")
#Texture2DTest
print("Run Texture2DTest")
click("Texture2DTest.png")
common_test(1,36,0.5)
click("MainMenu_Common.png")
print("Texture2DTest finished!")
#Box2dTest
print("Run Box2dTest")
click("Box2dTest.png")
for i in range(1,6):
click("Box2dTest_Click1.png")
for i in range(1,6):
click("Box2dTest_Click2.png")
click("MainMenu_Common.png")
print("Box2dTest finished!")
#Box2dTestBed
print("Run Box2dTestBed")
click("Box2dTestBed.png")
common_test(1,36,2.0)
click("MainMenu_Common.png")
print("Box2dTestBed finished!")
#EffectAdvancedTest
print("Run EffectAdvancedTest")
click("EffectAdvancedTest.png")
common_test(1,6,1.0)
click("MainMenu_Common.png")
print("EffectAdvancedTest finished!")
#Accelerometer
print("Run Accelerometer")
click("Accelerometer.png")
click("MainMenu_Common.png")
print("Accelerometer finished!")
dragDrop(Pattern("AccalaromeLI.png").targetOffset(120,2), Pattern("SmiteTest.png").targetOffset(130,-9))
#KeypadTest
print("Run KeypadTest")
click("KeypadTest.png")
click("MainMenu_Common.png")
print("KeypadTest finished!")
#CocosDenshionTest
print("Run CocosDenshionTest")
click("CocosDenshionTest.png")
click("CocosDenshionTest_play.png")
click("CocosDenshionTest_stop.png")
click("CocosDenshionTest_pause.png")
click("CocosDenshionTest_resume.png")
click("CocosDenshionTest_rewind.png")
click("CocosDenshionTest_is.png")
click("CocosDenshionTest_playeffect.png")
dragDrop(Pattern("playeffectrr.png").targetOffset(-130,15), Pattern("Dlavbackqrou.png").targetOffset(-140,-15))
click("CocosDenshionTest_playeffect.png")
click("CocosDenshionTest_stop.png")
click("CocosDenshionTest_unload.png")
click("CocosDenshionTest_addback.png")
click("CocosDenshionTest_subback.png")
click("CocosDenshionTest_addeff.png")
click("CocosDenshionTest_subeff.png")
click("CocosDenshionTest_pause.png")
dragDrop(Pattern("pauseeffect.png").targetOffset(-120,6), Pattern("playeffectre.png").targetOffset(-130,-9))
click("CocosDenshionTest_addeff.png")
click("CocosDenshionTest_subeff.png")
click("CocosDenshionTest_pauseeffect.png")
click("CocosDenshionTest_resumeff.png")
click("CocosDenshionTest_pauseall.png")
click("CocosDenshionTest_resumeall.png")
click("CocosDenshionTest_stop.png")
click("MainMenu_Common.png")
print("CocosDenshionTest finished!")
#PerformanceTest
print("Run PerformanceTest")
click("PerformanceTest.png")
click("Performance_NodeChiIdren.png")
click("Performance_Add.png")
common_test(1,6,0.5)
click("Common_Back.png")
click("Performance_Particle.png")
click("Performance_Add.png")
common_test(1,5,0.5)
click("Common_Back.png")
click("Performance_Sprite.png")
common_test(1,5,0.5)
click("nf.png")
click("Performance_Texture.png")
click("Common_Back.png")
click("Touches.png")
click("T.png")
click("Performance_Click2.png")
click("Next.png")
click("Performance_Click3.png")
click("Performance_Click2.png")
click("Common_Back.png")
click("MainMenu_Common.png")
print("PerformanceTest finished!")
#ZwoptexTest
print("Run ZwoptexTest")
click("ZwoptexTest.png")
click("MainMenu_Common.png")
print("ZwoptexTest finished!")
#CurlTest
print("Run CurlTest")
click("CurlTest.png")
click("SCFGSFI.png")
click("MainMenu_Common.png")
print("CurlTest finished!")
#UserDefaultTest
print("Run UserDefaultTest")
click("UserDefaultTest.png")
click("MainMenu_Common.png")
print("UserDefaultTest finished!")
#BugsTest
print("Run BugsTest")
click("BugsTest-1.png")
click("Bug350.png")
click("Back.png")
click("Buci422.png")
click("One.png")
click("1345694015019.png")
click("Common_Back.png")
click("Bug-458.png")
click("Common_Back.png")
click("Bug-624.png")
click("Common_Back.png")
click("Bug-886.png")
click("Bugs_back_1.png")
click("Bug-899.png")
click("Bugs_back_4.png")
click("Bug914.png")
click("Bugs_back_2.png")
dragDrop(Pattern("Bug914-2.png").targetOffset(-103,16), Pattern("Bug350-1.png").targetOffset(-100,-19))
click("Bug1159.png")
click("Bugs_back_5.png")
click("Bug1174.png")
wait(0.5)
click("Common_Back.png")
click("MainMenu_Common.png")
print("BugsTest finished!")
dragDrop(Pattern("BugsTest-2.png").targetOffset(-110,17), Pattern("HUUBIUIUlIIU.png").targetOffset(-120,-9))
#FontTest
print("Run FontTest")
click("FontTest.png")
common_test(1,6,0.5)
click("MainMenu_Common.png")
print("FontTest finished!")
#CurrentLauguageTest
print("Run CurrentLauguageTest")
click("CurrentLanguageTest.png")
click("MainMenu_Common.png")
print("CurrentLauguageTest finished!")
#TextureCacheTest
print("Run TextureCacheTest")
click("TextureCacheTest.png")
click("MainMenu_TextureCache.png")
print("TextureCacheTest finished!")
#ExtensionsTest
print("Run ExtensionsTest")
click("ExtensionsTest.png")
click("NotificationCenterTest.png")
click("Notification_switchon.png")
click("Common_Back.png")
click("Extensions_CCControlButton.png")
wait(0.5)
dragDrop(Pattern("D.png").targetOffset(-120,0),Pattern("D.png").targetOffset(120,0))
click("Next.png")
click("ControlColourPickerTest.png")
click("Next.png")
click(Pattern("ControlSwitch.png").targetOffset(-19,0))
click("Next.png")
click("ControlButton_Variable.png")
click("Next.png")
click("ControlButton_Event.png")
click("Next.png")
click("ControlButton_Styling.png")
click("Back_ControlButton.png")
click("CocosBuilder.png")
click("CocosBuilder_MenusItems.png")
click("CocosBuilder_back.png")
click("CocosBuilder_Sprite.png")
click("CocosBuilder_back.png")
click("CocosBuilder_Button.png")
click("CocosBuilder_back.png")
click("CocosBuilder_Labels.png")
click("CocosBuilder_back.png")
click("CocosBuilder_ParticleSystems.png")
click("CocosBuilder_back.png")
click("CocosBuilder_ScrollWews.png")
click("CocosBuilder_back.png")
click("MainMenu_Extensions.png")
print("ExtensionsTest finished!")
#ShaderTest
print("Run ShaderTest")
click("ShaderTest.png")
common_test(1,7,0.5)
wait(0.5)
dragDrop(Pattern("1345698378832.png").targetOffset(-44,0),Pattern("1345698378832.png").targetOffset(80,0))
click("Next.png")
click("MainMenu_Common.png")
print("ShaderTest finished!")
#MutiTouchTest
print("Run MutiTouchTest")
click("MutiTouchTest.png")
for i in range(1,3):
dragDrop("i.png", "Maintvienu.png")
dragDrop("1346311259004.png", Pattern("C.png").targetOffset(-50,0))
click("MainMenu_Common.png")
print("MutiTouchTest finished!")
#Quit
print("Quit")
click("1346315512087.png")

View File

@ -1,47 +0,0 @@
# HelloCpp
xcodebuild clean build -project ../../../../samples/Cpp/HelloCpp/proj.ios/HelloCpp.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/HelloCpp/proj.ios/HelloCpp.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Release
xcodebuild clean build -project ../../../../samples/Cpp/HelloCpp/proj.ios/HelloCpp.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/HelloCpp/proj.ios/HelloCpp.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Release
xcodebuild clean build -project ../../../../samples/Cpp/HelloCpp/proj.ios/HelloCpp.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/HelloCpp/proj.ios/HelloCpp.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Release
# TestCpp
xcodebuild clean build -project ../../../../samples/Cpp/TestCpp/proj.ios/TestCpp.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/TestCpp/proj.ios/TestCpp.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Release
xcodebuild clean build -project ../../../../samples/Cpp/TestCpp/proj.ios/TestCpp.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/TestCpp/proj.ios/TestCpp.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Release
xcodebuild clean build -project ../../../../samples/Cpp/TestCpp/proj.ios/TestCpp.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/TestCpp/proj.ios/TestCpp.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Release
# HelloLua
xcodebuild clean build -project ../../../../samples/Lua/HelloLua/proj.ios/HelloLua.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Lua/HelloLua/proj.ios/HelloLua.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Release
xcodebuild clean build -project ../../../../samples/Lua/HelloLua/proj.ios/HelloLua.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Debug
xcodebuild clean build -project ../../../../samples/Lua/HelloLua/proj.ios/HelloLua.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Release
xcodebuild clean build -project ../../../../samples/Lua/HelloLua/proj.ios/HelloLua.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Lua/HelloLua/proj.ios/HelloLua.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Release
# TestLua
xcodebuild clean build -project ../../../../samples/Lua/TestLua/proj.ios/TestLua.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Lua/TestLua/proj.ios/TestLua.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Release
xcodebuild clean build -project ../../../../samples/Lua/TestLua/proj.ios/TestLua.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Debug
xcodebuild clean build -project ../../../../samples/Lua/TestLua/proj.ios/TestLua.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Release
xcodebuild clean build -project ../../../../samples/Lua/TestLua/proj.ios/TestLua.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Lua/TestLua/proj.ios/TestLua.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Release
# TestJavascript
xcodebuild clean build -project ../../../../samples/Javascript/TestJavascript/proj.ios/TestJavascript.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Javascript/TestJavascript/proj.ios/TestJavascript.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Release
xcodebuild clean build -project ../../../../samples/Javascript/TestJavascript/proj.ios/TestJavascript.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Debug
xcodebuild clean build -project ../../../../samples/Javascript/TestJavascript/proj.ios/TestJavascript.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Release
xcodebuild clean build -project ../../../../samples/Javascript/TestJavascript/proj.ios/TestJavascript.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Javascript/TestJavascript/proj.ios/TestJavascript.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Release
# SimpleGame
xcodebuild clean build -project ../../../../samples/Cpp/SimpleGame/proj.ios/SimpleGame.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/SimpleGame/proj.ios/SimpleGame.xcodeproj -alltargets -sdk iphonesimulator5.0 -configuration Release
xcodebuild clean build -project ../../../../samples/Cpp/SimpleGame/proj.ios/SimpleGame.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/SimpleGame/proj.ios/SimpleGame.xcodeproj -alltargets -sdk iphonesimulator5.1 -configuration Release
xcodebuild clean build -project ../../../../samples/Cpp/SimpleGame/proj.ios/SimpleGame.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/SimpleGame/proj.ios/SimpleGame.xcodeproj -alltargets -sdk iphonesimulator6.0 -configuration Release

View File

@ -1,81 +0,0 @@
#!/bin/bash
#This script is used to finish a ios automated compiler.
compileresult=0
cp iphonesim ../../../../samples/TestCpp/proj.ios
cd ../../../../samples
#List simulator sdks
xcodebuild -showsdks > tmp.txt
#Get sdk's numbers
sdk_num=`grep "Simulator - iOS" tmp.txt|wc -l`
grep "Simulator - iOS" tmp.txt > tmp1.txt
sed 's/Simulator - iOS [4-5].[0-9]//' tmp1.txt> tmp.txt
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/TestCpp/proj.ios
cd TestCpp/proj.ios
echo $sdk_num > sdk_num.txt
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build debug version
xcodebuild -configuration Debug $a
compileresult=$[$compileresult+$?]
if [ $? == 0 ]; then
var1=build/Debug-iphonesimulator
var2=${a:(-3):3}
var3=${var1}${var2}
echo 'Debug-iphonesimulator'${var2} >> directory_name.txt
mv build/Debug-iphonesimulator $var3
fi
sed -i '' '1d' tmp.txt
done
cd ../..
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/HelloCpp/proj.ios
cd HelloCpp/proj.ios
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build debug version
xcodebuild -configuration Debug $a
compileresult=$[$compileresult+$?]
sed -i '' '1d' tmp.txt
done
cd ../..
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/HelloLua/proj.ios
cd HelloLua/proj.ios
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build debug version
xcodebuild -configuration Debug $a
compileresult=$[$compileresult+$?]
sed -i '' '1d' tmp.txt
done
#return the compileresult.
cd ../../..
if [ $compileresult != 0 ]; then
echo Error.
echo $compilesult
# git checkout -f
# git clean -df -x
exit 1
else
echo Success.
echo $compileresult
# git checkout -f
# git clean -df -x
fi

View File

@ -1,72 +0,0 @@
#!/bin/bash
#This script is used to finish a ios automated compiler.
compileresult=0
cd ../../../../samples
#List simulator sdks
xcodebuild -showsdks > tmp.txt
#Get sdk's numbers
sdk_num=`grep "Simulator - iOS" tmp.txt|wc -l`
grep "Simulator - iOS" tmp.txt > tmp1.txt
sed 's/Simulator - iOS [4-5].[0-9]//' tmp1.txt> tmp.txt
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/TestCpp/proj.ios
cd TestCpp/proj.ios
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build release version
xcodebuild -configuration Release $a
compileresult=$[$compileresult+$?]
sed -i '' '1d' tmp.txt
done
cd ../..
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/HelloCpp/proj.ios
cd HelloCpp/proj.ios
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build release version
xcodebuild -configuration Release $a
compileresult=$[$compileresult+$?]
sed -i '' '1d' tmp.txt
done
cd ../..
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/HelloLua/proj.ios
cd HelloLua/proj.ios
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build release version
xcodebuild -configuration Release $a
compileresult=$[$compileresult+$?]
sed -i '' '1d' tmp.txt
done
#return the compileresult.
cd ../../..
if [ $compileresult != 0 ]; then
echo Error.
echo $compilesult
# git checkout -f
# git clean -df -x
exit 1
else
echo Success.
echo $compileresult
# git checkout -f
# git clean -df -x
fi

View File

@ -1,25 +0,0 @@
#!bin/bash
#This script is used to finish a ios test automation.
compileresult=0
cd ..
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

View File

@ -1,25 +0,0 @@
#!bin/bash
#This script is used to finish a ios test automation.
compileresult=0
cd ..
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

View File

@ -1,15 +0,0 @@
# cpp
xcodebuild clean build -project ../../../../samples/Cpp/HelloCpp/proj.mac/HelloCpp.xcodeproj -alltargets -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/HelloCpp/proj.mac/HelloCpp.xcodeproj -alltargets -configuration Release
xcodebuild clean build -project ../../../../samples/Cpp/TestCpp/proj.mac/TestCpp.xcodeproj -alltargets -configuration Debug
xcodebuild clean build -project ../../../../samples/Cpp/TestCpp/proj.mac/TestCpp.xcodeproj -alltargets -configuration Release
# lua
# TBD
# javascript
# TBD
# other sample games
# TBD

View File

@ -1,64 +0,0 @@
#!/bin/bash
#This script is used to finish a mac automated compiler.
compileresult=0
cd ../../../../samples/Cpp
#List simulator sdks
xcodebuild -showsdks > tmp.txt
#Get sdk's numbers
sdk_num=`grep "Mac OS X 10" tmp.txt|wc -l`
grep "Mac OS X 10" tmp.txt > tmp1.txt
sed 's/Mac OS X 10.[0-9]//' tmp1.txt> tmp.txt
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/TestCpp/proj.mac
cd TestCpp/proj.mac
echo $sdk_num > sdk_num.txt
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build debug version
xcodebuild -configuration Debug $a
compileresult=$[$compileresult+$?]
if [ $? == 0 ]; then
var1=build/Debug
var2=${a:(-4):4}
var3=${var1}${var2}
echo 'Debug'${var2} >> directory_name.txt
mv build/Debug $var3
fi
sed -i '' '1d' tmp.txt
done
cd ../..
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/HelloCpp/proj.mac
cd HelloCpp/proj.mac
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build debug version
xcodebuild -configuration Debug $a
compileresult=$[$compileresult+$?]
sed -i '' '1d' tmp.txt
done
#return the compileresult.
cd ../../..
if [ $compileresult != 0 ]; then
echo Error.
echo $compilesult
# git checkout -f
# git clean -df -x
exit 1
else
echo Success.
echo $compileresult
# git checkout -f
# git clean -df -x
fi

View File

@ -1,64 +0,0 @@
#!/bin/bash
#This script is used to finish a mac automated compiler.
compileresult=0
cd ../../../../samples/Cpp
#List simulator sdks
xcodebuild -showsdks > tmp.txt
#Get sdk's numbers
sdk_num=`grep "Mac OS X 10" tmp.txt|wc -l`
grep "Mac OS X 10" tmp.txt > tmp1.txt
sed 's/Mac OS X 10.[0-9]//' tmp1.txt> tmp.txt
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/TestCpp/proj.mac
cd TestCpp/proj.mac
echo $sdk_num > sdk_num.txt
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build release version
xcodebuild -configuration Release $a
compileresult=$[$compileresult+$?]
if [ $? == 0 ]; then
var1=build/Debug
var2=${a:(-4):4}
var3=${var1}${var2}
echo 'Debug'${var2} >> directory_name.txt
mv build/Debug $var3
fi
sed -i '' '1d' tmp.txt
done
cd ../..
#Use a for circulation to build each version of sdks
cp tmp.txt $(pwd)/HelloCpp/proj.mac
cd HelloCpp/proj.mac
for((i=1;i<=$sdk_num;i++))
do
a=$(sed -n '1p' tmp.txt)
echo $a
#Build release version
xcodebuild -configuration Release $a
compileresult=$[$compileresult+$?]
sed -i '' '1d' tmp.txt
done
#return the compileresult.
cd ../../..
if [ $compileresult != 0 ]; then
echo Error.
echo $compilesult
# git checkout -f
# git clean -df -x
exit 1
else
echo Success.
echo $compileresult
# git checkout -f
# git clean -df -x
fi

View File

@ -1,25 +0,0 @@
#!bin/bash
#This script is used to finish a ios test automation.
compileresult=0
cd ..
cp -r iOS_SikuliTest.sikuli ../../../samples/Cpp/TestCpp/proj.mac
cd ../../../samples/Cpp/TestCpp/proj.mac
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
$(pwd)/build/${a}/TestCpp.app/Contents/MacOS/TestCpp &
$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

View File

@ -1,25 +0,0 @@
#!bin/bash
#This script is used to finish a ios test automation.
compileresult=0
cd ..
cp -r iOS_SikuliTest.sikuli ../../../samples/Cpp/TestCpp/proj.mac
cd ../../../samples/TestCpp/Cpp/proj.mac
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
$(pwd)/build/${a}/TestCpp.app/Contents/MacOS/TestCpp &
$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

View File

@ -1,31 +0,0 @@
#!/bin/bash
#get params for build_native.sh
CUR=$(pwd)
cd ../../..
#COCOS2DX=$(pwd)
#var1=NDK_ROOT_LOCAL=
#_NDK_ROOT=${var1}${ANDROID_NDK}
#var2=COCOS2DX_ROOT_LOCAL=
#_COCOS2DX_ROOT=${var2}${COCOS2DX}
#echo $_NDK_ROOT
#echo $_COCOS2DX_ROOT
#Modify the configuration files
#sed -i '' '3,4d' $CUR/build_native.sh
sed -i '' '13d' $CUR/project.properties
#gsed -i "3 i\\$_NDK_ROOT" $CUR/build_native.sh
#gsed -i "4 i\\$_COCOS2DX_ROOT" $CUR/build_native.sh
#Modify the xml file
if [ $1 = TestCpp ]; then
gsed -i '2d' $CUR/build.xml
gsed -i '2 i\<project name="TestCpp" default="help">' $CUR/build.xml
elif [ $1 = HelloCpp ]; then
gsed -i '2d' $CUR/build.xml
gsed -i '2 i\<project name="HelloCpp" default="help">' $CUR/build.xml
else
gsed -i '2d' $CUR/build.xml
gsed -i '2 i\<project name="HelloLua" default="help">' $CUR/build.xml
fi

View File

@ -1,89 +0,0 @@
echo off
rem =========Basic parameters============
rem jdk path
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_31
rem jdk version
set JDK_Version=1.6
rem sdk path
set AndroidHome=D:\Windows7\android-sdk-windows
rem android version path
set AndroidVersion=\platforms\android-8
rem android project path
set AndroidProject=D:\cocos2d-x\samples\Cpp\TestCpp\proj.android
rem unsigned apk name
set unsign_apk=Tests.apk
rem signed apk name
set sign_apk=Tests-sign.apk
rem sign keystore
set apk_key=cdykeystore
set apk_keypass=123456
set apk_keystore=D:\cdykeystore
for %%x in ("%AndroidProject%") do set AndroidProject=%%~sx
for %%x in ("%JAVA_HOME%") do set JAVA_HOME=%%~sx
for %%x in ("%AndroidHome%") do set AndroidHome=%%~sx
rem jdk kit
set EXE_JAVA=%JAVA_HOME%\bin\java
set JAVAC=%JAVA_HOME%\bin\javac
set JAR=%JAVA_HOME%\bin\jar
set KeyTool=%JAVA_HOME%\bin\keytool
set Jarsigner=%JAVA_HOME%\bin\jarsigner
rem sdk kit
set AndroidAAPT=%AndroidHome%\platform-tools\aapt.exe
set AndroidDx=%AndroidHome%\platform-tools\dx.bat
set AndroidApkBuilder=%AndroidHome%\tools\apkbuilder.bat
set AndroidJar=%AndroidHome%%AndroidVersion%\android.jar
rem android project directory
set AndroidProjectDrive=D:
set AndroidProjectRes=%AndroidProject%\res
set AndroidProjectGen=%AndroidProject%\gen
set AndroidProjectBin=%AndroidProject%\bin
set AndroidProjectAsset=%AndroidProject%\assets
set AndroidProjectLibs=%AndroidProject%\libs
set AndroidProjectAndroidMainfest=%AndroidProject%\AndroidManifest.xml
set AndroidProjectSrc=%AndroidProject%\src\org\cocos2dx\tests\*.java
set AndroidProjectSrc=%AndroidProjectSrc% %AndroidProject%\src\org\cocos2dx\lib\*.java
set AndroidProjectSrc=%AndroidProjectSrc% %AndroidProject%\gen\org\cocos2dx\tests\*.java
rem output file
set AndroidProjectClassDex=%AndroidProject%\bin\classes.dex
set AndroidProjectResources=%AndroidProject%\bin\resources.ap_
set AndroidProjectApk="%AndroidProject%\bin\%unsign_apk%"
set AndroidProjectSignApk="%AndroidProject%\bin\%sign_apk%"
mkdir %AndroidProject%\gen
mkdir %AndroidProject%\src\org\cocos2dx\lib
mkdir %AndroidProject%\bin
::mkdir %AndroidProject%\bin\classes
xcopy D:\cocos2d-x\cocos2dx\platform\android\java\src\org\cocos2dx\lib %AndroidProject%\src\org\cocos2dx\lib /s
echo generate R.java file
%AndroidAAPT% package -f -m -J %AndroidProjectGen% -S %AndroidProjectRes% -I %AndroidJar% -M %AndroidProjectAndroidMainfest%
echo generate class file
%JAVAC% -encoding UTF-8 -target %JDK_Version% -bootclasspath %AndroidJar% -d %AndroidProjectBin% %AndroidProjectSrc% %AndroidProjectGen%\org\cocos2dx\tests\R.java
echo generate dex file
echo on
%AndroidProjectDrive%
cd %AndroidProjectBin%
rem packaging the *.class file into *.jar file
%JAR% cvf %AndroidProjectBin%\classes.jar *.*
cd %AndroidProject%
rem generate *.dex file
call %AndroidDx% --dex --output=%AndroidProjectClassDex% %AndroidProjectBin%\classes.jar
echo package resources files
%AndroidAAPT% package -f -M %AndroidProjectAndroidMainfest% -S %AndroidProjectRes% -A %AndroidProjectAsset% -I %AndroidJar% -F %AndroidProjectResources%
echo generate unsigned apk file
call %AndroidApkBuilder% %AndroidProjectApk% -v -u -z %AndroidProjectResources% -f %AndroidProjectClassDex% -rf %AndroidProject%\src -nf %AndroidProjectLibs% -rj %AndroidProjectLibs%
echo generate signed apk file
%Jarsigner% -verbose -keystore %apk_keystore% -keypass %apk_keypass% -storepass %apk_keypass% -signedjar %AndroidProjectSignApk% %AndroidProjectApk% cdykeystore
echo sign success!
pause

View File

@ -1,156 +0,0 @@
::This script is used to accomplish a android automated compile.
::You should make sure have accomplished the environment settings.
:: Don't change it until you know what you do.
::Here are the environment variables you should set.
::%ANT_HOME% %ANDROID_HOME% %JAVA_HOME% %CYGWIN% %ANDROID_NDK%
echo off
if not exist "%CYGWIN%" echo Couldn't find Cygwin at "%CYGWIN%" and you should set it like this "C:\cygwin"& pause & exit 1
if not exist "%ANDROID_HOME%" echo Couldn't find ANDROID_HOME at "%ANDROID_HOME%" and you should set it like this "D:\xx\android-sdk-windows"& pause & exit 2
if not exist "%ANDROID_NDK%" echo Couldn't find Cygwin at "%ANDROID_NDK%" and you should set it like this "D:\xx\android-ndk-r8"& pause & exit 3
if not exist "%JAVA_HOME%" echo Couldn't find Cygwin at "%JAVA_HOME%" and you should set it like it this "C:\xx\jdk1.7.0_05"& pause & exit 4
if not exist "%ANT_HOME%" echo Couldn't find Ant at "%ANT_HOME%" and you should set it like this "D:\xx\apache-ant-1.8.4" $ pause $ exit 5
set _PROJECTNAME=TestCpp
set _LANGUAGE_=Cpp
set _ROOT_=%cd%\..\..\..\..
cd %_ROOT_%
:project
::Copy build Configuration files to target directory
copy %_ROOT_%\tools\jenkins_scripts\ant.properties %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android /Y
copy %_ROOT_%\tools\jenkins_scripts\build.xml %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android /Y
copy %_ROOT_%\tools\jenkins_scripts\windows\android\rootconfig.sh %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android /Y
::Modify the configuration files
cd %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
rootconfig.sh %_PROJECTNAME%
cd ..
set _PROJECTLOCATION=%cd%
::A command line that make the current user get the ownrship of project.
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
::Use cygwin compile the source code.
cygpath "%_PROJECTLOCATION%\proj.android\build_native.sh"|call %CYGWIN%\Cygwin.bat
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
::echo "%_PROJECTION%/proj.android/build_native.sh"|call %CYGWIN%\Cygwin.bat
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
call android update project -p proj.android
cd proj.android
::Make sure the original android build target is android-8
for /f "delims=" %%a in ('findstr /i "target=android-" ant.properties') do set xx=%%a
echo %xx%
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="%xx%" (echo/target=android-8)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Android ant build(debug,API level:8).
call ant debug
set result8=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_10
if %result8% NEQ 0 goto API_10
cd bin
ren TestCpp-debug.apk TestCpp-debug-8.apk
cd ..
:API_10
::Change API level.(API level:10)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-8" (echo/target=android-10)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Android ant build(debug,API level:10).
call ant debug
set result10=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_11
if %result10% NEQ 0 goto API_11
cd bin
ren TestCpp-debug.apk TestCpp-debug-10.apk
cd ..
:API_11
::Change API level.(API level:11)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-10" (echo/target=android-11)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Android ant build(debug,API level:11).
call ant debug
set result11=%ERRORlEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_12
if %result11% NEQ 0 goto API_12
cd bin
ren TestCpp-debug.apk TestCpp-debug-11.apk
cd ..
:API_12
::Change API level.(API level:12)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-11" (echo/target=android-12)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Android ant build(debug,API level:12).
call ant debug
set result12=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_13
if %result12% NEQ 0 goto API_13
cd bin
ren TestCpp-debug.apk TestCpp-debug-12.apk
cd ..
:API_13
::Change API level.(API level:13)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-12" (echo/target=android-13)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Android ant build(debug,API level:13).
call ant debug
set result13=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto NEXTPROJ
if %result13% NEQ 0 goto NEXTPROJ
cd bin
ren TestCpp-debug.apk TestCpp-debug-13.apk
cd ..
:NEXTPROJ
::After all test versions completed,changed current API level to the original.(API level:8)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-13" (echo/target=android-8)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Calculate the errorlevel and change build target.
cd %_ROOT_%
if "%_PROJECTNAME%"=="TestCpp" set /a TestCpp_Result=(result8+result10+result11+result12+result13) && set _PROJECTNAME=HelloCpp&& goto project
if "%_PROJECTNAME%"=="HelloCpp" set /a HelloCpp_Result=(result8+result10+result11+result12+result13) && set _LANGUAGE_=Lua&& set _PROJECTNAME=HelloLua&& goto project
if "%_PROJECTNAME%"=="HelloLua" set /a HelloLua_Result=(result8+result10+result11+result12+result13)
set /a Compile_Result=(TestCpp_Result+HelloCpp_Result+HelloLua_Result)
if %Compile_Result% NEQ 0 goto error
goto success
:error
echo Compile Error!
echo %Compile_Result%
::git checkout -f
::git clean -df -x
exit 1
:success
echo Compile Success!
echo %Compile_Result%
::git checkout -f
::git clean -df -x
exit 0
::End.

View File

@ -1,179 +0,0 @@
::This script is used to accomplish a android automated compile.
::You should make sure have accomplished the environment settings.
:: Don't change it until you know what you do.
::Here are the environment variables you should set.
::%ANT_HOME% %ANDROID_HOME% %JAVA_HOME% %CYGWIN% %ANDROID_NDK%
if not exist "%CYGWIN%" echo Couldn't find Cygwin at "%CYGWIN%" and you should set it like this "C:\cygwin"& pause & exit 1
if not exist "%ANDROID_HOME%" echo Couldn't find ANDROID_HOME at "%ANDROID_HOME%" and you should set it like this "D:\xx\android-sdk-windows"& pause & exit 2
if not exist "%ANDROID_NDK%" echo Couldn't find Cygwin at "%ANDROID_NDK%" and you should set it like this "D:\xx\android-ndk-r8"& pause & exit 3
if not exist "%JAVA_HOME%" echo Couldn't find Cygwin at "%JAVA_HOME%" and you should set it like it this "C:\xx\jdk1.7.0_05"& pause & exit 4
if not exist "%ANT_HOME%" echo Couldn't find Ant at "%ANT_HOME%" and you should set it like this "D:\xx\apache-ant-1.8.4" $ pause $ exit 5
set _PROJECTNAME=TestCpp
set _LANGUAGE_=Cpp
set _ROOT_=%cd%\..\..\..\..
cd %_ROOT_%
:project
::Copy build Configuration files to target directory
copy %_ROOT_%\tools\jenkins_scripts\ant.properties %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
copy %_ROOT_%\tools\jenkins_scripts\build.xml %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
copy %_ROOT_%\tools\jenkins_scripts\windows\android\rootconfig.sh %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
::Modify the configuration files
cd %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
rootconfig.sh %_PROJECTNAME%
cd ..
set _PROJECTLOCATION=%cd%
::A command line that make the current user get the ownrship of project.
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
::Use cygwin compile the source code.
cygpath "%_PROJECTLOCATION%\proj.android\build_native.sh"|call %CYGWIN%\Cygwin.bat
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
::echo "%_PROJECTION%/proj.android/build_native.sh"|call %CYGWIN%\Cygwin.bat
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
call android update project -p proj.android
cd proj.android
::Make sure the original android build target is android-8
for /f "delims=" %%a in ('findstr /i "target=android-" ant.properties') do set xx=%%a
echo %xx%
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="%xx%" (echo/target=android-8)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
for /f "delims=" %%a in (ant.properties) do set num=%%a&call :lis
move ant1.properties ant.properties
::Android ant build(release,API level:8).
call ant release
set result8=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_10
if %result8% NEQ 0 goto API_10
cd bin
ren TestCpp-release.apk TestCpp-release-8.apk
cd ..
:API_10
::Change API level.(API level:10)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-8" (echo/target=android-10)else echo/%%a
)>>"ant1.properties"
move ant1.properties ant.properties
for /f "delims=" %%a in (ant.properties) do set num=%%a&call :lis
move ant1.properties ant.properties
::Android ant build(release,API level:10).
call ant release
set result10=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_11
if %result10% NEQ 0 goto API_11
cd bin
ren TestCpp-release.apk TestCpp-release-10.apk
cd ..
:API_11
::Change API level.(API level:11)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-10" (echo/target=android-11)else echo/%%a
)>>"ant1.properties"
move ant1.properties ant.properties
for /f "delims=" %%a in (ant.properties) do set num=%%a&call :lis
move ant1.properties ant.properties
::Android ant build(release,API level:11).
call ant release
set result11=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_12
if %result11% NEQ 0 goto API_12
cd bin
ren TestCpp-release.apk TestCpp-release-11.apk
cd ..
:API_12
::Change API level.(API level:12)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-11" (echo/target=android-12)else echo/%%a
)>>"ant1.properties"
move ant1.properties ant.properties
for /f "delims=" %%a in (ant.properties) do set num=%%a&call :lis
move ant1.properties ant.properties
::Android ant build(release,API level:12).
call ant release
set result12=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_13
if %result12% NEQ 0 goto API_13
cd bin
ren TestCpp-release.apk TestCpp-release-12.apk
cd ..
:API_13
::Change API level.(API level:13)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-12" (echo/target=android-13)else echo/%%a
)>>"ant1.properties"
move ant1.properties ant.properties
for /f "delims=" %%a in (ant.properties) do set num=%%a&call :lis
move ant1.properties ant.properties
::Android ant build(release,API level:13).
call ant release
set result13=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto NEXTPROJ
if %result13% NEQ 0 goto NEXTPROJ
cd bin
ren TestCpp-release.apk TestCpp-release-13.apk
cd ..
:NEXTPROJ
::After all test versions completed,changed current API level to the original.(API level:8)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-13" (echo/target=android-8)else echo/%%a
)>>"ant1.properties"
move ant1.properties ant.properties
for /f "delims=" %%a in (ant.properties) do set num=%%a&call :lis
move ant1.properties ant.properties
::Calculate the errorlevel and change build target.
cd %_ROOT_%
if "%_PROJECTNAME%"=="TestCpp" set /a testresult1=(result8+result10+result11+result12+result13) && set _PROJECTNAME=HelloCpp&& goto project
if "%_PROJECTNAME%"=="HelloCpp" set /a testresult2=(result8+result10+result11+result12+result13) && set _LANGUAGE_=Lua&& set _PROJECTNAME=HelloLua&& goto project
if "%_PROJECTNAME%"=="HelloLua" set /a testresult3=(result8+result10+result11+result12+result13)
set /a testresult=(testresult1+testresult2+testresult3)
if %testresult% NEQ 0 goto error
goto success
:lis
if "%num%"=="" goto :eof
if "%num:~-1%"==" " set num=%num:~0,-1%&goto lis
echo %num%>>ant1.properties
goto :eof
:error
echo Compile Error!
echo %Compile_Result%
::git checkout -f
::git clean -df -x
exit 1
:success
echo Compile Success!
echo %Compile_Result%
::git checkout -f
::git clean -df -x
exit 0
::End.

View File

@ -1,112 +0,0 @@
::This script is used to accomplish a android automated compile.
::You should make sure have accomplished the environment settings.
:: Don't change it until you know what you do.
::Here are the environment variables you should set.
::%ANT_HOME% %ANDROID_HOME% %JAVA_HOME% %CYGWIN% %ANDROID_NDK%
if not exist "%CYGWIN%" echo Couldn't find Cygwin at "%CYGWIN%" and you should set it like this "C:\cygwin"& pause & exit 1
if not exist "%ANDROID_HOME%" echo Couldn't find ANDROID_HOME at "%ANDROID_HOME%" and you should set it like this "D:\xx\android-sdk-windows"& pause & exit 2
if not exist "%ANDROID_NDK%" echo Couldn't find Cygwin at "%ANDROID_NDK%" and you should set it like this "D:\xx\android-ndk-r8"& pause & exit 3
if not exist "%JAVA_HOME%" echo Couldn't find Cygwin at "%JAVA_HOME%" and you should set it like it this "C:\xx\jdk1.7.0_05"& pause & exit 4
if not exist "%ANT_HOME%" echo Couldn't find Ant at "%ANT_HOME%" and you should set it like this "D:\xx\apache-ant-1.8.4" $ pause $ exit 5
set _PROJECTNAME=TestCpp
set _LANGUAGE_=CPP
set _ROOT_=%cd%\..\..\..\..
cd _ROOT_
:project
::Copy build Configuration files to target directory
copy %_ROOT_%\tools\jenkins_scripts\ant.properties %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
copy %_ROOT_%\tools\jenkins_scripts\build.xml %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
copy %_ROOT_%\tools\jenkins_scripts\windows\android\rootconfig.sh %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
::Modify the configuration files
cd %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
rootconfig.sh %_PROJECTNAME%
cd ..
set _PROJECTLOCATION=%cd%
::A command line that make the current user get the ownrship of project.
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
::Use cygwin compile the source code.
cygpath "%_PROJECTLOCATION%\proj.android\build_native.sh"|call %CYGWIN%\Cygwin.bat
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
::echo "%_PROJECTION%/proj.android/build_native.sh"|call %CYGWIN%\Cygwin.bat
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
call android update project -p proj.android
cd proj.android
for /f "delims=" %%a in ('findstr /i "target=android-" ant.properties') do set xx=%%a
echo %xx%
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="%xx%" (echo/target=android-8)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Change API level.(API level:14)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-8" (echo/target=android-14)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Android ant build(debug,API level:14).
call ant debug
set result14=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_15
if %result14% NEQ 0 goto API_15
cd bin
ren TestCpp-debug.apk TestCpp-debug-14.apk
cd ..
:API_15
::Change API level.(API level:15)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-14" (echo/target=android-15)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Android ant build(debug,API level:15).
call ant debug
set result15=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto NEXTPROJ
if %result15% NEQ 0 goto NEXTPROJ
cd bin
ren TestCpp-debug.apk TestCpp-debug-15.apk
cd ..
:NEXTPROJ
::After all test versions completed,changed current API level to the original.(API level:8)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-15" (echo/target=android-8)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Calculate the errorlevel and change build target.
cd %_ROOT_%
IF "%_PROJECTNAME%"=="TestCpp" set /a testresult1=(result14+result15) && set _PROJECTNAME=HelloCpp&& goto project
IF "%_PROJECTNAME%"=="HelloCpp" set /a testresult2=(result14+result15) && set _LANGUAGE_=Lua&& set _PROJECTNAME=HelloLua&& goto project
IF "%_PROJECTNAME%"=="HelloLua" set /a testresult3=(result14+result15)
set /a testresult=(testresult1+testresult2+testresult3)
IF %testresult% NEQ 0 goto error
goto success
:error
echo Compile Error!
echo %Compile_Result%
::git checkout -f
::git clean -df -x
exit 1
:success
echo Compile Success!
echo %Compile_Result%
::git checkout -f
::git clean -df -x
exit 0
::End.

View File

@ -1,127 +0,0 @@
::This script is used to accomplish a android automated compile.
::You should make sure have accomplished the environment settings.
:: Don't change it until you know what you do.
::Here are the environment variables you should set.
::%ANT_HOME% %ANDROID_HOME% %JAVA_HOME% %CYGWIN% %ANDROID_NDK%
if not exist "%CYGWIN%" echo Couldn't find Cygwin at "%CYGWIN%" and you should set it like this "C:\cygwin"& pause & exit 1
if not exist "%ANDROID_HOME%" echo Couldn't find ANDROID_HOME at "%ANDROID_HOME%" and you should set it like this "D:\xx\android-sdk-windows"& pause & exit 2
if not exist "%ANDROID_NDK%" echo Couldn't find Cygwin at "%ANDROID_NDK%" and you should set it like this "D:\xx\android-ndk-r8"& pause & exit 3
if not exist "%JAVA_HOME%" echo Couldn't find Cygwin at "%JAVA_HOME%" and you should set it like it this "C:\xx\jdk1.7.0_05"& pause & exit 4
if not exist "%ANT_HOME%" echo Couldn't find Ant at "%ANT_HOME%" and you should set it like this "D:\xx\apache-ant-1.8.4" $ pause $ exit 5
set _PROJECTNAME=TestCpp
set _LANGUAGE=Cpp
set _ROOT_=%cd%\..\..\..\..
cd %_ROOT_%
:project
::Copy build Configuration files to target directory
copy %_ROOT_%\tools\jenkins_scripts\ant.properties %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
copy %_ROOT_%\tools\jenkins_scripts\build.xml %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
copy %_ROOT_%\tools\jenkins_scripts\windows\android\rootconfig.sh %_ROOT_%\samples\%_LANGUAGE_%\%_PROJECTNAME%\proj.android
::Modify the configuration files
cd %_ROOT_%\samples\%_PROJECTNAME%\proj.android
rootconfig.sh %_PROJECTNAME%
cd ..
set _PROJECTLOCATION=%cd%
::A command line that make the current user get the ownrship of project.
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
::Use cygwin compile the source code.
cygpath "%_PROJECTLOCATION%\proj.android\build_native.sh"|call %CYGWIN%\Cygwin.bat
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
::echo "%_PROJECTION%/proj.android/build_native.sh"|call %CYGWIN%\Cygwin.bat
::cacls proj.android\*.* /T /E /C /P %_USERNAME%:F
call android update project -p proj.android
cd proj.android
for /f "delims=" %%a in ('findstr /i "target=android-" ant.properties') do set xx=%%a
echo %xx%
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="%xx%" (echo/target=android-8)else echo/%%a
)>>"anttmp.properties"
move anttmp.properties ant.properties
::Change API level.(API level:14)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-8" (echo/target=android-14)else echo/%%a
)>>"ant1.properties"
move ant1.properties ant.properties
for /f "delims=" %%a in (ant.properties) do set num=%%a&call :lis
move ant1.properties ant.properties
::Android ant build(release,API level:14).
call ant release
set result14=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto API_15
if %result14% NEQ 0 goto API_15
cd bin
ren TestCpp-release.apk TestCpp-release-14.apk
cd ..
:API_15
::Change API level.(API level:15)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-14" (echo/target=android-15)else echo/%%a
)>>"ant1.properties"
move ant1.properties ant.properties
for /f "delims=" %%a in (ant.properties) do set num=%%a&call :lis
move ant1.properties ant.properties
::Android ant build(release,API level:15).
call ant release
set result15=%ERRORLEVEL%
if "%_PROJECTNAME%" NEQ "TestCpp" goto NEXTPROJ
if %result15% NEQ 0 goto NEXTPROJ
cd bin
ren TestCpp-release.apk TestCpp-release-15.apk
cd ..
:NEXTPROJ
::After all test versions completed,changed current API level to the original.(API level:8)
for /f "delims=" %%a in (ant.properties) do (
if "%%a"=="target=android-15" (echo/target=android-8)else echo/%%a
)>>"ant1.properties"
move ant1.properties ant.properties
for /f "delims=" %%a in (ant.properties) do set num=%%a&call :lis
move ant1.properties ant.properties
::Calculate the errorlevel and change build target.
cd %_ROOT_%
IF "%_PROJECTNAME%"=="TestCpp" set /a testresult1=(result14+result15) && set _PROJECTNAME=HelloCpp&& goto project
IF "%_PROJECTNAME%"=="HelloCpp" set /a testresult2=(result14+result15) && set _LANGUAGE_=Lua&& set _PROJECTNAME=HelloLua&& goto project
IF "%_PROJECTNAME%"=="HelloLua" set /a testresult3=(result14+result15)
set /a testresult=(testresult1+testresult2+testresult3)
IF %testresult% NEQ 0 goto error
goto success
:lis
if "%num%"=="" goto :eof
if "%num:~-1%"==" " set num=%num:~0,-1%&goto lis
echo %num%>>ant1.properties
goto :eof
:error
echo Compile Error!
echo %Compile_Result%
::git checkout -f
::git clean -df -x
exit 1
:success
echo Compile Success!
echo %Compile_Result%
::git checkout -f
::git clean -df -x
exit 0
::End.

View File

@ -1,45 +0,0 @@
#!/bin/bash
#This script is used to modify parameters in profile,so it will be convenient for ant to build different project.
#Change the path expression of current path to cygwin path.
#NDK_ROOT=$($CYGWIN/bin/cygpath.exe $ANDROID_NDK)
#echo $NDK_ROOT
CUR=$(pwd)
#tmp=$(pwd)
#COCOS2DX=$($CYGWIN/bin/cygpath.exe $tmp)
#echo $COCOS2DX
#var1=NDK_ROOT_LOCAL=
#_NDK_ROOT=${var1}${NDK_ROOT}
#var2=COCOS2DX_ROOT_LOCAL=
#_COCOS2DX_ROOT=${var2}${COCOS2DX}
#echo $_NDK_ROOT
#echo $_COCOS2DX_ROOT
#Modify the configuration files
#sed -i '3,4d' $CUR/build_native.sh
sed -i '13d' $CUR/project.properties
#sed -i "3 i\\$_NDK_ROOT" $CUR/build_native.sh
#sed -i "4 i\\$_COCOS2DX_ROOT" $CUR/build_native.sh
#Modify the project name
if [ $1 = TestCpp ]; then
sed -i '2d' $CUR/build.xml
sed -i '2 i\<project name="TestCpp" default="help">' $CUR/build.xml
elif [ $1 = HelloCpp ]; then
sed -i '2d' $CUR/build.xml
sed -i '2 i\<project name="HelloCpp" default="help">' $CUR/build.xml
elif [ $1 = HelloLua ]; then
sed -i '2d' $CUR/build.xml
sed -i '2 i\<project name="HelloLua" default="help">' $CUR/build.xml
elif [ $1 = TestLua ]; then
sed -i '2d' $CUR/build.xml
sed -i '2 i\<project name="TestLua" default="help">' $CUR/build.xml
elif [ $1 = TestJavascript ]; then
sed -i '2d' $CUR/build.xml
sed -i '2 i\<project name="TestJavascript" default="help">' $CUR/build.xml
elif [ $1 = SimpleGame ]; then
sed -i '2d' $CUR/build.xml
sed -i '2 i\<project name="SimpleGame" default="help">' $CUR/build.xml
fi

View File

@ -1,73 +0,0 @@
::This script is used to accomplish a android automated compiler.
::You should make sure have accomplished the environment setting.
::You should add %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools to the environment variable of Path.
::Copy monkeyrunner python script to android sdk tools directory.
cd ..\..
copy %cd%\Monkeyrunner_TestCpp.py %ANDROID_HOME%\tools
copy %cd%\ReportManager.py %ANDROID_HOME%\tools
cd ..\..
set PROJECT_HOME=%cd%
cd samples\Cpp\TestCpp\proj.android\bin
::Copy test apk to android sdk tools directory.
copy %cd%\TestCpp-debug-8.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-debug-10.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-debug-11.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-debug-12.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-debug-13.apk %ANDROID_HOME%\tools
::Enter android sdk tools directory.
set ANDROID_ROOT=%ANDROID_HOME:~0,2%
%ANDROID_ROOT%
cd %ANDROID_HOME%\tools
::If monkeyrunner test failed,it automatically exit and make ERRORLEVEL nonzero.
::Running monkeyrunner test(debug,API level:8).
ren TestCpp-debug-8.apk TestCpp-debug.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-debug.apk
::Running monkeyrunner test(debug,API level:10).
ren TestCpp-debug-10.apk TestCpp-debug.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-debug.apk
::Running monkeyrunner test(debug,API level:11).
ren TestCpp-debug-11.apk TestCpp-debug.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-debug.apk
::Running monkeyrunner test(debug,API level:12).
ren TestCpp-debug-12.apk TestCpp-debug.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-debug.apk
::Running monkeyrunner test(debug,API level:13).
ren TestCpp-debug-13.apk TestCpp-debug.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-debug.apk
rm Monkeyrunner_TestCpp.py
rm ReportManager.py
::Monkeyrunner success!
echo Monkeyrunner Test Success!
::Clean project files.
set PROJECT_ROOT=%PROJECT_HOME:~0,2%
%PROJECT_ROOT%
cd %PROJECT_HOME%
git checkout -f
git clean -df -x
exit 0
::End

View File

@ -1,73 +0,0 @@
::This script is used to accomplish a android automated compiler.
::You should make sure have accomplished the environment setting.
::You should add %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools to the environment variable of Path.
::Copy monkeyrunner python script to android sdk tools directory.
cd ..\..
copy %cd%\Monkeyrunner_TestCpp.py %ANDROID_HOME%\tools
copy %cd%\ReportManager.py %ANDROID_HOME%\tools
cd ..\..
set PROJECT_HOME=%cd%
cd samples\Cpp\TestCpp\proj.android\bin
::Copy test apk to android sdk tools directory.
copy %cd%\TestCpp-release-8.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-release-10.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-release-11.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-release-12.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-release-13.apk %ANDROID_HOME%\tools
::Enter android sdk tools directory.
set ANDROID_ROOT=%ANDROID_HOME:~0,2%
%ANDROID_ROOT%
cd %ANDROID_HOME%\tools
::If monkeyrunner test failed,it automatically exit and make ERRORLEVEL nonzero.
::Running monkeyrunner test(release,API level:8).
ren TestCpp-release-8.apk TestCpp-release.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-release.apk
::Running monkeyrunner test(release,API level:10).
ren TestCpp-release-10.apk TestCpp-release.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-release.apk
::Running monkeyrunner test(release,API level:11).
ren TestCpp-release-11.apk TestCpp-release.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-release.apk
::Running monkeyrunner test(release,API level:12).
ren TestCpp-release-12.apk TestCpp-release.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-release.apk
::Running monkeyrunner test(release,API level:13).
ren TestCpp-release-13.apk TestCpp-release.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-release.apk
rm Monkeyrunner_TestCpp.py
rm ReportManager.py
::Monkeyrunner success!
echo Monkeyrunner Test Success!
::Clean project files.
set PROJECT_ROOT=%PROJECT_HOME:~0,2%
%PROJECT_ROOT%
cd %PROJECT_HOME%
git checkout -f
git clean -df -x
exit 0
::End

View File

@ -1,52 +0,0 @@
::This script is used to accomplish a android automated compiler.
::You should make sure have accomplished the environment setting.
::You should add %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools to the environment variable of Path.
::Copy monkeyrunner python script to android sdk tools directory.
cd ..\..
copy %cd%\Monkeyrunner_TestCpp.py %ANDROID_HOME%\tools
copy %cd%\ReportManager.py %ANDROID_HOME%\tools
cd ..\..
set PROJECT_HOME=%cd%
cd samples\Cpp\TestCpp\proj.android\bin
::Copy test apk to android sdk tools directory.
copy %cd%\TestCpp-debug-14.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-debug-15.apk %ANDROID_HOME%\tools
::Enter android sdk tools directory.
set ANDROID_ROOT=%ANDROID_HOME:~0,2%
%ANDROID_ROOT%
cd %ANDROID_HOME%\tools
::If monkeyrunner test failed,it automatically exit and make ERRORLEVEL nonzero.
::Running monkeyrunner test(debug,API level:14).
ren TestCpp-debug-14.apk TestCpp-debug.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-debug.apk
::Running monkeyrunner test(debug,API level:15).
ren TestCpp-debug-15.apk TestCpp-debug.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-debug.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-debug.apk
rm Monkeyrunner_TestCpp.py
rm ReportManager.py
::Monkeyrunner success!
echo Monkeyrunner Test Success!
::Clean project files.
set PROJECT_ROOT=%PROJECT_HOME:~0,2%
%PROJECT_ROOT%
cd %PROJECT_HOME%
git checkout -f
git clean -df -x
exit 0
::End

View File

@ -1,52 +0,0 @@
::This script is used to accomplish a android automated compiler.
::You should make sure have accomplished the environment setting.
::You should add %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools to the environment variable of Path.
::Copy monkeyrunner python script to android sdk tools directory.
cd ..\..
copy %cd%\Monkeyrunner_TestCpp.py %ANDROID_HOME%\tools
copy %cd%\ReportManager.py %ANDROID_HOME%\tools
cd ..\..
set PROJECT_HOME=%cd%
cd samples\Cpp\TestCpp\proj.android\bin
::Copy test apk to android sdk tools directory.
copy %cd%\TestCpp-release-14.apk %ANDROID_HOME%\tools
copy %cd%\TestCpp-release-15.apk %ANDROID_HOME%\tools
::Enter android sdk tools directory.
set ANDROID_ROOT=%ANDROID_HOME:~0,2%
%ANDROID_ROOT%
cd %ANDROID_HOME%\tools
::If monkeyrunner test failed,it automatically exit and make ERRORLEVEL nonzero.
::Running monkeyrunner test(release,API level:14).
ren TestCpp-release-14.apk TestCpp-release.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-release.apk
::Running monkeyrunner test(release,API level:15).
ren TestCpp-release-15.apk TestCpp-release.apk
call monkeyrunner Monkeyrunner_TestCpp.py TestCpp-release.apk
if %ERRORLEVEL% NEQ 0 call python ReportManager.py && exit 1
rm TestCpp-release.apk
rm Monkeyrunner_TestCpp.py
rm ReportManager.py
::Monkeyrunner success!
echo Monkeyrunner Test Success!
::Clean project files.
set PROJECT_ROOT=%PROJECT_HOME:~0,2%
%PROJECT_ROOT%
cd %PROJECT_HOME%
git checkout -f
git clean -df -x
exit 0
::End

View File

@ -1 +0,0 @@
7cda137d3b8d286470f2b504faaa77d981947cbf

View File

@ -1 +0,0 @@
RunAction "Action1", oneIteration

View File

@ -1 +0,0 @@
cce3386fa528b6991eb274e15c5ea60da91cb073

View File

@ -1,716 +0,0 @@
Dim Milliseconds
DefaultTimeout = Setting("DefaultTimeout")
If DefaultTimeout > 10000 Then
Milliseconds = 10000
Setting("DefaultTimeout") = Milliseconds
End If
Err.Clear
On Error Resume Next
call CaseFunctionName
If Err.Number <> 0 Then
If Dialog("TestCpp.exe").Exist(3) Then
Dialog("TestCpp.exe").Activate
Dialog("TestCpp.exe").Move 872,177
Dialog("TestCpp.exe").WinObject("DirectUIHWND").Click 21,235
Wait 1
End If
If DIalog("Microsoft Visual C++ Runtime").Exist(3) Then
Dialog("Microsoft Visual C++ Runtime").Activate
Dialog("Microsoft Visual C++ Runtime").Move 872,177
Wait 1
End If
WriteLog Err.Number
WriteLog Err.Description
WriteLog Err.Source
Dim FileName ,TimeNow, ResPath
ResPath = Environment.Value("TestDir")
ResPath = ResPath & "\"
TestNameNow=environment.Value("TestName")
FileName = ResPath & ""&TestNameNow & ".png"
desktop.CaptureBitmap filename,True
Systemutil.closedescendentprocesses
If Dialog("TestCpp.exe").Exist(3) Then
Dialog("TestCpp.exe").WinObject("关闭程序").Click
End If
If Dialog("Microsoft Visual C++ Runtime").Exist(3) Then
Dialog("Microsoft Visual C++ Runtime").WinButton("中止(A)").Click
End If
End If
Err.Clear
On Error goto 0
Function common_test(a,b,c)
For i = a To b
Window("Cocos2dxWin32").Click 338,291
Wait c
Next
End Function
Function random_click(a,b,c)
Dim touch_x,touch_y
Randomize
For Response = a To b
touch_x = Int((400 * Rnd + 0))
touch_y = Int((250 * Rnd + 0))
Window("Cocos2dxWin32").Click touch_x,touch_y
Wait c
Next
End Function
Function random_drag(a,b,c)
Dim drag_x,drag_y,drop_x,drop_y
Randomize
For Response = a To b
drag_x = Int((400 * Rnd + 0))
drag_y = Int((250 * Rnd + 0))
drop_x = Int((400 * Rnd + 0))
drop_y = Int((250 * Rnd + 0))
Window("Cocos2dxWin32").Drag drag_x,drag_y
Window("Cocos2dxWin32").Drop drop_x,drop_y
Wait c
Next
End Function
Function CaseFunctionName()
'SystemUtil.BlockInput
Window("Cocos2dxWin32").Activate
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ActionsTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 241,43
Wait 2
Call common_test(1,27,1)
Window("Cocos2dxWin32").Click 338,291
Wait 5
Window("Cocos2dxWin32").Click 338,291
Wait 2
Call common_test(1,5,1)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
Wait 2
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'TransitionsTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 236,77
Wait 2
Call common_test(1,26,1)
Wait 1
'MainMenu
Window("Cocos2dxWin32").Click 441,296
Wait 2
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ActionsProgressTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 287,113
Wait 2
Call common_test(1,7,2)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
Wait 2
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'EffectsTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 236,163
Wait 3
Call common_test(1,21,4)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
Wait 2
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ClickAndMoveTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 228,199
Wait 3
Call random_click(1,10,2)
Call random_click(1,100,0)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
Wait 2
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'RotateWorldTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 237,235
Wait 3.5
'MainMenu
Window("Cocos2dxWin32").Click 441,296
Wait 2
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ParticleTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 236,276
Wait 3
Call common_test(1,42,2)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
Wait 2
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ActionEaseTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Drag 363,307
Window("Cocos2dxWin32").Drop 363,10
Wait 1
Window("Cocos2dxWin32").Click 237,19
Wait 2
Call common_test(1,13,2)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
Wait 2
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'MotionStreakTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 240,61
Wait 2
Window("Cocos2dxWin32").Click 230,239
Window("Cocos2dxWin32").Click 338,291
Call random_drag(1,10,0)
Window("Cocos2dxWin32").Click 230,239
Call random_drag(1,10,0)
Window("Cocos2dxWin32").Click 338,291
Wait 2
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'DrawPrimitivesTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 235,101
Wait 1
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'NodeTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 237,139
Wait 1
Call common_test(1,13,1)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'TouchesTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 238,183
Window("Cocos2dxWin32").Drag 236,221
Window("Cocos2dxWin32").Drop 175,226
Wait 5
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'MenuTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 234,220
Window("Cocos2dxWin32").Click 238,63
Window("Cocos2dxWin32").Click 158,132
Window("Cocos2dxWin32").Click 238,155
Window("Cocos2dxWin32").Click 236,180
Window("Cocos2dxWin32").Click 158,188
Window("Cocos2dxWin32").Click 313,184
Window("Cocos2dxWin32").Click 190,217
Window("Cocos2dxWin32").Click 235,216
Window("Cocos2dxWin32").Click 205,144
Window("Cocos2dxWin32").Click 218,143
Window("Cocos2dxWin32").Click 237,247
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ActionManagerTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 234,261
Call common_test(1,4,3)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'LayerTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 240,302
Call random_drag(1,10,0)
Window("Cocos2dxWin32").Click 338,291
Wait 2
Window("Cocos2dxWin32").Click 338,291
Wait 2
Window("Cocos2dxWin32").Click 338,291
Call random_drag(1,10,0)
Window("Cocos2dxWin32").Click 338,291
Wait 1
Window("Cocos2dxWin32").Click 242,164
Wait 1
Window("Cocos2dxWin32").Click 338,291
Wait 1
Window("Cocos2dxWin32").Click 254,163
Wait 1
Window("Cocos2dxWin32").Click 338,291
Wait 1
Window("Cocos2dxWin32").Click 231,164
Wait 1
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'SceneTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Drag 370,306
Window("Cocos2dxWin32").Drop 370,-20
Wait 1
Window("Cocos2dxWin32").Click 234,17
Wait 1
Window("Cocos2dxWin32").Click 230,111
Window("Cocos2dxWin32").Click 230,111
Window("Cocos2dxWin32").Click 230,111
Window("Cocos2dxWin32").Click 233,163
Window("Cocos2dxWin32").Click 226,218
Window("Cocos2dxWin32").Click 226,218
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ParallaxTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 232,55
Wait 5
Window("Cocos2dxWin32").Click 338,291
Call random_drag(1,10,0)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'TileMapTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 233,99
Wait 2
Window("Cocos2dxWin32").Click 338,291
Wait 2
Call random_drag(1,10,0)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'IntervalTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 235,139
Wait 3
Window("Cocos2dxWin32").Click 224,48
Wait 1
Window("Cocos2dxWin32").Click 231,52
Window("Cocos2dxWin32").Click 228,56
Window("Cocos2dxWin32").Click 228,56
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ChipmunkAccelTouchTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 235,178
Call random_click(1,20,2)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'LabelTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 239,216
Wait 3
Call common_test(1,25,0.5)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'TextInputTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 236,255
Window("Cocos2dxWin32").Click 238,161
Const constring = "0123456789abcdefgchijklmnopqrstuvwxyz"
Dim TextInput_i,TextInput_j,randstring
Randomize
For TextInput_i=1 To 8
randstring = randstring & Mid(constring, Int(Len(constring)*Rnd)+1, 1)
Next
Window("Cocos2dxWin32").Type randstring
Window("Cocos2dxWin32").Click 338,291
Window("Cocos2dxWin32").Click 238,161
Randomize
For TextInput_j=1 To 8
randstring = randstring & Mid(constring, Int(Len(constring)*Rnd)+1, 1)
Next
Window("Cocos2dxWin32").Type randstring
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'SpriteTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 238,294
Call random_click(1,15,0.2)
Window("Cocos2dxWin32").Click 338,291
Call random_click(1,15,0.2)
Window("Cocos2dxWin32").Click 338,291
Call common_test(1,108,0.5)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'SchdulerTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Drag 359,309
Window("Cocos2dxWin32").Drop 359,-11
Wait 1
'Schedule with delay of 3sec,repeat 4
Window("Cocos2dxWin32").Click 236,15
Window("Cocos2dxWin32").Click 338,291
'Scheduler timeScale Test
Window("Cocos2dxWin32").Drag 260,212
Window("Cocos2dxWin32").Drop 301,212
Wait 1
Window("Cocos2dxWin32").Drag 301,212
Window("Cocos2dxWin32").Drop 209,214
Wait 1
Window("Cocos2dxWin32").Drag 209,214
Window("Cocos2dxWin32").Drop 100,208
Wait 2
Window("Cocos2dxWin32").Click 338,291
'Two custom schedulers
Window("Cocos2dxWin32").Drag 126,16
Window("Cocos2dxWin32").Drop 81,22
Wait 1
Window("Cocos2dxWin32").Drag 361,19
Window("Cocos2dxWin32").Drop 422,22
Wait 3
Window("Cocos2dxWin32").Click 338,291
'Self -remove an scheduler
Window("Cocos2dxWin32").Click 338,291
'Pause/Resume
Window("Cocos2dxWin32").Click 338,291
'Pause/Resume
Wait 3
Window("Cocos2dxWin32").Click 338,291
'Unschedule All selectors
Window("Cocos2dxWin32").Click 338,291
'Unschedule All selectors(HARD)
Wait 2
Window("Cocos2dxWin32").Click 338,291
'Unschedule All selectors
Wait 4
Window("Cocos2dxWin32").Click 338,291
'Schedule from Schedule
Window("Cocos2dxWin32").Click 338,291
'Schedule update with priority
Window("Cocos2dxWin32").Click 338,291
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'RenderTextureTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 240,59
'Save Image
Call random_drag(1,10,0)
Window("Cocos2dxWin32").Click 388,17
Window("Cocos2dxWin32").Click 398,41
Wait 1
Window("Cocos2dxWin32").Click 338,291
'Testing issue #937
Window("Cocos2dxWin32").Click 338,291
'Testing Z Buffer in Render Texture
Call random_click(1,10,0)
Window("Cocos2dxWin32").Click 338,291
'Testing depthStencil attachment
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Texture2DTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 234,97
Call common_test(1,35,0.5)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Box2dTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 235,134
Call random_click(1,30,2)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Box2dTestBed
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 236,176
Call common_test(1,35,2)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'EffectAdvancedTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 237,217
Call common_test(1,5,1)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'AccelerometerTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 244,255
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'KeypadTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 240,298
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'CocosDenshionTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Drag 377,314
Window("Cocos2dxWin32").Drop 377,0
Wait 1
Window("Cocos2dxWin32").Click 243,20
Window("Cocos2dxWin32").Click 248,38
Wait 1
Window("Cocos2dxWin32").Click 248,78
Wait 1
Window("Cocos2dxWin32").Click 247,121
Wait 1
Window("Cocos2dxWin32").Click 246,158
Wait 1
Window("Cocos2dxWin32").Click 251,202
Wait 1
Window("Cocos2dxWin32").Click 246,238
Wait 1
Window("Cocos2dxWin32").Click 241,282
Wait 1
Window("Cocos2dxWin32").Drag 427,260
Window("Cocos2dxWin32").Drop 427,6
Window("Cocos2dxWin32").Click 232,18
Wait 1
Window("Cocos2dxWin32").Click 245,56
Wait 1
Window("Cocos2dxWin32").Click 242,109
Wait 1
Window("Cocos2dxWin32").Click 242,144
Wait 1
Window("Cocos2dxWin32").Click 243,189
Wait 1
Window("Cocos2dxWin32").Click 243,230
Wait 1
Window("Cocos2dxWin32").Click 254,275
Wait 1
Window("Cocos2dxWin32").Click 248,304
Wait 1
Window("Cocos2dxWin32").Drag 412,272
Window("Cocos2dxWin32").Drop 412,-13
Window("Cocos2dxWin32").Click 235,124
Wait 1
Window("Cocos2dxWin32").Click 238,158
Wait 1
Window("Cocos2dxWin32").Click 229,200
Wait 1
Window("Cocos2dxWin32").Click 239,243
Wait 1
Window("Cocos2dxWin32").Click 246,277
Wait 1
'MainMenu
Window("Cocos2dxWin32").Click 441,296
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'PerformanceTest
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 237,64
Window("Cocos2dxWin32").Click 238,37
'PerformanceNodeChildrenTest
Window("Cocos2dxWin32").Click 238,38
Dim Performance_i
For Performance_i = 1 To 4
Window("Cocos2dxWin32").Click 273,145
Window("Cocos2dxWin32").Click 338,291
Wait 1
Next
'Back
Window("Cocos2dxWin32").Click 427,290
'PerformanceParticeTest
Window("Cocos2dxWin32").Click 237,78
For Performance_j = 1 To 4
Window("Cocos2dxWin32").Click 273,145
Window("Cocos2dxWin32").Click 338,291
Wait 1
Next
'Back
Window("Cocos2dxWin32").Click 427,290
'PerformanceSpriteTest
Window("Cocos2dxWin32").Click 233,120
Dim Performance_k
For Performance_k = 1 To 5
Window("Cocos2dxWin32").Click 271,64
Window("Cocos2dxWin32").Click 338,291
Wait 1
Next
'Back
Window("Cocos2dxWin32").Click 427,290
'PerformanceTextureTest
Window("Cocos2dxWin32").Click 229,159
'Back
Window("Cocos2dxWin32").Click 427,290
'PerformanceTouchesTest
Window("Cocos2dxWin32").Click 234,200
Call random_drag(1,10,0)
Window("Cocos2dxWin32").Click 338,291
Call random_drag(1,10,0)
'Back
Window("Cocos2dxWin32").Click 427,290
'MainMenu
Window("Cocos2dxWin32").Click 441,296
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ZwoptexTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 233,104
Wait 1
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'CurlTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 239,141
Window("Cocos2dxWin32").Click 242,160
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'UserDefaultTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 238,184
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'BugsTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 240,222
'MainMenu
Window("Cocos2dxWin32").Click 441,296
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'FontTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 237,261
Call common_test(1,4,0.5)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'CurrentLanguageTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 244,301
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'TextureCacheTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Drag 385,309
Window("Cocos2dxWin32").Drop 385,33
Wait 1
Window("Cocos2dxWin32").Click 241,159
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'ExtensionsTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 241,197
Wait 1
'NotificationCenterTest
Window("Cocos2dxWin32").Click 235,41
Window("Cocos2dxWin32").Click 339,166
Window("Cocos2dxWin32").Click 339,166
Window("Cocos2dxWin32").Click 113,189
'Back
Window("Cocos2dxWin32").Click 429,289
Wait 1
'CCControlButtonTest
Window("Cocos2dxWin32").Click 238,79
Window("Cocos2dxWin32").Drag 118,181
Window("Cocos2dxWin32").Drop 374,189
Wait 1
Window("Cocos2dxWin32").Drag 367,179
Window("Cocos2dxWin32").Drop 76,183
Wait 1
'Back
Window("Cocos2dxWin32").Click 422,293
'CocosBuilderTest
Window("Cocos2dxWin32").Click 237,119
'Menus_Items
Window("Cocos2dxWin32").Click 137,158
Window("Cocos2dxWin32").Click 242,157
Window("Cocos2dxWin32").Click 113,147
Window("Cocos2dxWin32").Click 23,20
'Button
Window("Cocos2dxWin32").Click 132,209
Window("Cocos2dxWin32").Click 240,149
Window("Cocos2dxWin32").Drag 255,150
Window("Cocos2dxWin32").Drop 259,233
Window("Cocos2dxWin32").Click 23,20
'Particle Systems
Window("Cocos2dxWin32").Click 131,261
Window("Cocos2dxWin32").Click 23,20
'Sprites_9 Slice
Window("Cocos2dxWin32").Click 341,161
Window("Cocos2dxWin32").Click 23,20
'Labels
Window("Cocos2dxWin32").Click 345,210
Window("Cocos2dxWin32").Click 23,20
'ScrollViewTest
Window("Cocos2dxWin32").Click 347,259
Call random_drag(1,10,0)
Window("Cocos2dxWin32").Click 23,20
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'SharderTest
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 242,239
Dim Sharder_i
Call common_test(1,6,0.5)
Window("Cocos2dxWin32").Drag 197,235
Window("Cocos2dxWin32").Drop 358,236
Wait 1
Window("Cocos2dxWin32").Drag 358,236
Window("Cocos2dxWin32").Drop 78,221
Window("Cocos2dxWin32").Click 338,291
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'MutiTouchTest
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 240,279
Call random_drag(1,5,0)
'MainMenu
Window("Cocos2dxWin32").Click 441,296
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Quit
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Window("Cocos2dxWin32").Click 461,22
'SystemUtil.UnblockInput
End function

View File

@ -1 +0,0 @@
1bbfcd16748887dfb66d264a6327737e2ed5a3b1

View File

@ -1,89 +0,0 @@
[General]
XlBridgeTimeout=120
ContinueOnError=0
AutomaticTransactions=0
AutomaticTransactionsPerFunc=0
automatic_nested_transactions=1
[ThinkTime]
Options=RECORDED
Factor=1.000000
LimitFlag=0
Limit=10
ThinkTimeRandomLow=50
ThinkTimeRandomHigh=150
[Log]
LogOptions=LogExtended
MsgClassData=0
MsgClassParameters=0
MsgClassFull=0
[RtsNetwork]
LoadImages=1
LoadActiveX=1
LoadJava=0
LoadScripts=1
NavigationTimeout=60000
ObjectTimeout=3000
[RtsPerformance]
MinThinkTime=3500
MaxThinkTime=3500
AutoThinkTime=1
EnableChecks=0
ExcludeThinkTime=0
FitThinkTime=0
[RtsUserInfo]
UserName=
Password=503ee35ae
[RtsGeneral]
EnableAutoTrans=1
FailOnHttpErrors=0
RunInSeparateThread=0
[WEB]
HttpVer=1.1
UseCustomAgent=1
SimulateCache=1
TurboLoadTechnology=0
WinInetReplay=0
EnableModemSpeed=0
ModemSpeed=14400
KeepAlive=Yes
SearchForImages=1
CacheSize=20000
MaxConnections=4
AutomaticThinkTime=0
MaxAutoThinkTime=0
MinAutoThinkTime=0
ConnectTimeout=120
ReceiveTimeout=120
ResolveTimeout=120
EnableChecks=1
AnalogMode=1
ResetContext=1
ProxyUseBrowser=1
ProxyUseProxy=0
ProxyHTTPHost=
ProxyHTTPSHost=
ProxyHTTPPort=0
ProxyHTTPSPort=0
ProxyUseSame=0
ProxyNoLocal=0
ProxyBypass=
ProxyUserName=
ProxyPassword=
UseMshtml=1
Retry401ThinkTime="0"
CustomUserAgent=Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)
UseBrowserEmulation=0
[RtsConfigfuration]
AutMode=0
ScalableMode=1
EnableShowBrowser=0
[Snapshots]
SnapshotOnErrorActive=0

View File

@ -1,15 +0,0 @@
[RunLogicInitRoot]
RunLogicActionType="VuserInit"
[RunLogicEndRoot]
RunLogicActionType="VuserEnd"
[RunLogicRunRoot]
RunLogicNumOfIterations="1"
MercIniTreeSons="Action0"
RunLogicActionOrder="Action0"
[RunLogicRunRoot:Action0]
MercIniTreeFather="RunLogicRunRoot"
RunLogicObjectKind="Action"
RunLogicInterpreterType="ActiveScript"

View File

@ -1,54 +0,0 @@
[General]
Type=Tulip
RunType=ActiveScript
DefaultCfg=default.cfg
DefaultRunLogic=default.usp
ParamRightBrace=>
ParamLeftBrace=<
NewFunctionHeader=1
MinorVersion=0
MajorVersion=6
DevelopTool=AQT
[Actions]
Action0=Action0\Script.mts
Action1=Action1\Script.mts
[VuserProfiles]
Profiles=Default Profile
[CfgFiles]
Default Profile=default.cfg
[RunLogicFiles]
Default Profile=default.usp
[Rendezvous]
[Transactions]
[ActiveScript]
Lang=none
[TulipInfo]
ProductName=QuickTest Professional
Version=10.00
[TulipAddins]
ActiveX=
Database=
Windows Applications=
TEA=
Web=
XML=
[ExtraFiles]
Test.tsp=
Default.xls=
Parameters.mtr=
Action0\Script.mts=
Action0\Resource.mtr=
Action0\ObjectRepository.bdb=
Action1\Script.mts=
Action1\Resource.mtr=
Action1\ObjectRepository.bdb=

View File

@ -1,32 +0,0 @@
::This script is used to accomplish a vs project automated testing.
::You should make sure you have set %VS90COMNTOOLS%.
::Set the directory of qtp project.
set qtpproj=%cd%
cd ..\..\..\..\
::Compile vs project.
"%VS90COMNTOOLS%..\IDE\devenv.com" "%cd%\cocos2d-win32.vc2008.sln" /Build "Debug|Win32"
::Set the directory of test project's resources.
set CC_TEST_RES=%cd%\samples\TestCpp\Resources\*.*
set CC_HELLOWORLD_RES=%cd%\samples\HelloCpp\Resources\*.*
set CC_HELLOLUA_RES=%cd%\samples\HelloLua\Resources\*.*
set CC_TESTJS_RES=%cd%\samples\TestJavascript\Resources\*.*
cd Debug.win32
::Copy resources to destination directory.
xcopy /E /Y /Q "%CC_TEST_RES%" .
xcopy /E /Y /Q "%CC_HELLOWORLD_RES%" .
xcopy /E /Y /Q "%CC_HELLOLUA_RES%" .
xcopy /E /Y /Q "%CC_TESTJS_RES%" .
::Run qtp test.
cd ..
cd %qtpproj%\qtp_win32
::Call automated test script.
cscript qtrunner.vbs
pause

View File

@ -1,32 +0,0 @@
::This script is used to accomplish a vs project automated testing.
::You should make sure you have set %VS90COMNTOOLS%.
::Set the directory of qtp project.
set qtpproj=%cd%
cd ..\..\..\..\
::Compile vs project.
"%VS90COMNTOOLS%..\IDE\devenv.com" "%cd%\cocos2d-win32.vc2008.sln" /Build "Release|Win32"
::Set the directory of test project's resources.
set CC_TEST_RES=%cd%\samples\Cpp\TestCpp\Resources\*.*
set CC_HELLOWORLD_RES=%cd%\samples\Cpp\HelloCpp\Resources\*.*
set CC_HELLOLUA_RES=%cd%\samples\Lua\HelloLua\Resources\*.*
set CC_TESTJS_RES=%cd%\samples\Javascript\TestJavascript\Resources\*.*
cd Debug.win32
::Copy resources to destination directory.
xcopy /E /Y /Q "%CC_TEST_RES%" .
xcopy /E /Y /Q "%CC_HELLOWORLD_RES%" .
xcopy /E /Y /Q "%CC_HELLOLUA_RES%" .
xcopy /E /Y /Q "%CC_TESTJS_RES%" .
::Run qtp test.
cd ..
cd %qtpproj%\qtp_win32
::Call automated test script.
cscript qtrunner.vbs
pause

View File

@ -1,32 +0,0 @@
::This script is used to accomplish a vs project automated testing.
::You should make sure you have set %VS100COMNTOOLS%.
::Set the directory of qtp project.
set qtpproj=%cd%
cd ..\..\..\..\
::Compile vs project.
"%VS100COMNTOOLS%..\IDE\devenv.com" "%cd%\cocos2d-win32.vc2010.sln" /Build "Debug|Win32"
::Set the directory of test project's resources.
set CC_TEST_RES=%cd%\samples\TestCpp\Resources\*.*
set CC_HELLOWORLD_RES=%cd%\samples\HelloCpp\Resources\*.*
set CC_HELLOLUA_RES=%cd%\samples\HelloLua\Resources\*.*
set CC_TESTJS_RES=%cd%\samples\TestJavascript\Resources\*.*
cd Debug.win32
::Copy resources to destination directory.
xcopy /E /Y /Q "%CC_TEST_RES%" .
xcopy /E /Y /Q "%CC_HELLOWORLD_RES%" .
xcopy /E /Y /Q "%CC_HELLOLUA_RES%" .
xcopy /E /Y /Q "%CC_TESTJS_RES%" .
::Run qtp test.
cd ..
cd %qtpproj%\qtp_win32
::Call automated test script.
cscript qtrunner.vbs
pause

View File

@ -1,32 +0,0 @@
::This script is used to accomplish a vs project automated testing.
::You should make sure you have set %VS100COMNTOOLS%.
::Set the directory of qtp project.
set qtpproj=%cd%
cd ..\..\..\..\
::Compile vs project.
"%VS100COMNTOOLS%..\IDE\devenv.com" "%cd%\cocos2d-win32.vc2010.sln" /Build "Release|Win32"
::Set the directory of test project's resources.
set CC_TEST_RES=%cd%\samples\Cpp\TestCpp\Resources\*.*
set CC_HELLOWORLD_RES=%cd%\samples\Cpp\HelloCpp\Resources\*.*
set CC_HELLOLUA_RES=%cd%\samples\Lua\HelloLua\Resources\*.*
set CC_TESTJS_RES=%cd%\samples\Javascript\TestJavascript\Resources\*.*
cd Release.win32
::Copy resources to destination directory.
xcopy /E /Y /Q "%CC_TEST_RES%" .
xcopy /E /Y /Q "%CC_HELLOWORLD_RES%" .
xcopy /E /Y /Q "%CC_HELLOLUA_RES%" .
xcopy /E /Y /Q "%CC_TESTJS_RES%" .
::Run qtp test.
cd ..
cd %qtpproj%\qtp_win32
::Call automated test script.
cscript qtrunner.vbs
pause