diff --git a/CMakeLists.txt b/CMakeLists.txt
index 075489b2be..3faaee653d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,8 +46,8 @@ option(BUILD_EDITOR_SPINE "Build editor support for spine" ON)
option(BUILD_EDITOR_COCOSTUDIO "Build editor support for cocostudio" ON)
option(BUILD_EDITOR_COCOSBUILDER "Build editor support for cocosbuilder" ON)
-option(BUILD_TestCpp "Only build TestCpp sample" ON)
-option(BUILD_TestLua "Only build TestLua sample" OFF)
+option(BUILD_CppTests "Only build TestCpp sample" ON)
+option(BUILD_LuaTests "Only build TestLua sample" OFF)
else()#temp
option(USE_CHIPMUNK "Use chipmunk for physics library" ON)
@@ -62,8 +62,8 @@ option(BUILD_EDITOR_SPINE "Build editor support for spine" ON)
option(BUILD_EDITOR_COCOSTUDIO "Build editor support for cocostudio" ON)
option(BUILD_EDITOR_COCOSBUILDER "Build editor support for cocosbuilder" ON)
-option(BUILD_TestCpp "Only build TestCpp sample" ON)
-option(BUILD_TestLua "Only build TestLua sample" ON)
+option(BUILD_CppTests "Only build TestCpp sample" ON)
+option(BUILD_LuaTests "Only build TestLua sample" ON)
endif()#temp
@@ -144,6 +144,8 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/cocos/physics
${CMAKE_CURRENT_SOURCE_DIR}/cocos/editor-support
${CMAKE_CURRENT_SOURCE_DIR}/cocos/math/kazmath
+ ${CMAKE_CURRENT_SOURCE_DIR}/cocos/scripting/lua-bindings/auto
+ ${CMAKE_CURRENT_SOURCE_DIR}/cocos/scripting/lua-bindings/manual
${CMAKE_CURRENT_SOURCE_DIR}/extensions
${CMAKE_CURRENT_SOURCE_DIR}/external
${CMAKE_CURRENT_SOURCE_DIR}/external/tinyxml2
@@ -289,10 +291,14 @@ endif(BUILD_LIBS_LUA)
# build tests
-if(BUILD_TestCpp)
-add_subdirectory(samples/cpp-tests)
-endif(BUILD_TestCpp)
+add_subdirectory(tests/cpp-empty-test)
-if(BUILD_TestLua)
-add_subdirectory(samples/lua-tests/project)
-endif(BUILD_TestLua)
+if(BUILD_CppTests)
+add_subdirectory(tests/cpp-tests)
+endif(BUILD_CppTests)
+
+add_subdirectory(tests/lua-empty-test/project)
+
+if(BUILD_LuaTests)
+add_subdirectory(tests/lua-tests/project)
+endif(BUILD_LuaTests)
diff --git a/build/android-build.py b/build/android-build.py
index 3ef3ae6f2a..b2fbc48a3c 100755
--- a/build/android-build.py
+++ b/build/android-build.py
@@ -7,8 +7,8 @@ import os, os.path
import shutil
from optparse import OptionParser
-CPP_SAMPLES = ['testcpp']
-LUA_SAMPLES = ['testlua']
+CPP_SAMPLES = ['cpp-empty-test', 'cpp-tests']
+LUA_SAMPLES = ['lua-empty-test', 'lua-tests']
ALL_SAMPLES = CPP_SAMPLES + LUA_SAMPLES
def get_num_of_cpu():
@@ -146,21 +146,34 @@ def copy_resources(target, app_android_root):
if os.path.isdir(assets_dir):
shutil.rmtree(assets_dir)
- # copy resources(cpp samples and lua samples)
os.mkdir(assets_dir)
- resources_dir = os.path.join(app_android_root, "../../res")
- if os.path.isdir(resources_dir):
- copy_files(resources_dir, assets_dir)
+
+ # copy resources(cpp samples)
+ if target in CPP_SAMPLES:
+ resources_dir = os.path.join(app_android_root, "../Resources")
+ if os.path.isdir(resources_dir):
+ copy_files(resources_dir, assets_dir)
+
# lua samples should copy lua script
if target in LUA_SAMPLES:
+ resources_dir = os.path.join(app_android_root, "../../res")
+ assets_res_dir = os.path.join(assets_dir, "res");
+ os.mkdir(assets_res_dir)
+ copy_files(resources_dir, assets_res_dir)
+
+ resources_dir = os.path.join(app_android_root, "../../src")
+ assets_src_dir = os.path.join(assets_dir, "src");
+ os.mkdir(assets_src_dir)
+ copy_files(resources_dir, assets_src_dir)
+
resources_dir = os.path.join(app_android_root, "../../../../cocos/scripting/lua-bindings/script")
copy_files(resources_dir, assets_dir)
- # TestLua shared resources with TestCpp
- if target == "testlua":
+ # lua-tests shared resources with cpp-tests
+ if target == "lua-tests":
resources_dir = os.path.join(app_android_root, "../../../cpp-tests/Resources")
- copy_files(resources_dir, assets_dir)
+ copy_files(resources_dir, assets_res_dir)
def build_samples(target,ndk_build_param,android_platform,build_mode):
@@ -186,11 +199,17 @@ def build_samples(target,ndk_build_param,android_platform,build_mode):
build_mode = 'debug'
app_android_root = ''
+
+ target_proj_path_map = {
+ "cpp-empty-test": "tests/cpp-empty-test/proj.android",
+ "cpp-tests": "tests/cpp-tests/proj.android",
+ "lua-empty-test": "tests/lua-empty-test/project/proj.android",
+ "lua-tests": "tests/lua-tests/project/proj.android"
+ }
+
for target in build_targets:
- if target == 'testcpp':
- app_android_root = os.path.join(cocos_root, 'samples/cpp-tests/proj.android')
- elif target == 'testlua':
- app_android_root = os.path.join(cocos_root, 'samples/lua-tests/project/proj.android')
+ if target in target_proj_path_map:
+ app_android_root = os.path.join(cocos_root, target_proj_path_map[target])
else:
print 'unknown target: %s' % target
continue
@@ -205,14 +224,13 @@ if __name__ == '__main__':
usage = """
This script is mainy used for building tests built-in with cocos2d-x.
- Usage: %prog [options] [testcpp|testlua]
+ Usage: %prog [options] [cpp-empty-test|cpp-tests|lua-empty-test|lua-tests]
- If you are new to cocos2d-x, I recommend you start with testcpp, testlua.
+ If you are new to cocos2d-x, I recommend you start with cpp-empty-test, lua-empty-test.
You can combine these targets like this:
- //1. to build simplegame and assetsmanager
- python android-build.py -p 10 testcpp testlua
+ python android-build.py -p 10 cpp-empty-test lua-empty-test
Note: You should install ant to generate apk while building the andriod tests. But it is optional. You can generate apk with eclipse.
diff --git a/build/cocos2d-win32.vc2012.sln b/build/cocos2d-win32.vc2012.sln
index b7fd3b9d54..8b0bce5dbe 100644
--- a/build/cocos2d-win32.vc2012.sln
+++ b/build/cocos2d-win32.vc2012.sln
@@ -11,7 +11,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\external\
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestCpp", "..\samples\cpp-tests\proj.win32\TestCpp.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestCpp", "..\tests\cpp-tests\proj.win32\TestCpp.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosBuilder", "..\cocos\editor-support\cocosbuilder\proj.win32\libCocosBuilder.vcxproj", "{811C0DAB-7B96-4BD3-A154-B7572B58E4AB}"
EndProject
@@ -27,7 +27,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libLocalStorage", "..\cocos
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblua", "..\cocos\scripting\lua-bindings\proj.win32\liblua.vcxproj", "{DDC3E27F-004D-4DD4-9DD3-931A013D2159}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestLua", "..\samples\lua-tests\project\proj.win32\TestLua.win32.vcxproj", "{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestLua", "..\tests\lua-tests\project\proj.win32\TestLua.win32.vcxproj", "{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/build/cocos2d_samples.xcodeproj/project.pbxproj.REMOVED.git-id b/build/cocos2d_samples.xcodeproj/project.pbxproj.REMOVED.git-id
deleted file mode 100644
index 4936b3446c..0000000000
--- a/build/cocos2d_samples.xcodeproj/project.pbxproj.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-828f0bfcdb53dea52131e3bd9fb86ba153449816
\ No newline at end of file
diff --git a/build/cocos2d_tests.xcodeproj/project.pbxproj.REMOVED.git-id b/build/cocos2d_tests.xcodeproj/project.pbxproj.REMOVED.git-id
new file mode 100644
index 0000000000..4b7477d84e
--- /dev/null
+++ b/build/cocos2d_tests.xcodeproj/project.pbxproj.REMOVED.git-id
@@ -0,0 +1 @@
+cd77eb36ccea060937315cc27f757b867b262531
\ No newline at end of file
diff --git a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/build all samples Mac.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/build all tests Mac.xcscheme
similarity index 90%
rename from build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/build all samples Mac.xcscheme
rename to build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/build all tests Mac.xcscheme
index 917d3d4152..796187849d 100644
--- a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/build all samples Mac.xcscheme
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/build all tests Mac.xcscheme
@@ -15,9 +15,9 @@
+ BuildableName = "build all tests Mac"
+ BlueprintName = "build all tests Mac"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
diff --git a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/build all samples iOS.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/build all tests iOS.xcscheme
similarity index 90%
rename from build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/build all samples iOS.xcscheme
rename to build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/build all tests iOS.xcscheme
index 28132244ba..501ada4ed3 100644
--- a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/build all samples iOS.xcscheme
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/build all tests iOS.xcscheme
@@ -15,9 +15,9 @@
+ BuildableName = "build all tests iOS"
+ BlueprintName = "build all tests iOS"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
diff --git a/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-empty-test Mac.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-empty-test Mac.xcscheme
new file mode 100644
index 0000000000..85a27132e0
--- /dev/null
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-empty-test Mac.xcscheme
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-empty-test iOS.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-empty-test iOS.xcscheme
new file mode 100644
index 0000000000..9abcd49646
--- /dev/null
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-empty-test iOS.xcscheme
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test cpp Mac.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-tests Mac.xcscheme
similarity index 79%
rename from build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test cpp Mac.xcscheme
rename to build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-tests Mac.xcscheme
index 4745b9566e..ed17d820a6 100644
--- a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test cpp Mac.xcscheme
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-tests Mac.xcscheme
@@ -15,9 +15,9 @@
+ BuildableName = "cpp-tests Mac.app"
+ BlueprintName = "cpp-tests Mac"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -33,9 +33,9 @@
+ BuildableName = "cpp-tests Mac.app"
+ BlueprintName = "cpp-tests Mac"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -52,9 +52,9 @@
+ BuildableName = "cpp-tests Mac.app"
+ BlueprintName = "cpp-tests Mac"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -70,9 +70,9 @@
+ BuildableName = "cpp-tests Mac.app"
+ BlueprintName = "cpp-tests Mac"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
diff --git a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test cpp iOS.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-tests iOS.xcscheme
similarity index 79%
rename from build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test cpp iOS.xcscheme
rename to build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-tests iOS.xcscheme
index c90d0cb995..b58cd1df88 100644
--- a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test cpp iOS.xcscheme
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/cpp-tests iOS.xcscheme
@@ -15,9 +15,9 @@
+ BuildableName = "cpp-tests iOS.app"
+ BlueprintName = "cpp-tests iOS"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -33,9 +33,9 @@
+ BuildableName = "cpp-tests iOS.app"
+ BlueprintName = "cpp-tests iOS"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -52,9 +52,9 @@
+ BuildableName = "cpp-tests iOS.app"
+ BlueprintName = "cpp-tests iOS"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -70,9 +70,9 @@
+ BuildableName = "cpp-tests iOS.app"
+ BlueprintName = "cpp-tests iOS"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
diff --git a/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-empty-test Mac.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-empty-test Mac.xcscheme
new file mode 100644
index 0000000000..1834a506ae
--- /dev/null
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-empty-test Mac.xcscheme
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-empty-test iOS.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-empty-test iOS.xcscheme
new file mode 100644
index 0000000000..1f274901f9
--- /dev/null
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-empty-test iOS.xcscheme
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test lua Mac.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-tests Mac.xcscheme
similarity index 79%
rename from build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test lua Mac.xcscheme
rename to build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-tests Mac.xcscheme
index 70f1231cab..5126aa1d0c 100644
--- a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test lua Mac.xcscheme
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-tests Mac.xcscheme
@@ -15,9 +15,9 @@
+ BuildableName = "lua-tests Mac.app"
+ BlueprintName = "lua-tests Mac"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -33,9 +33,9 @@
+ BuildableName = "lua-tests Mac.app"
+ BlueprintName = "lua-tests Mac"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -52,9 +52,9 @@
+ BuildableName = "lua-tests Mac.app"
+ BlueprintName = "lua-tests Mac"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -70,9 +70,9 @@
+ BuildableName = "lua-tests Mac.app"
+ BlueprintName = "lua-tests Mac"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
diff --git a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test lua iOS.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-tests iOS.xcscheme
similarity index 79%
rename from build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test lua iOS.xcscheme
rename to build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-tests iOS.xcscheme
index 39fa95f160..b0b07b09d5 100644
--- a/build/cocos2d_samples.xcodeproj/xcshareddata/xcschemes/Test lua iOS.xcscheme
+++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/lua-tests iOS.xcscheme
@@ -15,9 +15,9 @@
+ BuildableName = "lua-tests iOS.app"
+ BlueprintName = "lua-tests iOS"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -33,9 +33,9 @@
+ BuildableName = "lua-tests iOS.app"
+ BlueprintName = "lua-tests iOS"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -52,9 +52,9 @@
+ BuildableName = "lua-tests iOS.app"
+ BlueprintName = "lua-tests iOS"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
@@ -70,9 +70,9 @@
+ BuildableName = "lua-tests iOS.app"
+ BlueprintName = "lua-tests iOS"
+ ReferencedContainer = "container:cocos2d_tests.xcodeproj">
diff --git a/samples/cpp-hello/.gitkeep b/samples/cpp-hello/.gitkeep
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/cpp-tests/proj.android/jni/Android.mk b/samples/cpp-tests/proj.android/jni/Android.mk
deleted file mode 100644
index 83e3f8612d..0000000000
--- a/samples/cpp-tests/proj.android/jni/Android.mk
+++ /dev/null
@@ -1,17 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := testcpp_shared
-
-LOCAL_MODULE_FILENAME := libtestcpp
-
-LOCAL_SRC_FILES := testcpp/main.cpp
-
-LOCAL_C_INCLUDES := ../../Classes
-
-LOCAL_WHOLE_STATIC_LIBRARIES := cocos_testcpp_common
-
-include $(BUILD_SHARED_LIBRARY)
-
-$(call import-module,samples/cpp-tests)
diff --git a/samples/cpp-tests/proj.android/src/nojava.txt b/samples/cpp-tests/proj.android/src/nojava.txt
deleted file mode 100644
index 26a79fd674..0000000000
--- a/samples/cpp-tests/proj.android/src/nojava.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-No Java files
-src/ is required for Android's build.xml to operate correctly.
-git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.
diff --git a/samples/cpp-tests/proj.ios/iphone_Prefix.pch b/samples/cpp-tests/proj.ios/iphone_Prefix.pch
deleted file mode 100644
index 5b4e2fd9e1..0000000000
--- a/samples/cpp-tests/proj.ios/iphone_Prefix.pch
+++ /dev/null
@@ -1,8 +0,0 @@
-//
-// Prefix header for all source files of the 'iphone' target in the 'iphone' project
-//
-
-#ifdef __OBJC__
- #import
- #import
-#endif
diff --git a/samples/lua-hello/.gitkeep b/samples/lua-hello/.gitkeep
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/lua-tests/project/proj.ios_mac/mac/TestLua_Prefix.pch b/samples/lua-tests/project/proj.ios_mac/mac/TestLua_Prefix.pch
deleted file mode 100644
index 46c36a7e99..0000000000
--- a/samples/lua-tests/project/proj.ios_mac/mac/TestLua_Prefix.pch
+++ /dev/null
@@ -1,7 +0,0 @@
-//
-// Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project
-//
-
-#ifdef __OBJC__
- #import
-#endif
diff --git a/tests/cpp-empty-test/CMakeLists.txt b/tests/cpp-empty-test/CMakeLists.txt
new file mode 100644
index 0000000000..88ebaceb4e
--- /dev/null
+++ b/tests/cpp-empty-test/CMakeLists.txt
@@ -0,0 +1,75 @@
+set(APP_NAME cpp-empty-test)
+
+if(QT)
+ set(PLATFORM_SRC
+ proj.qt/main.cpp
+ )
+elseif(ANDROID)
+ set(PLATFORM_SRC
+ proj.android/jni/hellocpp/main.cpp
+ )
+elseif(WIN32)
+ set(PLATFORM_SRC
+ proj.win32/main.cpp
+ )
+elseif(APPLE)
+ if(IOS)
+ set(PLATFORM_SRC
+ proj.ios/main.m
+ proj.ios/AppController.mm
+ proj.ios/RootViewController.mm
+ )
+ else()
+ set(PLATFORM_SRC
+ proj.mac/main.m
+ )
+ endif()
+else()
+ set(PLATFORM_SRC
+ proj.linux/main.cpp
+ )
+ endif()
+
+set(SAMPLE_SRC
+ ${PLATFORM_SRC}
+ Classes/AppDelegate.cpp
+ Classes/HelloWorldScene.cpp
+)
+
+# add the executable
+add_executable(${APP_NAME}
+ ${SAMPLE_SRC}
+)
+
+if(WIN32 AND MSVC)
+ #get our resources
+ add_custom_command(TARGET ${APP_NAME} PRE_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy_directory
+ ${CMAKE_CURRENT_SOURCE_DIR}/Resources ${CMAKE_CURRENT_BINARY_DIR})
+ #get our dlls
+ add_custom_command(TARGET ${APP_NAME} PRE_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../../external/win32-specific/gles/prebuilt/glew32.dll
+ ${CMAKE_CURRENT_BINARY_DIR})
+
+ add_custom_command(TARGET ${APP_NAME} PRE_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../../external/win32-specific/zlib/prebuilt/zlib1.dll
+ ${CMAKE_CURRENT_BINARY_DIR}/Debug)
+
+ #Visual Studio Defaults to wrong type
+ set_target_properties(${APP_NAME} PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:WINDOWS")
+ set_target_properties(${APP_NAME} PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
+else()
+ set(APP_BIN_DIR "${CMAKE_BINARY_DIR}/bin/${APP_NAME}")
+
+ set_target_properties(${APP_NAME} PROPERTIES
+ RUNTIME_OUTPUT_DIRECTORY "${APP_BIN_DIR}")
+
+ pre_build(${APP_NAME}
+ COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}/Resources
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/Resources ${APP_BIN_DIR}/Resources
+ )
+endif()
+
+target_link_libraries(${APP_NAME} audio cocos2d)
diff --git a/tests/cpp-empty-test/Classes/AppDelegate.cpp b/tests/cpp-empty-test/Classes/AppDelegate.cpp
new file mode 100644
index 0000000000..396605feac
--- /dev/null
+++ b/tests/cpp-empty-test/Classes/AppDelegate.cpp
@@ -0,0 +1,97 @@
+#include "AppDelegate.h"
+
+#include
+#include
+
+#include "HelloWorldScene.h"
+#include "AppMacros.h"
+
+USING_NS_CC;
+using namespace std;
+
+AppDelegate::AppDelegate() {
+
+}
+
+AppDelegate::~AppDelegate()
+{
+}
+
+bool AppDelegate::applicationDidFinishLaunching() {
+ // initialize director
+ auto director = Director::getInstance();
+ auto glview = director->getOpenGLView();
+ if(!glview) {
+ glview = GLView::create("Cpp Empty Test");
+ director->setOpenGLView(glview);
+ }
+
+ director->setOpenGLView(glview);
+
+ // Set the design resolution
+ glview->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, ResolutionPolicy::NO_BORDER);
+
+ Size frameSize = glview->getFrameSize();
+
+ vector searchPath;
+
+ // In this demo, we select resource according to the frame's height.
+ // If the resource size is different from design resolution size, you need to set contentScaleFactor.
+ // We use the ratio of resource's height to the height of design resolution,
+ // this can make sure that the resource's height could fit for the height of design resolution.
+
+ // if the frame's height is larger than the height of medium resource size, select large resource.
+ if (frameSize.height > mediumResource.size.height)
+ {
+ searchPath.push_back(largeResource.directory);
+
+ director->setContentScaleFactor(MIN(largeResource.size.height/designResolutionSize.height, largeResource.size.width/designResolutionSize.width));
+ }
+ // if the frame's height is larger than the height of small resource size, select medium resource.
+ else if (frameSize.height > smallResource.size.height)
+ {
+ searchPath.push_back(mediumResource.directory);
+
+ director->setContentScaleFactor(MIN(mediumResource.size.height/designResolutionSize.height, mediumResource.size.width/designResolutionSize.width));
+ }
+ // if the frame's height is smaller than the height of medium resource size, select small resource.
+ else
+ {
+ searchPath.push_back(smallResource.directory);
+
+ director->setContentScaleFactor(MIN(smallResource.size.height/designResolutionSize.height, smallResource.size.width/designResolutionSize.width));
+ }
+
+ // set searching path
+ FileUtils::getInstance()->setSearchPaths(searchPath);
+
+ // turn on display FPS
+ director->setDisplayStats(true);
+
+ // set FPS. the default value is 1.0/60 if you don't call this
+ director->setAnimationInterval(1.0 / 60);
+
+ // create a scene. it's an autorelease object
+ auto scene = HelloWorld::scene();
+
+ // run
+ director->runWithScene(scene);
+
+ return true;
+}
+
+// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
+void AppDelegate::applicationDidEnterBackground() {
+ Director::getInstance()->stopAnimation();
+
+ // if you use SimpleAudioEngine, it must be pause
+ // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
+}
+
+// this function will be called when the app is active again
+void AppDelegate::applicationWillEnterForeground() {
+ Director::getInstance()->startAnimation();
+
+ // if you use SimpleAudioEngine, it must resume here
+ // SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
+}
diff --git a/tests/cpp-empty-test/Classes/AppDelegate.h b/tests/cpp-empty-test/Classes/AppDelegate.h
new file mode 100644
index 0000000000..18ee8aeb63
--- /dev/null
+++ b/tests/cpp-empty-test/Classes/AppDelegate.h
@@ -0,0 +1,38 @@
+#ifndef _APP_DELEGATE_H_
+#define _APP_DELEGATE_H_
+
+#include "cocos2d.h"
+
+/**
+@brief The cocos2d Application.
+
+The reason for implement as private inheritance is to hide some interface call by Director.
+*/
+class AppDelegate : private cocos2d::Application
+{
+public:
+ AppDelegate();
+ virtual ~AppDelegate();
+
+ /**
+ @brief Implement Director and Scene init code here.
+ @return true Initialize success, app continue.
+ @return false Initialize failed, app terminate.
+ */
+ virtual bool applicationDidFinishLaunching();
+
+ /**
+ @brief The function be called when the application enter background
+ @param the pointer of the application
+ */
+ virtual void applicationDidEnterBackground();
+
+ /**
+ @brief The function be called when the application enter foreground
+ @param the pointer of the application
+ */
+ virtual void applicationWillEnterForeground();
+};
+
+#endif // _APP_DELEGATE_H_
+
diff --git a/tests/cpp-empty-test/Classes/AppMacros.h b/tests/cpp-empty-test/Classes/AppMacros.h
new file mode 100644
index 0000000000..417da9a190
--- /dev/null
+++ b/tests/cpp-empty-test/Classes/AppMacros.h
@@ -0,0 +1,56 @@
+#ifndef __APPMACROS_H__
+#define __APPMACROS_H__
+
+#include "cocos2d.h"
+
+/* For demonstrating using one design resolution to match different resources,
+ or one resource to match different design resolutions.
+
+ [Situation 1] Using one design resolution to match different resources.
+ Please look into Appdelegate::applicationDidFinishLaunching.
+ We check current device frame size to decide which resource need to be selected.
+ So if you want to test this situation which said in title '[Situation 1]',
+ you should change ios simulator to different device(e.g. iphone, iphone-retina3.5, iphone-retina4.0, ipad, ipad-retina),
+ or change the window size in "proj.XXX/main.cpp" by "CCEGLView::setFrameSize" if you are using win32 or linux plaform
+ and modify "proj.mac/AppController.mm" by changing the window rectangle.
+
+ [Situation 2] Using one resource to match different design resolutions.
+ The coordinates in your codes is based on your current design resolution rather than resource size.
+ Therefore, your design resolution could be very large and your resource size could be small.
+ To test this, just define the marco 'TARGET_DESIGN_RESOLUTION_SIZE' to 'DESIGN_RESOLUTION_2048X1536'
+ and open iphone simulator or create a window of 480x320 size.
+
+ [Note] Normally, developer just need to define one design resolution(e.g. 960x640) with one or more resources.
+ */
+
+#define DESIGN_RESOLUTION_480X320 0
+#define DESIGN_RESOLUTION_1024X768 1
+#define DESIGN_RESOLUTION_2048X1536 2
+
+/* If you want to switch design resolution, change next line */
+#define TARGET_DESIGN_RESOLUTION_SIZE DESIGN_RESOLUTION_480X320
+
+typedef struct tagResource
+{
+ cocos2d::Size size;
+ char directory[100];
+}Resource;
+
+static Resource smallResource = { cocos2d::Size(480, 320), "iphone" };
+static Resource mediumResource = { cocos2d::Size(1024, 768), "ipad" };
+static Resource largeResource = { cocos2d::Size(2048, 1536), "ipadhd" };
+
+#if (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_480X320)
+static cocos2d::Size designResolutionSize = cocos2d::Size(480, 320);
+#elif (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_1024X768)
+static cocos2d::Size designResolutionSize = cocos2d::Size(1024, 768);
+#elif (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_2048X1536)
+static cocos2d::Size designResolutionSize = cocos2d::Size(2048, 1536);
+#else
+#error unknown target design resolution!
+#endif
+
+// The font size 24 is designed for small resolution, so we should change it to fit for current design resolution
+#define TITLE_FONT_SIZE (cocos2d::Director::getInstance()->getOpenGLView()->getDesignResolutionSize().width / smallResource.size.width * 24)
+
+#endif /* __APPMACROS_H__ */
diff --git a/tests/cpp-empty-test/Classes/HelloWorldScene.cpp b/tests/cpp-empty-test/Classes/HelloWorldScene.cpp
new file mode 100644
index 0000000000..959e2cd6cf
--- /dev/null
+++ b/tests/cpp-empty-test/Classes/HelloWorldScene.cpp
@@ -0,0 +1,86 @@
+#include "HelloWorldScene.h"
+#include "AppMacros.h"
+
+USING_NS_CC;
+
+
+Scene* HelloWorld::scene()
+{
+ // 'scene' is an autorelease object
+ auto scene = Scene::create();
+
+ // 'layer' is an autorelease object
+ HelloWorld *layer = HelloWorld::create();
+
+ // add layer as a child to scene
+ scene->addChild(layer);
+
+ // return the scene
+ return scene;
+}
+
+// on "init" you need to initialize your instance
+bool HelloWorld::init()
+{
+ //////////////////////////////
+ // 1. super init first
+ if ( !Layer::init() )
+ {
+ return false;
+ }
+
+ auto visibleSize = Director::getInstance()->getVisibleSize();
+ auto origin = Director::getInstance()->getVisibleOrigin();
+
+ /////////////////////////////
+ // 2. add a menu item with "X" image, which is clicked to quit the program
+ // you may modify it.
+
+ // add a "close" icon to exit the progress. it's an autorelease object
+ auto closeItem = MenuItemImage::create(
+ "CloseNormal.png",
+ "CloseSelected.png",
+ CC_CALLBACK_1(HelloWorld::menuCloseCallback,this));
+
+ closeItem->setPosition(origin + Point(visibleSize) - Point(closeItem->getContentSize() / 2));
+
+ // create menu, it's an autorelease object
+ auto menu = Menu::create(closeItem, NULL);
+ menu->setPosition(Point::ZERO);
+ this->addChild(menu, 1);
+
+ /////////////////////////////
+ // 3. add your codes below...
+
+ // add a label shows "Hello World"
+ // create and initialize a label
+
+ auto label = LabelTTF::create("Hello World", "Arial", TITLE_FONT_SIZE);
+
+ // position the label on the center of the screen
+ label->setPosition(Point(origin.x + visibleSize.width/2,
+ origin.y + visibleSize.height - label->getContentSize().height));
+
+ // add the label as a child to this layer
+ this->addChild(label, 1);
+
+ // add "HelloWorld" splash screen"
+ auto sprite = Sprite::create("HelloWorld.png");
+
+ // position the sprite on the center of the screen
+ sprite->setPosition(Point(visibleSize / 2) + origin);
+
+ // add the sprite as a child to this layer
+ this->addChild(sprite);
+
+ return true;
+}
+
+void HelloWorld::menuCloseCallback(Ref* sender)
+{
+ Director::getInstance()->end();
+
+#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
+ exit(0);
+#endif
+}
diff --git a/tests/cpp-empty-test/Classes/HelloWorldScene.h b/tests/cpp-empty-test/Classes/HelloWorldScene.h
new file mode 100644
index 0000000000..de8a612e42
--- /dev/null
+++ b/tests/cpp-empty-test/Classes/HelloWorldScene.h
@@ -0,0 +1,22 @@
+#ifndef __HELLOWORLD_SCENE_H__
+#define __HELLOWORLD_SCENE_H__
+
+#include "cocos2d.h"
+
+class HelloWorld : public cocos2d::Layer
+{
+public:
+ // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
+ virtual bool init();
+
+ // there's no 'id' in cpp, so we recommend returning the class instance pointer
+ static cocos2d::Scene* scene();
+
+ // a selector callback
+ void menuCloseCallback(Ref* sender);
+
+ // implement the "static node()" method manually
+ CREATE_FUNC(HelloWorld);
+};
+
+#endif // __HELLOWORLD_SCENE_H__
diff --git a/samples/cpp-tests/Resources/.gitignore b/tests/cpp-empty-test/Resources/.gitignore
similarity index 100%
rename from samples/cpp-tests/Resources/.gitignore
rename to tests/cpp-empty-test/Resources/.gitignore
diff --git a/tests/cpp-empty-test/Resources/ipad/HelloWorld.png.REMOVED.git-id b/tests/cpp-empty-test/Resources/ipad/HelloWorld.png.REMOVED.git-id
new file mode 100644
index 0000000000..fda9923fa3
--- /dev/null
+++ b/tests/cpp-empty-test/Resources/ipad/HelloWorld.png.REMOVED.git-id
@@ -0,0 +1 @@
+709d78b7f3eab27056a98d63e9153b35d57b84bc
\ No newline at end of file
diff --git a/tests/cpp-empty-test/Resources/ipadhd/HelloWorld.png.REMOVED.git-id b/tests/cpp-empty-test/Resources/ipadhd/HelloWorld.png.REMOVED.git-id
new file mode 100644
index 0000000000..45e6087f95
--- /dev/null
+++ b/tests/cpp-empty-test/Resources/ipadhd/HelloWorld.png.REMOVED.git-id
@@ -0,0 +1 @@
+7aa1e9dc799acf384a1c4603054242cc09c1b63e
\ No newline at end of file
diff --git a/tests/cpp-empty-test/Resources/iphone/HelloWorld.png.REMOVED.git-id b/tests/cpp-empty-test/Resources/iphone/HelloWorld.png.REMOVED.git-id
new file mode 100644
index 0000000000..d391882e7d
--- /dev/null
+++ b/tests/cpp-empty-test/Resources/iphone/HelloWorld.png.REMOVED.git-id
@@ -0,0 +1 @@
+9d6facb31897d010352e7b57f4a82715c260408a
\ No newline at end of file
diff --git a/samples/cpp-tests/proj.android/.classpath b/tests/cpp-empty-test/proj.android/.classpath
similarity index 100%
rename from samples/cpp-tests/proj.android/.classpath
rename to tests/cpp-empty-test/proj.android/.classpath
diff --git a/tests/cpp-empty-test/proj.android/.project b/tests/cpp-empty-test/proj.android/.project
new file mode 100644
index 0000000000..b6c77b075d
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/.project
@@ -0,0 +1,43 @@
+
+
+ CppEmptyTest
+
+
+
+
+
+ com.android.ide.eclipse.adt.ResourceManagerBuilder
+
+
+
+
+ com.android.ide.eclipse.adt.PreCompilerBuilder
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ com.android.ide.eclipse.adt.ApkBuilder
+
+
+
+
+ org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
+ full,incremental,
+
+
+
+
+
+ com.android.ide.eclipse.adt.AndroidNature
+ org.eclipse.jdt.core.javanature
+ org.eclipse.cdt.core.cnature
+ org.eclipse.cdt.core.ccnature
+ org.eclipse.cdt.managedbuilder.core.managedBuildNature
+ org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
+
+
diff --git a/tests/cpp-empty-test/proj.android/AndroidManifest.xml b/tests/cpp-empty-test/proj.android/AndroidManifest.xml
new file mode 100644
index 0000000000..db79f67eca
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/AndroidManifest.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/cpp-tests/proj.android/README.md b/tests/cpp-empty-test/proj.android/README.md
similarity index 100%
rename from samples/cpp-tests/proj.android/README.md
rename to tests/cpp-empty-test/proj.android/README.md
diff --git a/tests/cpp-empty-test/proj.android/build.xml b/tests/cpp-empty-test/proj.android/build.xml
new file mode 100644
index 0000000000..c1d9bcdfca
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/build.xml
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/cpp-empty-test/proj.android/jni/Android.mk b/tests/cpp-empty-test/proj.android/jni/Android.mk
new file mode 100644
index 0000000000..92f4b91ec4
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/jni/Android.mk
@@ -0,0 +1,20 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := cpp_empty_test_shared
+
+LOCAL_MODULE_FILENAME := libcpp_empty_test
+
+LOCAL_SRC_FILES := main.cpp \
+ ../../Classes/AppDelegate.cpp \
+ ../../Classes/HelloWorldScene.cpp
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
+
+LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static
+
+include $(BUILD_SHARED_LIBRARY)
+
+$(call import-module,2d)
+$(call import-module,audio/android)
diff --git a/tests/cpp-empty-test/proj.android/jni/Application.mk b/tests/cpp-empty-test/proj.android/jni/Application.mk
new file mode 100644
index 0000000000..74af9626ab
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/jni/Application.mk
@@ -0,0 +1,5 @@
+APP_STL := gnustl_static
+
+# add -Wno-literal-suffix to avoid warning: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
+# in NDK_ROOT/arch-arm/usr/include/sys/cdefs_elf.h:35:28: when using ndk-r9
+APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -std=c++11 -Wno-literal-suffix -fsigned-char
diff --git a/tests/cpp-empty-test/proj.android/jni/list.sh b/tests/cpp-empty-test/proj.android/jni/list.sh
new file mode 100755
index 0000000000..b29f678cb8
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/jni/list.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+append_str=' \'
+
+list_alldir()
+{
+ for file in $1/*
+ do
+ if [ -f $file ]; then
+ echo $file$append_str | grep .cpp
+ fi
+
+ if [ -d $file ]; then
+ list_alldir $file
+ fi
+ done
+}
+
+if [ $# -gt 0 ]; then
+ list_alldir "$1"
+else
+ list_alldir "."
+fi
diff --git a/tests/cpp-empty-test/proj.android/jni/main.cpp b/tests/cpp-empty-test/proj.android/jni/main.cpp
new file mode 100644
index 0000000000..2b344d9e04
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/jni/main.cpp
@@ -0,0 +1,16 @@
+#include "AppDelegate.h"
+#include "platform/android/jni/JniHelper.h"
+#include
+#include
+
+#include "cocos2d.h"
+
+#define LOG_TAG "main"
+#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
+
+using namespace cocos2d;
+
+void cocos_android_app_init (struct android_app* app) {
+ LOGD("cocos_android_app_init");
+ AppDelegate *pAppDelegate = new AppDelegate();
+}
diff --git a/tests/cpp-empty-test/proj.android/ndkgdb.sh b/tests/cpp-empty-test/proj.android/ndkgdb.sh
new file mode 100755
index 0000000000..ecb419da0e
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/ndkgdb.sh
@@ -0,0 +1,47 @@
+APPNAME="CppEmptyTest"
+APP_ANDROID_NAME="org.cocos2dx.cpp_empty_test"
+
+if [ -z "${SDK_ROOT+aaa}" ]; then
+# ... if SDK_ROOT is not set, use "$HOME/bin/android-sdk"
+ SDK_ROOT="$HOME/bin/android-sdk"
+fi
+
+if [ -z "${NDK_ROOT+aaa}" ]; then
+# ... if NDK_ROOT is not set, use "$HOME/bin/android-ndk"
+ NDK_ROOT="$HOME/bin/android-ndk"
+fi
+
+if [ -z "${COCOS2DX_ROOT+aaa}" ]; then
+# ... if COCOS2DX_ROOT is not set
+# ... find current working directory
+ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+# ... use paths relative to current directory
+ COCOS2DX_ROOT="$DIR/../../../.."
+ APP_ROOT="$DIR/.."
+ APP_ANDROID_ROOT="$DIR"
+else
+ APP_ROOT="$COCOS2DX_ROOT/samples/$APPNAME"
+ APP_ANDROID_ROOT="$COCOS2DX_ROOT/samples/$APPNAME/proj.android"
+fi
+
+echo "NDK_ROOT = $NDK_ROOT"
+echo "SDK_ROOT = $SDK_ROOT"
+echo "COCOS2DX_ROOT = $COCOS2DX_ROOT"
+echo "APP_ROOT = $APP_ROOT"
+echo "APP_ANDROID_ROOT = $APP_ANDROID_ROOT"
+echo "APP_ANDROID_NAME = $APP_ANDROID_NAME"
+
+echo
+echo "Killing and restarting ${APP_ANDROID_NAME}"
+echo
+
+set -x
+
+"${SDK_ROOT}"/platform-tools/adb shell am force-stop "${APP_ANDROID_NAME}"
+
+NDK_MODULE_PATH="${COCOS2DX_ROOT}":"${COCOS2DX_ROOT}"/cocos2dx/platform/third_party/android/prebuilt \
+ "${NDK_ROOT}"/ndk-gdb \
+ --adb="${SDK_ROOT}"/platform-tools/adb \
+ --verbose \
+ --start \
+ --force
diff --git a/samples/cpp-tests/proj.android/proguard-project.txt b/tests/cpp-empty-test/proj.android/proguard-project.txt
similarity index 100%
rename from samples/cpp-tests/proj.android/proguard-project.txt
rename to tests/cpp-empty-test/proj.android/proguard-project.txt
diff --git a/samples/cpp-tests/proj.android/project.properties b/tests/cpp-empty-test/proj.android/project.properties
similarity index 100%
rename from samples/cpp-tests/proj.android/project.properties
rename to tests/cpp-empty-test/proj.android/project.properties
diff --git a/tests/cpp-empty-test/proj.android/res/values/strings.xml b/tests/cpp-empty-test/proj.android/res/values/strings.xml
new file mode 100644
index 0000000000..7f9d0ba2fd
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+
+ CppEmptyTest
+
diff --git a/tests/cpp-empty-test/proj.android/src/org/cocos2dx/cpp_empty_test/Cocos2dxActivity.java b/tests/cpp-empty-test/proj.android/src/org/cocos2dx/cpp_empty_test/Cocos2dxActivity.java
new file mode 100644
index 0000000000..d2b8e642dd
--- /dev/null
+++ b/tests/cpp-empty-test/proj.android/src/org/cocos2dx/cpp_empty_test/Cocos2dxActivity.java
@@ -0,0 +1,32 @@
+package org.cocos2dx.cpp_empty_test;
+
+import android.app.NativeActivity;
+import android.os.Bundle;
+
+public class Cocos2dxActivity extends NativeActivity{
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ // TODO Auto-generated method stub
+ super.onCreate(savedInstanceState);
+
+ //For supports translucency
+
+ //1.change "attribs" in cocos\2d\platform\android\nativeactivity.cpp
+ /*const EGLint attribs[] = {
+ EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
+ //EGL_BLUE_SIZE, 5, -->delete
+ //EGL_GREEN_SIZE, 6, -->delete
+ //EGL_RED_SIZE, 5, -->delete
+ EGL_BUFFER_SIZE, 32, //-->new field
+ EGL_DEPTH_SIZE, 16,
+ EGL_STENCIL_SIZE, 8,
+ EGL_NONE
+ };*/
+
+ //2.Set the format of window
+ // getWindow().setFormat(PixelFormat.TRANSLUCENT);
+
+ }
+}
diff --git a/samples/lua-tests/project/proj.ios_mac/ios/AppController.h b/tests/cpp-empty-test/proj.ios/AppController.h
similarity index 100%
rename from samples/lua-tests/project/proj.ios_mac/ios/AppController.h
rename to tests/cpp-empty-test/proj.ios/AppController.h
diff --git a/tests/cpp-empty-test/proj.ios/AppController.mm b/tests/cpp-empty-test/proj.ios/AppController.mm
new file mode 100644
index 0000000000..c91d512703
--- /dev/null
+++ b/tests/cpp-empty-test/proj.ios/AppController.mm
@@ -0,0 +1,138 @@
+/****************************************************************************
+ Copyright (c) 2010 cocos2d-x.org
+
+ http://www.cocos2d-x.org
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ ****************************************************************************/
+#import
+#import "AppController.h"
+#import "cocos2d.h"
+#import "AppDelegate.h"
+#import "CCEAGLView.h"
+#import "RootViewController.h"
+
+@implementation AppController
+
+#pragma mark -
+#pragma mark Application lifecycle
+
+// cocos2d application instance
+static AppDelegate s_sharedApplication;
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+
+ // Override point for customization after application launch.
+
+ // Add the view controller's view to the window and display.
+ window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]];
+ CCEAGLView *eaglView = [CCEAGLView viewWithFrame: [window bounds]
+ pixelFormat: kEAGLColorFormatRGBA8
+ depthFormat: GL_DEPTH_COMPONENT16
+ preserveBackbuffer: NO
+ sharegroup:nil
+ multiSampling:NO
+ numberOfSamples:0];
+
+ // Use RootViewController manage CCEAGLView
+ viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
+ viewController.wantsFullScreenLayout = YES;
+ viewController.view = eaglView;
+
+ // Set RootViewController to window
+ if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0)
+ {
+ // warning: addSubView doesn't work on iOS6
+ [window addSubview: viewController.view];
+ }
+ else
+ {
+ // use this method on ios6
+ [window setRootViewController:viewController];
+ }
+
+ [window makeKeyAndVisible];
+
+ [[UIApplication sharedApplication] setStatusBarHidden: YES];
+
+ // IMPORTANT: Setting the GLView should be done after creating the RootViewController
+ cocos2d::GLView *glview = cocos2d::GLView::createWithEAGLView(eaglView);
+ cocos2d::Director::getInstance()->setOpenGLView(glview);
+
+ cocos2d::Application *app = cocos2d::Application::getInstance();
+ app->run();
+ return YES;
+}
+
+
+- (void)applicationWillResignActive:(UIApplication *)application {
+ /*
+ Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+ Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
+ */
+ cocos2d::Director::getInstance()->pause();
+}
+
+- (void)applicationDidBecomeActive:(UIApplication *)application {
+ /*
+ Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+ */
+ cocos2d::Director::getInstance()->resume();
+}
+
+- (void)applicationDidEnterBackground:(UIApplication *)application {
+ /*
+ Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+ If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
+ */
+ cocos2d::Application::getInstance()->applicationDidEnterBackground();
+}
+
+- (void)applicationWillEnterForeground:(UIApplication *)application {
+ /*
+ Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
+ */
+ cocos2d::Application::getInstance()->applicationWillEnterForeground();
+}
+
+- (void)applicationWillTerminate:(UIApplication *)application {
+ /*
+ Called when the application is about to terminate.
+ See also applicationDidEnterBackground:.
+ */
+}
+
+
+#pragma mark -
+#pragma mark Memory management
+
+- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
+ /*
+ Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
+ */
+}
+
+
+- (void)dealloc {
+ [super dealloc];
+}
+
+
+@end
+
diff --git a/samples/cpp-tests/proj.ios/Default-568h@2x.png.REMOVED.git-id b/tests/cpp-empty-test/proj.ios/Default-568h@2x.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/proj.ios/Default-568h@2x.png.REMOVED.git-id
rename to tests/cpp-empty-test/proj.ios/Default-568h@2x.png.REMOVED.git-id
diff --git a/samples/cpp-tests/proj.ios/Default@2x.png.REMOVED.git-id b/tests/cpp-empty-test/proj.ios/Default@2x.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/proj.ios/Default@2x.png.REMOVED.git-id
rename to tests/cpp-empty-test/proj.ios/Default@2x.png.REMOVED.git-id
diff --git a/samples/lua-tests/project/proj.ios_mac/ios/RootViewController.h b/tests/cpp-empty-test/proj.ios/RootViewController.h
similarity index 100%
rename from samples/lua-tests/project/proj.ios_mac/ios/RootViewController.h
rename to tests/cpp-empty-test/proj.ios/RootViewController.h
diff --git a/tests/cpp-empty-test/proj.ios/RootViewController.mm b/tests/cpp-empty-test/proj.ios/RootViewController.mm
new file mode 100644
index 0000000000..4984955c8a
--- /dev/null
+++ b/tests/cpp-empty-test/proj.ios/RootViewController.mm
@@ -0,0 +1,97 @@
+/****************************************************************************
+ Copyright (c) 2010-2011 cocos2d-x.org
+ Copyright (c) 2010 Ricardo Quesada
+
+ http://www.cocos2d-x.org
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ ****************************************************************************/
+
+#import "RootViewController.h"
+
+
+@implementation RootViewController
+
+/*
+ // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
+ if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
+ // Custom initialization
+ }
+ return self;
+}
+*/
+
+/*
+// Implement loadView to create a view hierarchy programmatically, without using a nib.
+- (void)loadView {
+}
+*/
+
+/*
+// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
+- (void)viewDidLoad {
+ [super viewDidLoad];
+}
+
+*/
+// Override to allow orientations other than the default portrait orientation.
+// This method is deprecated on ios6
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ return UIInterfaceOrientationIsLandscape( interfaceOrientation );
+}
+
+// For ios6.0 and higher, use supportedInterfaceOrientations & shouldAutorotate instead
+- (NSUInteger) supportedInterfaceOrientations
+{
+#ifdef __IPHONE_6_0
+ return UIInterfaceOrientationMaskAllButUpsideDown;
+#endif
+}
+
+- (BOOL) shouldAutorotate {
+ return YES;
+}
+
+//fix not hide status on ios7
+- (BOOL)prefersStatusBarHidden
+{
+ return YES;
+}
+
+- (void)didReceiveMemoryWarning {
+ // Releases the view if it doesn't have a superview.
+ [super didReceiveMemoryWarning];
+
+ // Release any cached data, images, etc that aren't in use.
+}
+
+- (void)viewDidUnload {
+ [super viewDidUnload];
+ // Release any retained subviews of the main view.
+ // e.g. self.myOutlet = nil;
+}
+
+
+- (void)dealloc {
+ [super dealloc];
+}
+
+
+@end
diff --git a/tests/cpp-empty-test/proj.ios/main.m b/tests/cpp-empty-test/proj.ios/main.m
new file mode 100644
index 0000000000..bd577a036e
--- /dev/null
+++ b/tests/cpp-empty-test/proj.ios/main.m
@@ -0,0 +1,17 @@
+//
+// main.m
+// iphone
+//
+// Created by Walzer on 10-11-16.
+// Copyright 2010 __MyCompanyName__. All rights reserved.
+//
+
+#import
+
+int main(int argc, char *argv[]) {
+
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+ int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
+ [pool release];
+ return retVal;
+}
diff --git a/samples/cpp-tests/proj.linux/main.cpp b/tests/cpp-empty-test/proj.linux/main.cpp
similarity index 100%
rename from samples/cpp-tests/proj.linux/main.cpp
rename to tests/cpp-empty-test/proj.linux/main.cpp
diff --git a/samples/cpp-tests/proj.mac/Icon.icns.REMOVED.git-id b/tests/cpp-empty-test/proj.mac/Icon.icns.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/proj.mac/Icon.icns.REMOVED.git-id
rename to tests/cpp-empty-test/proj.mac/Icon.icns.REMOVED.git-id
diff --git a/samples/cpp-tests/proj.mac/en.lproj/InfoPlist.strings b/tests/cpp-empty-test/proj.mac/en.lproj/InfoPlist.strings
similarity index 100%
rename from samples/cpp-tests/proj.mac/en.lproj/InfoPlist.strings
rename to tests/cpp-empty-test/proj.mac/en.lproj/InfoPlist.strings
diff --git a/samples/lua-tests/project/proj.ios_mac/mac/en.lproj/MainMenu.xib b/tests/cpp-empty-test/proj.mac/en.lproj/MainMenu.xib
similarity index 100%
rename from samples/lua-tests/project/proj.ios_mac/mac/en.lproj/MainMenu.xib
rename to tests/cpp-empty-test/proj.mac/en.lproj/MainMenu.xib
diff --git a/tests/cpp-empty-test/proj.mac/main.cpp b/tests/cpp-empty-test/proj.mac/main.cpp
new file mode 100644
index 0000000000..f2bc5c2a4e
--- /dev/null
+++ b/tests/cpp-empty-test/proj.mac/main.cpp
@@ -0,0 +1,34 @@
+/****************************************************************************
+ Copyright (c) 2010 cocos2d-x.org
+
+ http://www.cocos2d-x.org
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ ****************************************************************************/
+
+#include "AppDelegate.h"
+
+USING_NS_CC;
+
+int main(int argc, char *argv[])
+{
+ AppDelegate app;
+ return Application::getInstance()->run();
+}
+
diff --git a/tests/cpp-empty-test/proj.win32/HelloCpp.vcxproj b/tests/cpp-empty-test/proj.win32/HelloCpp.vcxproj
new file mode 100644
index 0000000000..6da099a164
--- /dev/null
+++ b/tests/cpp-empty-test/proj.win32/HelloCpp.vcxproj
@@ -0,0 +1,147 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+ {B8BF9E81-35FD-4582-BA1C-B85FA365BABB}
+ HelloCppwin32
+ Win32Proj
+
+
+
+ Application
+ Unicode
+ true
+ v100
+ v110
+ v110_xp
+
+
+ Application
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <_ProjectFileVersion>10.0.40219.1
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+ true
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+ false
+ AllRules.ruleset
+
+
+ AllRules.ruleset
+
+
+
+
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)
+
+
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)
+
+
+
+ Disabled
+ ..\Classes;%(AdditionalIncludeDirectories)
+ WIN32;_DEBUG;_WINDOWS;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ true
+ EnableFastChecks
+ MultiThreadedDebugDLL
+
+
+ Level3
+ EditAndContinue
+ 4267;4251;4244;%(DisableSpecificWarnings)
+
+
+ $(OutDir)$(ProjectName).exe
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+ Windows
+ MachineX86
+ libcocos2d.lib;libchipmunk.lib;%(AdditionalDependencies)
+
+
+
+
+
+
+
+
+ MaxSpeed
+ true
+ ..\Classes;%(AdditionalIncludeDirectories)
+ WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ MultiThreadedDLL
+ true
+
+
+ Level3
+ ProgramDatabase
+ 4267;4251;4244;%(DisableSpecificWarnings)
+
+
+ libcocos2d.lib;%(AdditionalDependencies)
+ $(OutDir)$(ProjectName).exe
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+ Windows
+ true
+ true
+ MachineX86
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
+ false
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/cpp-empty-test/proj.win32/HelloCpp.vcxproj.filters b/tests/cpp-empty-test/proj.win32/HelloCpp.vcxproj.filters
new file mode 100644
index 0000000000..eb52c5e24c
--- /dev/null
+++ b/tests/cpp-empty-test/proj.win32/HelloCpp.vcxproj.filters
@@ -0,0 +1,38 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+
+
+ Classes
+
+
+ Classes
+
+
+ win32
+
+
+
+
+ Classes
+
+
+ Classes
+
+
+ win32
+
+
+ Classes
+
+
+
\ No newline at end of file
diff --git a/samples/cpp-tests/proj.win32/TestCpp.vcxproj.user b/tests/cpp-empty-test/proj.win32/HelloCpp.vcxproj.user
similarity index 100%
rename from samples/cpp-tests/proj.win32/TestCpp.vcxproj.user
rename to tests/cpp-empty-test/proj.win32/HelloCpp.vcxproj.user
diff --git a/tests/cpp-empty-test/proj.win32/main.cpp b/tests/cpp-empty-test/proj.win32/main.cpp
new file mode 100644
index 0000000000..bcc0e091d4
--- /dev/null
+++ b/tests/cpp-empty-test/proj.win32/main.cpp
@@ -0,0 +1,20 @@
+#include "main.h"
+#include "../Classes/AppDelegate.h"
+#include "CCEGLView.h"
+
+USING_NS_CC;
+
+int APIENTRY _tWinMain(HINSTANCE hInstance,
+ HINSTANCE hPrevInstance,
+ LPTSTR lpCmdLine,
+ int nCmdShow)
+{
+ UNREFERENCED_PARAMETER(hPrevInstance);
+ UNREFERENCED_PARAMETER(lpCmdLine);
+
+ // create the application instance
+ AppDelegate app;
+ EGLView eglView;
+ eglView.init("HelloCpp",900,640);
+ return Application::getInstance()->run();
+}
diff --git a/samples/cpp-tests/proj.win32/main.h b/tests/cpp-empty-test/proj.win32/main.h
similarity index 100%
rename from samples/cpp-tests/proj.win32/main.h
rename to tests/cpp-empty-test/proj.win32/main.h
diff --git a/samples/cpp-tests/Android.mk b/tests/cpp-tests/Android.mk
similarity index 99%
rename from samples/cpp-tests/Android.mk
rename to tests/cpp-tests/Android.mk
index befb3222f1..c2d2c02978 100644
--- a/samples/cpp-tests/Android.mk
+++ b/tests/cpp-tests/Android.mk
@@ -2,9 +2,9 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_MODULE := cocos_testcpp_common
+LOCAL_MODULE := cocos_cpp_tests_common
-LOCAL_MODULE_FILENAME := libtestcppcommon
+LOCAL_MODULE_FILENAME := libcpp_tests_common
LOCAL_SRC_FILES := \
Classes/AppDelegate.cpp \
diff --git a/samples/cpp-tests/CMakeLists.txt b/tests/cpp-tests/CMakeLists.txt
similarity index 99%
rename from samples/cpp-tests/CMakeLists.txt
rename to tests/cpp-tests/CMakeLists.txt
index 3037e8fabd..ad5230d7c3 100644
--- a/samples/cpp-tests/CMakeLists.txt
+++ b/tests/cpp-tests/CMakeLists.txt
@@ -1,4 +1,4 @@
-set(APP_NAME testcpp)
+set(APP_NAME cpp-tests)
if(WIN32)
set(PLATFORM_SRC
diff --git a/samples/cpp-tests/Classes/AccelerometerTest/AccelerometerTest.cpp b/tests/cpp-tests/Classes/AccelerometerTest/AccelerometerTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/AccelerometerTest/AccelerometerTest.cpp
rename to tests/cpp-tests/Classes/AccelerometerTest/AccelerometerTest.cpp
diff --git a/samples/cpp-tests/Classes/AccelerometerTest/AccelerometerTest.h b/tests/cpp-tests/Classes/AccelerometerTest/AccelerometerTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/AccelerometerTest/AccelerometerTest.h
rename to tests/cpp-tests/Classes/AccelerometerTest/AccelerometerTest.h
diff --git a/samples/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.cpp b/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.cpp
rename to tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.cpp
diff --git a/samples/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.h b/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.h
rename to tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.h
diff --git a/samples/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.cpp b/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.cpp
rename to tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.cpp
diff --git a/samples/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.h b/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.h
rename to tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.h
diff --git a/samples/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.cpp b/tests/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.cpp
rename to tests/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.cpp
diff --git a/samples/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.h b/tests/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.h
rename to tests/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.h
diff --git a/samples/cpp-tests/Classes/ActionsTest/ActionsTest.cpp b/tests/cpp-tests/Classes/ActionsTest/ActionsTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ActionsTest/ActionsTest.cpp
rename to tests/cpp-tests/Classes/ActionsTest/ActionsTest.cpp
diff --git a/samples/cpp-tests/Classes/ActionsTest/ActionsTest.h b/tests/cpp-tests/Classes/ActionsTest/ActionsTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ActionsTest/ActionsTest.h
rename to tests/cpp-tests/Classes/ActionsTest/ActionsTest.h
diff --git a/samples/cpp-tests/Classes/AppDelegate.cpp b/tests/cpp-tests/Classes/AppDelegate.cpp
similarity index 99%
rename from samples/cpp-tests/Classes/AppDelegate.cpp
rename to tests/cpp-tests/Classes/AppDelegate.cpp
index 0572386d9c..d62b6c9ef9 100644
--- a/samples/cpp-tests/Classes/AppDelegate.cpp
+++ b/tests/cpp-tests/Classes/AppDelegate.cpp
@@ -54,7 +54,7 @@ bool AppDelegate::applicationDidFinishLaunching()
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
if(!glview) {
- glview = GLView::create("Test Cpp");
+ glview = GLView::create("Cpp Tests");
director->setOpenGLView(glview);
}
diff --git a/samples/cpp-tests/Classes/AppDelegate.h b/tests/cpp-tests/Classes/AppDelegate.h
similarity index 100%
rename from samples/cpp-tests/Classes/AppDelegate.h
rename to tests/cpp-tests/Classes/AppDelegate.h
diff --git a/samples/cpp-tests/Classes/BaseTest.cpp b/tests/cpp-tests/Classes/BaseTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BaseTest.cpp
rename to tests/cpp-tests/Classes/BaseTest.cpp
diff --git a/samples/cpp-tests/Classes/BaseTest.h b/tests/cpp-tests/Classes/BaseTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/BaseTest.h
rename to tests/cpp-tests/Classes/BaseTest.h
diff --git a/samples/cpp-tests/Classes/Box2DTest/Box2dTest.cpp b/tests/cpp-tests/Classes/Box2DTest/Box2dTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTest/Box2dTest.cpp
rename to tests/cpp-tests/Classes/Box2DTest/Box2dTest.cpp
diff --git a/samples/cpp-tests/Classes/Box2DTest/Box2dTest.h b/tests/cpp-tests/Classes/Box2DTest/Box2dTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTest/Box2dTest.h
rename to tests/cpp-tests/Classes/Box2DTest/Box2dTest.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Box2dView.cpp b/tests/cpp-tests/Classes/Box2DTestBed/Box2dView.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Box2dView.cpp
rename to tests/cpp-tests/Classes/Box2DTestBed/Box2dView.cpp
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Box2dView.h b/tests/cpp-tests/Classes/Box2DTestBed/Box2dView.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Box2dView.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Box2dView.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/GLES-Render.cpp b/tests/cpp-tests/Classes/Box2DTestBed/GLES-Render.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/GLES-Render.cpp
rename to tests/cpp-tests/Classes/Box2DTestBed/GLES-Render.cpp
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/GLES-Render.h b/tests/cpp-tests/Classes/Box2DTestBed/GLES-Render.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/GLES-Render.h
rename to tests/cpp-tests/Classes/Box2DTestBed/GLES-Render.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Test.cpp b/tests/cpp-tests/Classes/Box2DTestBed/Test.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Test.cpp
rename to tests/cpp-tests/Classes/Box2DTestBed/Test.cpp
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Test.h b/tests/cpp-tests/Classes/Box2DTestBed/Test.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Test.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Test.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/TestEntries.cpp b/tests/cpp-tests/Classes/Box2DTestBed/TestEntries.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/TestEntries.cpp
rename to tests/cpp-tests/Classes/Box2DTestBed/TestEntries.cpp
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/AddPair.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/AddPair.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/AddPair.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/AddPair.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/ApplyForce.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/ApplyForce.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/ApplyForce.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/ApplyForce.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/BodyTypes.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/BodyTypes.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/BodyTypes.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/BodyTypes.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Breakable.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Breakable.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Breakable.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Breakable.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Bridge.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Bridge.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Bridge.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Bridge.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/BulletTest.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/BulletTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/BulletTest.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/BulletTest.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Cantilever.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Cantilever.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Cantilever.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Cantilever.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Car.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Car.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Car.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Car.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Chain.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Chain.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Chain.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Chain.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/CharacterCollision.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/CharacterCollision.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/CharacterCollision.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/CharacterCollision.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/CollisionFiltering.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/CollisionFiltering.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/CollisionFiltering.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/CollisionFiltering.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/CollisionProcessing.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/CollisionProcessing.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/CollisionProcessing.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/CollisionProcessing.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/CompoundShapes.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/CompoundShapes.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/CompoundShapes.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/CompoundShapes.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Confined.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Confined.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Confined.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Confined.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/ContinuousTest.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/ContinuousTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/ContinuousTest.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/ContinuousTest.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/ConvexHull.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/ConvexHull.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/ConvexHull.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/ConvexHull.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/ConveyorBelt.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/ConveyorBelt.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/ConveyorBelt.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/ConveyorBelt.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/DistanceTest.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/DistanceTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/DistanceTest.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/DistanceTest.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Dominos.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Dominos.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Dominos.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Dominos.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/DumpShell.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/DumpShell.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/DumpShell.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/DumpShell.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/DynamicTreeTest.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/DynamicTreeTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/DynamicTreeTest.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/DynamicTreeTest.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/EdgeShapes.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/EdgeShapes.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/EdgeShapes.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/EdgeShapes.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/EdgeTest.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/EdgeTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/EdgeTest.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/EdgeTest.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Gears.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Gears.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Gears.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Gears.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Mobile.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Mobile.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Mobile.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Mobile.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/MobileBalanced.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/MobileBalanced.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/MobileBalanced.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/MobileBalanced.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/MotorJoint.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/MotorJoint.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/MotorJoint.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/MotorJoint.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/OneSidedPlatform.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/OneSidedPlatform.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/OneSidedPlatform.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/OneSidedPlatform.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Pinball.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Pinball.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Pinball.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Pinball.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/PolyCollision.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/PolyCollision.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/PolyCollision.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/PolyCollision.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/PolyShapes.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/PolyShapes.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/PolyShapes.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/PolyShapes.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Prismatic.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Prismatic.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Prismatic.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Prismatic.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Pulleys.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Pulleys.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Pulleys.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Pulleys.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Pyramid.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Pyramid.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Pyramid.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Pyramid.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/RayCast.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/RayCast.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/RayCast.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/RayCast.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Revolute.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Revolute.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Revolute.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Revolute.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Rope.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Rope.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Rope.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Rope.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/RopeJoint.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/RopeJoint.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/RopeJoint.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/RopeJoint.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/SensorTest.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/SensorTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/SensorTest.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/SensorTest.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/ShapeEditing.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/ShapeEditing.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/ShapeEditing.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/ShapeEditing.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/SliderCrank.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/SliderCrank.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/SliderCrank.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/SliderCrank.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/SphereStack.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/SphereStack.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/SphereStack.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/SphereStack.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/TheoJansen.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/TheoJansen.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/TheoJansen.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/TheoJansen.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Tiles.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Tiles.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Tiles.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Tiles.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/TimeOfImpact.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/TimeOfImpact.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/TimeOfImpact.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/TimeOfImpact.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Tumbler.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Tumbler.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Tumbler.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Tumbler.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/VaryingFriction.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/VaryingFriction.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/VaryingFriction.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/VaryingFriction.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/VaryingRestitution.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/VaryingRestitution.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/VaryingRestitution.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/VaryingRestitution.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/VerticalStack.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/VerticalStack.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/VerticalStack.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/VerticalStack.h
diff --git a/samples/cpp-tests/Classes/Box2DTestBed/Tests/Web.h b/tests/cpp-tests/Classes/Box2DTestBed/Tests/Web.h
similarity index 100%
rename from samples/cpp-tests/Classes/Box2DTestBed/Tests/Web.h
rename to tests/cpp-tests/Classes/Box2DTestBed/Tests/Web.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-1159.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-1159.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-1159.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-1159.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-1159.h b/tests/cpp-tests/Classes/BugsTest/Bug-1159.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-1159.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-1159.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-1174.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-1174.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-1174.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-1174.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-1174.h b/tests/cpp-tests/Classes/BugsTest/Bug-1174.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-1174.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-1174.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-350.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-350.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-350.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-350.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-350.h b/tests/cpp-tests/Classes/BugsTest/Bug-350.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-350.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-350.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-422.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-422.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-422.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-422.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-422.h b/tests/cpp-tests/Classes/BugsTest/Bug-422.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-422.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-422.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.h b/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.h b/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-624.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-624.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-624.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-624.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-624.h b/tests/cpp-tests/Classes/BugsTest/Bug-624.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-624.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-624.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-886.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-886.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-886.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-886.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-886.h b/tests/cpp-tests/Classes/BugsTest/Bug-886.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-886.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-886.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-899.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-899.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-899.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-899.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-899.h b/tests/cpp-tests/Classes/BugsTest/Bug-899.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-899.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-899.h
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-914.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-914.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-914.cpp
rename to tests/cpp-tests/Classes/BugsTest/Bug-914.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/Bug-914.h b/tests/cpp-tests/Classes/BugsTest/Bug-914.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/Bug-914.h
rename to tests/cpp-tests/Classes/BugsTest/Bug-914.h
diff --git a/samples/cpp-tests/Classes/BugsTest/BugsTest.cpp b/tests/cpp-tests/Classes/BugsTest/BugsTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/BugsTest.cpp
rename to tests/cpp-tests/Classes/BugsTest/BugsTest.cpp
diff --git a/samples/cpp-tests/Classes/BugsTest/BugsTest.h b/tests/cpp-tests/Classes/BugsTest/BugsTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/BugsTest/BugsTest.h
rename to tests/cpp-tests/Classes/BugsTest/BugsTest.h
diff --git a/samples/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.cpp b/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.cpp
rename to tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.cpp
diff --git a/samples/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.h b/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.h
rename to tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.h
diff --git a/samples/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.cpp b/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.cpp
rename to tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.cpp
diff --git a/samples/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.h b/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.h
rename to tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.h
diff --git a/samples/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp
rename to tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp
diff --git a/samples/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h
rename to tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h
diff --git a/samples/cpp-tests/Classes/CocosDenshionTest/CocosDenshionTest.cpp b/tests/cpp-tests/Classes/CocosDenshionTest/CocosDenshionTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/CocosDenshionTest/CocosDenshionTest.cpp
rename to tests/cpp-tests/Classes/CocosDenshionTest/CocosDenshionTest.cpp
diff --git a/samples/cpp-tests/Classes/CocosDenshionTest/CocosDenshionTest.h b/tests/cpp-tests/Classes/CocosDenshionTest/CocosDenshionTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/CocosDenshionTest/CocosDenshionTest.h
rename to tests/cpp-tests/Classes/CocosDenshionTest/CocosDenshionTest.h
diff --git a/samples/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.cpp b/tests/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.cpp
rename to tests/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.cpp
diff --git a/samples/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.h b/tests/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.h
rename to tests/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.h
diff --git a/samples/cpp-tests/Classes/ConsoleTest/ConsoleTest.cpp b/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ConsoleTest/ConsoleTest.cpp
rename to tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.cpp
diff --git a/samples/cpp-tests/Classes/ConsoleTest/ConsoleTest.h b/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ConsoleTest/ConsoleTest.h
rename to tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.h
diff --git a/samples/cpp-tests/Classes/CurlTest/CurlTest.cpp b/tests/cpp-tests/Classes/CurlTest/CurlTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/CurlTest/CurlTest.cpp
rename to tests/cpp-tests/Classes/CurlTest/CurlTest.cpp
diff --git a/samples/cpp-tests/Classes/CurlTest/CurlTest.h b/tests/cpp-tests/Classes/CurlTest/CurlTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/CurlTest/CurlTest.h
rename to tests/cpp-tests/Classes/CurlTest/CurlTest.h
diff --git a/samples/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.cpp b/tests/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.cpp
rename to tests/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.cpp
diff --git a/samples/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.h b/tests/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.h
rename to tests/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.h
diff --git a/samples/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.cpp b/tests/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.cpp
rename to tests/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.cpp
diff --git a/samples/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.h b/tests/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.h
rename to tests/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.h
diff --git a/samples/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp b/tests/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp
rename to tests/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp
diff --git a/samples/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.h b/tests/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.h
rename to tests/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.h
diff --git a/samples/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp b/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp
rename to tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp
diff --git a/samples/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.h b/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.h
rename to tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.h
diff --git a/samples/cpp-tests/Classes/EffectsTest/EffectsTest.cpp b/tests/cpp-tests/Classes/EffectsTest/EffectsTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/EffectsTest/EffectsTest.cpp
rename to tests/cpp-tests/Classes/EffectsTest/EffectsTest.cpp
diff --git a/samples/cpp-tests/Classes/EffectsTest/EffectsTest.h b/tests/cpp-tests/Classes/EffectsTest/EffectsTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/EffectsTest/EffectsTest.h
rename to tests/cpp-tests/Classes/EffectsTest/EffectsTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocoStudioGUITest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocoStudioGUITest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocoStudioGUITest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocoStudioGUITest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocoStudioGUITest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocoStudioGUITest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocoStudioGUITest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocoStudioGUITest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomGUIScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomGUIScene.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomGUIScene.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomGUIScene.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomGUIScene.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomGUIScene.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomGUIScene.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomGUIScene.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomParticleWidgetTest/CustomParticleWidgetTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomParticleWidgetTest/CustomParticleWidgetTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomParticleWidgetTest/CustomParticleWidgetTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomParticleWidgetTest/CustomParticleWidgetTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomParticleWidgetTest/CustomParticleWidgetTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomParticleWidgetTest/CustomParticleWidgetTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomParticleWidgetTest/CustomParticleWidgetTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomParticleWidgetTest/CustomParticleWidgetTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageView.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageView.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageView.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageView.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageView.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageView.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageView.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageView.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageViewReader.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageViewReader.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageViewReader.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageViewReader.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageViewReader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageViewReader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageViewReader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomImageViewReader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidget.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidget.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidget.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidget.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidget.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidget.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidget.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidget.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidgetReader.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidgetReader.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidgetReader.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidgetReader.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidgetReader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidgetReader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidgetReader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomParticleWidgetReader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomReader.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomReader.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomReader.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomReader.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomReader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomReader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomReader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/CustomWidget/CustomReader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/GUIEditorTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/GUIEditorTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/GUIEditorTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/GUIEditorTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/GUIEditorTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/GUIEditorTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/GUIEditorTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/GUIEditorTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILayoutTest/UILayoutTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScene_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UITextTest/UITextTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest_Editor.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest_Editor.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest_Editor.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest_Editor.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest_Editor.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest_Editor.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest_Editor.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest_Editor.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/EventDef.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/EventDef.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/EventDef.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/EventDef.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/acts.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/acts.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/acts.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/acts.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/acts.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/acts.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/acts.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/acts.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/cons.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/cons.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/cons.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/cons.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/cons.h b/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/cons.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/cons.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocoStudioSceneTest/TriggerCode/cons.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/LabelTest/LabelTestLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/LabelTest/LabelTestLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/LabelTest/LabelTestLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/LabelTest/LabelTestLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/LabelTest/LabelTestLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/LabelTest/LabelTestLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/LabelTest/LabelTestLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/LabelTest/LabelTestLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ParticleSystemTest/ParticleSystemTestLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ParticleSystemTest/ParticleSystemTestLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ParticleSystemTest/ParticleSystemTestLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ParticleSystemTest/ParticleSystemTestLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ParticleSystemTest/ParticleSystemTestLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ParticleSystemTest/ParticleSystemTestLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ParticleSystemTest/ParticleSystemTestLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ParticleSystemTest/ParticleSystemTestLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ScrollViewTest/ScrollViewTestLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ScrollViewTest/ScrollViewTestLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ScrollViewTest/ScrollViewTestLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ScrollViewTest/ScrollViewTestLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ScrollViewTest/ScrollViewTestLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ScrollViewTest/ScrollViewTestLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ScrollViewTest/ScrollViewTestLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/ScrollViewTest/ScrollViewTestLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/SpriteTest/SpriteTestLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/SpriteTest/SpriteTestLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/SpriteTest/SpriteTestLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/SpriteTest/SpriteTestLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/SpriteTest/SpriteTestLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/SpriteTest/SpriteTestLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/SpriteTest/SpriteTestLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/SpriteTest/SpriteTestLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackLayerLoader.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackLayerLoader.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackLayerLoader.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackLayerLoader.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.cpp b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.h b/tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.h
rename to tests/cpp-tests/Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.h b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.h b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.h b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.h b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.h
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.cpp b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.h b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.h
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.h b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.h b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.h b/tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/EditBoxTest/EditBoxTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/EditBoxTest/EditBoxTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/EditBoxTest/EditBoxTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/EditBoxTest/EditBoxTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/EditBoxTest/EditBoxTest.h b/tests/cpp-tests/Classes/ExtensionsTest/EditBoxTest/EditBoxTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/EditBoxTest/EditBoxTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/EditBoxTest/EditBoxTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ExtensionsTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/ExtensionsTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ExtensionsTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/ExtensionsTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/ExtensionsTest.h b/tests/cpp-tests/Classes/ExtensionsTest/ExtensionsTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/ExtensionsTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/ExtensionsTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.h b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/SocketIOTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/SocketIOTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/SocketIOTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/SocketIOTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/SocketIOTest.h b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/SocketIOTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/SocketIOTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/SocketIOTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/WebSocketTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/WebSocketTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/WebSocketTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/WebSocketTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/WebSocketTest.h b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/WebSocketTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/NetworkTest/WebSocketTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/WebSocketTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.h b/tests/cpp-tests/Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.h b/tests/cpp-tests/Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.h
rename to tests/cpp-tests/Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.h b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.h
rename to tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.h
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp
rename to tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp
diff --git a/samples/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.h b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.h
similarity index 100%
rename from samples/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.h
rename to tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.h
diff --git a/samples/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.cpp b/tests/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.cpp
rename to tests/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.cpp
diff --git a/samples/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.h b/tests/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.h
rename to tests/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.h
diff --git a/samples/cpp-tests/Classes/FontTest/FontTest.cpp b/tests/cpp-tests/Classes/FontTest/FontTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/FontTest/FontTest.cpp
rename to tests/cpp-tests/Classes/FontTest/FontTest.cpp
diff --git a/samples/cpp-tests/Classes/FontTest/FontTest.h b/tests/cpp-tests/Classes/FontTest/FontTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/FontTest/FontTest.h
rename to tests/cpp-tests/Classes/FontTest/FontTest.h
diff --git a/samples/cpp-tests/Classes/InputTest/MouseTest.cpp b/tests/cpp-tests/Classes/InputTest/MouseTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/InputTest/MouseTest.cpp
rename to tests/cpp-tests/Classes/InputTest/MouseTest.cpp
diff --git a/samples/cpp-tests/Classes/InputTest/MouseTest.h b/tests/cpp-tests/Classes/InputTest/MouseTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/InputTest/MouseTest.h
rename to tests/cpp-tests/Classes/InputTest/MouseTest.h
diff --git a/samples/cpp-tests/Classes/IntervalTest/IntervalTest.cpp b/tests/cpp-tests/Classes/IntervalTest/IntervalTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/IntervalTest/IntervalTest.cpp
rename to tests/cpp-tests/Classes/IntervalTest/IntervalTest.cpp
diff --git a/samples/cpp-tests/Classes/IntervalTest/IntervalTest.h b/tests/cpp-tests/Classes/IntervalTest/IntervalTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/IntervalTest/IntervalTest.h
rename to tests/cpp-tests/Classes/IntervalTest/IntervalTest.h
diff --git a/samples/cpp-tests/Classes/KeyboardTest/KeyboardTest.cpp b/tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/KeyboardTest/KeyboardTest.cpp
rename to tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.cpp
diff --git a/samples/cpp-tests/Classes/KeyboardTest/KeyboardTest.h b/tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/KeyboardTest/KeyboardTest.h
rename to tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.h
diff --git a/samples/cpp-tests/Classes/KeypadTest/KeypadTest.cpp b/tests/cpp-tests/Classes/KeypadTest/KeypadTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/KeypadTest/KeypadTest.cpp
rename to tests/cpp-tests/Classes/KeypadTest/KeypadTest.cpp
diff --git a/samples/cpp-tests/Classes/KeypadTest/KeypadTest.h b/tests/cpp-tests/Classes/KeypadTest/KeypadTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/KeypadTest/KeypadTest.h
rename to tests/cpp-tests/Classes/KeypadTest/KeypadTest.h
diff --git a/samples/cpp-tests/Classes/LabelTest/LabelTest.cpp b/tests/cpp-tests/Classes/LabelTest/LabelTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/LabelTest/LabelTest.cpp
rename to tests/cpp-tests/Classes/LabelTest/LabelTest.cpp
diff --git a/samples/cpp-tests/Classes/LabelTest/LabelTest.h b/tests/cpp-tests/Classes/LabelTest/LabelTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/LabelTest/LabelTest.h
rename to tests/cpp-tests/Classes/LabelTest/LabelTest.h
diff --git a/samples/cpp-tests/Classes/LabelTest/LabelTestNew.cpp b/tests/cpp-tests/Classes/LabelTest/LabelTestNew.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/LabelTest/LabelTestNew.cpp
rename to tests/cpp-tests/Classes/LabelTest/LabelTestNew.cpp
diff --git a/samples/cpp-tests/Classes/LabelTest/LabelTestNew.h b/tests/cpp-tests/Classes/LabelTest/LabelTestNew.h
similarity index 100%
rename from samples/cpp-tests/Classes/LabelTest/LabelTestNew.h
rename to tests/cpp-tests/Classes/LabelTest/LabelTestNew.h
diff --git a/samples/cpp-tests/Classes/LayerTest/LayerTest.cpp b/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/LayerTest/LayerTest.cpp
rename to tests/cpp-tests/Classes/LayerTest/LayerTest.cpp
diff --git a/samples/cpp-tests/Classes/LayerTest/LayerTest.h b/tests/cpp-tests/Classes/LayerTest/LayerTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/LayerTest/LayerTest.h
rename to tests/cpp-tests/Classes/LayerTest/LayerTest.h
diff --git a/samples/cpp-tests/Classes/MenuTest/MenuTest.cpp b/tests/cpp-tests/Classes/MenuTest/MenuTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/MenuTest/MenuTest.cpp
rename to tests/cpp-tests/Classes/MenuTest/MenuTest.cpp
diff --git a/samples/cpp-tests/Classes/MenuTest/MenuTest.h b/tests/cpp-tests/Classes/MenuTest/MenuTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/MenuTest/MenuTest.h
rename to tests/cpp-tests/Classes/MenuTest/MenuTest.h
diff --git a/samples/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.cpp b/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.cpp
rename to tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.cpp
diff --git a/samples/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.h b/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.h
rename to tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.h
diff --git a/samples/cpp-tests/Classes/MutiTouchTest/MutiTouchTest.cpp b/tests/cpp-tests/Classes/MutiTouchTest/MutiTouchTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/MutiTouchTest/MutiTouchTest.cpp
rename to tests/cpp-tests/Classes/MutiTouchTest/MutiTouchTest.cpp
diff --git a/samples/cpp-tests/Classes/MutiTouchTest/MutiTouchTest.h b/tests/cpp-tests/Classes/MutiTouchTest/MutiTouchTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/MutiTouchTest/MutiTouchTest.h
rename to tests/cpp-tests/Classes/MutiTouchTest/MutiTouchTest.h
diff --git a/samples/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp b/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp
rename to tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp
diff --git a/samples/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.h b/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.h
rename to tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.h
diff --git a/samples/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp
rename to tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp
diff --git a/samples/cpp-tests/Classes/NewRendererTest/NewRendererTest.h b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/NewRendererTest/NewRendererTest.h
rename to tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h
diff --git a/samples/cpp-tests/Classes/NodeTest/NodeTest.cpp b/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/NodeTest/NodeTest.cpp
rename to tests/cpp-tests/Classes/NodeTest/NodeTest.cpp
diff --git a/samples/cpp-tests/Classes/NodeTest/NodeTest.h b/tests/cpp-tests/Classes/NodeTest/NodeTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/NodeTest/NodeTest.h
rename to tests/cpp-tests/Classes/NodeTest/NodeTest.h
diff --git a/samples/cpp-tests/Classes/ParallaxTest/ParallaxTest.cpp b/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ParallaxTest/ParallaxTest.cpp
rename to tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.cpp
diff --git a/samples/cpp-tests/Classes/ParallaxTest/ParallaxTest.h b/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ParallaxTest/ParallaxTest.h
rename to tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.h
diff --git a/samples/cpp-tests/Classes/ParticleTest/ParticleTest.cpp b/tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ParticleTest/ParticleTest.cpp
rename to tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp
diff --git a/samples/cpp-tests/Classes/ParticleTest/ParticleTest.h b/tests/cpp-tests/Classes/ParticleTest/ParticleTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ParticleTest/ParticleTest.h
rename to tests/cpp-tests/Classes/ParticleTest/ParticleTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceAllocTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceAllocTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceAllocTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceAllocTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceAllocTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceAllocTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceAllocTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceAllocTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceContainerTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceContainerTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceContainerTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceContainerTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceContainerTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceContainerTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceContainerTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceContainerTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceEventDispatcherTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceEventDispatcherTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceEventDispatcherTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceEventDispatcherTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceEventDispatcherTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceEventDispatcherTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceEventDispatcherTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceEventDispatcherTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceLabelTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceLabelTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceLabelTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceLabelTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceLabelTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceLabelTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceLabelTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceLabelTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceNodeChildrenTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceNodeChildrenTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceNodeChildrenTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceNodeChildrenTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceParticleTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceParticleTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceParticleTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceParticleTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceParticleTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceParticleTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceParticleTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceParticleTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceRendererTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceRendererTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceRendererTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceRendererTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceRendererTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceRendererTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceRendererTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceRendererTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceScenarioTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceScenarioTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceScenarioTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceScenarioTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceScenarioTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceScenarioTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceScenarioTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceScenarioTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceSpriteTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceSpriteTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceSpriteTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceSpriteTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceSpriteTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceSpriteTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceSpriteTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceSpriteTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceTextureTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceTextureTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceTextureTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceTextureTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceTextureTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceTextureTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceTextureTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceTextureTest.h
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceTouchesTest.cpp b/tests/cpp-tests/Classes/PerformanceTest/PerformanceTouchesTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceTouchesTest.cpp
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceTouchesTest.cpp
diff --git a/samples/cpp-tests/Classes/PerformanceTest/PerformanceTouchesTest.h b/tests/cpp-tests/Classes/PerformanceTest/PerformanceTouchesTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PerformanceTest/PerformanceTouchesTest.h
rename to tests/cpp-tests/Classes/PerformanceTest/PerformanceTouchesTest.h
diff --git a/samples/cpp-tests/Classes/PhysicsTest/PhysicsTest.cpp b/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/PhysicsTest/PhysicsTest.cpp
rename to tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.cpp
diff --git a/samples/cpp-tests/Classes/PhysicsTest/PhysicsTest.h b/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/PhysicsTest/PhysicsTest.h
rename to tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.h
diff --git a/samples/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.cpp b/tests/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.cpp
rename to tests/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.cpp
diff --git a/samples/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.h b/tests/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.h
rename to tests/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.h
diff --git a/samples/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.cpp b/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.cpp
rename to tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.cpp
diff --git a/samples/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.h b/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.h
rename to tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.h
diff --git a/samples/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.cpp b/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.cpp
rename to tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.cpp
diff --git a/samples/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.h b/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.h
rename to tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.h
diff --git a/samples/cpp-tests/Classes/SceneTest/SceneTest.cpp b/tests/cpp-tests/Classes/SceneTest/SceneTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/SceneTest/SceneTest.cpp
rename to tests/cpp-tests/Classes/SceneTest/SceneTest.cpp
diff --git a/samples/cpp-tests/Classes/SceneTest/SceneTest.h b/tests/cpp-tests/Classes/SceneTest/SceneTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/SceneTest/SceneTest.h
rename to tests/cpp-tests/Classes/SceneTest/SceneTest.h
diff --git a/samples/cpp-tests/Classes/SchedulerTest/SchedulerTest.cpp b/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/SchedulerTest/SchedulerTest.cpp
rename to tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.cpp
diff --git a/samples/cpp-tests/Classes/SchedulerTest/SchedulerTest.h b/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/SchedulerTest/SchedulerTest.h
rename to tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.h
diff --git a/samples/cpp-tests/Classes/ShaderTest/ShaderTest.cpp b/tests/cpp-tests/Classes/ShaderTest/ShaderTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ShaderTest/ShaderTest.cpp
rename to tests/cpp-tests/Classes/ShaderTest/ShaderTest.cpp
diff --git a/samples/cpp-tests/Classes/ShaderTest/ShaderTest.h b/tests/cpp-tests/Classes/ShaderTest/ShaderTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ShaderTest/ShaderTest.h
rename to tests/cpp-tests/Classes/ShaderTest/ShaderTest.h
diff --git a/samples/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp b/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp
rename to tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp
diff --git a/samples/cpp-tests/Classes/ShaderTest/ShaderTest2.h b/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.h
similarity index 100%
rename from samples/cpp-tests/Classes/ShaderTest/ShaderTest2.h
rename to tests/cpp-tests/Classes/ShaderTest/ShaderTest2.h
diff --git a/samples/cpp-tests/Classes/SpineTest/SpineTest.cpp b/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/SpineTest/SpineTest.cpp
rename to tests/cpp-tests/Classes/SpineTest/SpineTest.cpp
diff --git a/samples/cpp-tests/Classes/SpineTest/SpineTest.h b/tests/cpp-tests/Classes/SpineTest/SpineTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/SpineTest/SpineTest.h
rename to tests/cpp-tests/Classes/SpineTest/SpineTest.h
diff --git a/samples/cpp-tests/Classes/SpriteTest/SpriteTest.cpp.REMOVED.git-id b/tests/cpp-tests/Classes/SpriteTest/SpriteTest.cpp.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Classes/SpriteTest/SpriteTest.cpp.REMOVED.git-id
rename to tests/cpp-tests/Classes/SpriteTest/SpriteTest.cpp.REMOVED.git-id
diff --git a/samples/cpp-tests/Classes/SpriteTest/SpriteTest.h b/tests/cpp-tests/Classes/SpriteTest/SpriteTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/SpriteTest/SpriteTest.h
rename to tests/cpp-tests/Classes/SpriteTest/SpriteTest.h
diff --git a/samples/cpp-tests/Classes/TextInputTest/TextInputTest.cpp b/tests/cpp-tests/Classes/TextInputTest/TextInputTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/TextInputTest/TextInputTest.cpp
rename to tests/cpp-tests/Classes/TextInputTest/TextInputTest.cpp
diff --git a/samples/cpp-tests/Classes/TextInputTest/TextInputTest.h b/tests/cpp-tests/Classes/TextInputTest/TextInputTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/TextInputTest/TextInputTest.h
rename to tests/cpp-tests/Classes/TextInputTest/TextInputTest.h
diff --git a/samples/cpp-tests/Classes/Texture2dTest/Texture2dTest.cpp b/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/Texture2dTest/Texture2dTest.cpp
rename to tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.cpp
diff --git a/samples/cpp-tests/Classes/Texture2dTest/Texture2dTest.h b/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/Texture2dTest/Texture2dTest.h
rename to tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.h
diff --git a/samples/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.cpp b/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.cpp
rename to tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.cpp
diff --git a/samples/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h b/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h
rename to tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h
diff --git a/samples/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp b/tests/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp
rename to tests/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp
diff --git a/samples/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.h b/tests/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.h
rename to tests/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.h
diff --git a/samples/cpp-tests/Classes/TileMapTest/TileMapTest.cpp b/tests/cpp-tests/Classes/TileMapTest/TileMapTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/TileMapTest/TileMapTest.cpp
rename to tests/cpp-tests/Classes/TileMapTest/TileMapTest.cpp
diff --git a/samples/cpp-tests/Classes/TileMapTest/TileMapTest.h b/tests/cpp-tests/Classes/TileMapTest/TileMapTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/TileMapTest/TileMapTest.h
rename to tests/cpp-tests/Classes/TileMapTest/TileMapTest.h
diff --git a/samples/cpp-tests/Classes/TouchesTest/Ball.cpp b/tests/cpp-tests/Classes/TouchesTest/Ball.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/TouchesTest/Ball.cpp
rename to tests/cpp-tests/Classes/TouchesTest/Ball.cpp
diff --git a/samples/cpp-tests/Classes/TouchesTest/Ball.h b/tests/cpp-tests/Classes/TouchesTest/Ball.h
similarity index 100%
rename from samples/cpp-tests/Classes/TouchesTest/Ball.h
rename to tests/cpp-tests/Classes/TouchesTest/Ball.h
diff --git a/samples/cpp-tests/Classes/TouchesTest/Paddle.cpp b/tests/cpp-tests/Classes/TouchesTest/Paddle.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/TouchesTest/Paddle.cpp
rename to tests/cpp-tests/Classes/TouchesTest/Paddle.cpp
diff --git a/samples/cpp-tests/Classes/TouchesTest/Paddle.h b/tests/cpp-tests/Classes/TouchesTest/Paddle.h
similarity index 100%
rename from samples/cpp-tests/Classes/TouchesTest/Paddle.h
rename to tests/cpp-tests/Classes/TouchesTest/Paddle.h
diff --git a/samples/cpp-tests/Classes/TouchesTest/TouchesTest.cpp b/tests/cpp-tests/Classes/TouchesTest/TouchesTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/TouchesTest/TouchesTest.cpp
rename to tests/cpp-tests/Classes/TouchesTest/TouchesTest.cpp
diff --git a/samples/cpp-tests/Classes/TouchesTest/TouchesTest.h b/tests/cpp-tests/Classes/TouchesTest/TouchesTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/TouchesTest/TouchesTest.h
rename to tests/cpp-tests/Classes/TouchesTest/TouchesTest.h
diff --git a/samples/cpp-tests/Classes/TransitionsTest/TransitionsTest.cpp b/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/TransitionsTest/TransitionsTest.cpp
rename to tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.cpp
diff --git a/samples/cpp-tests/Classes/TransitionsTest/TransitionsTest.h b/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/TransitionsTest/TransitionsTest.h
rename to tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.h
diff --git a/samples/cpp-tests/Classes/UnitTest/UnitTest.cpp b/tests/cpp-tests/Classes/UnitTest/UnitTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/UnitTest/UnitTest.cpp
rename to tests/cpp-tests/Classes/UnitTest/UnitTest.cpp
diff --git a/samples/cpp-tests/Classes/UnitTest/UnitTest.h b/tests/cpp-tests/Classes/UnitTest/UnitTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/UnitTest/UnitTest.h
rename to tests/cpp-tests/Classes/UnitTest/UnitTest.h
diff --git a/samples/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.cpp b/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.cpp
rename to tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.cpp
diff --git a/samples/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.h b/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.h
rename to tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.h
diff --git a/samples/cpp-tests/Classes/VisibleRect.cpp b/tests/cpp-tests/Classes/VisibleRect.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/VisibleRect.cpp
rename to tests/cpp-tests/Classes/VisibleRect.cpp
diff --git a/samples/cpp-tests/Classes/VisibleRect.h b/tests/cpp-tests/Classes/VisibleRect.h
similarity index 100%
rename from samples/cpp-tests/Classes/VisibleRect.h
rename to tests/cpp-tests/Classes/VisibleRect.h
diff --git a/samples/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.cpp b/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.cpp
rename to tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.cpp
diff --git a/samples/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.h b/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.h
similarity index 100%
rename from samples/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.h
rename to tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.h
diff --git a/samples/cpp-tests/Classes/controller.cpp b/tests/cpp-tests/Classes/controller.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/controller.cpp
rename to tests/cpp-tests/Classes/controller.cpp
diff --git a/samples/cpp-tests/Classes/controller.h b/tests/cpp-tests/Classes/controller.h
similarity index 100%
rename from samples/cpp-tests/Classes/controller.h
rename to tests/cpp-tests/Classes/controller.h
diff --git a/samples/cpp-tests/Classes/testBasic.cpp b/tests/cpp-tests/Classes/testBasic.cpp
similarity index 100%
rename from samples/cpp-tests/Classes/testBasic.cpp
rename to tests/cpp-tests/Classes/testBasic.cpp
diff --git a/samples/cpp-tests/Classes/testBasic.h b/tests/cpp-tests/Classes/testBasic.h
similarity index 100%
rename from samples/cpp-tests/Classes/testBasic.h
rename to tests/cpp-tests/Classes/testBasic.h
diff --git a/samples/cpp-tests/Classes/testResource.h b/tests/cpp-tests/Classes/testResource.h
similarity index 100%
rename from samples/cpp-tests/Classes/testResource.h
rename to tests/cpp-tests/Classes/testResource.h
diff --git a/samples/cpp-tests/Classes/tests.h b/tests/cpp-tests/Classes/tests.h
similarity index 100%
rename from samples/cpp-tests/Classes/tests.h
rename to tests/cpp-tests/Classes/tests.h
diff --git a/tests/cpp-tests/Resources/.gitignore b/tests/cpp-tests/Resources/.gitignore
new file mode 100644
index 0000000000..1d65afe366
--- /dev/null
+++ b/tests/cpp-tests/Resources/.gitignore
@@ -0,0 +1,2 @@
+#Do now ignore Marmalade icf files
+!*.icf
diff --git a/samples/cpp-tests/Resources/Hello.png.REMOVED.git-id b/tests/cpp-tests/Resources/Hello.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Hello.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Hello.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/HelloWorld.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/HelloWorld.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/HelloWorld.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/HelloWorld.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/PlanetCute-1024x1024.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/PlanetCute-1024x1024.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/PlanetCute-1024x1024.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/PlanetCute-1024x1024.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/atlastest.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/atlastest.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/atlastest.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/atlastest.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/background1.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/background1.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/background1.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/background1.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/background2.jpg.REMOVED.git-id b/tests/cpp-tests/Resources/Images/background2.jpg.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/background2.jpg.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/background2.jpg.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/background2.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/background2.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/background2.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/background2.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/bugs/bug886.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/bugs/bug886.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/bugs/bug886.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/bugs/bug886.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/grossini_dance_atlas-mono.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/grossini_dance_atlas-mono.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/grossini_dance_atlas-mono.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/grossini_dance_atlas-mono.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/landscape-1024x1024.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/landscape-1024x1024.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/landscape-1024x1024.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/landscape-1024x1024.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/noise.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/noise.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/noise.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/noise.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/spritesheet1.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/spritesheet1.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/spritesheet1.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/spritesheet1.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/stone.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/stone.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/stone.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/stone.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/test_1021x1024.png.REMOVED.git-id b/tests/cpp-tests/Resources/Images/test_1021x1024.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/test_1021x1024.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/test_1021x1024.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/test_1021x1024_a8.pvr.REMOVED.git-id b/tests/cpp-tests/Resources/Images/test_1021x1024_a8.pvr.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/test_1021x1024_a8.pvr.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/test_1021x1024_a8.pvr.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/test_1021x1024_rgb888.pvr.REMOVED.git-id b/tests/cpp-tests/Resources/Images/test_1021x1024_rgb888.pvr.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/test_1021x1024_rgb888.pvr.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/test_1021x1024_rgb888.pvr.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/test_1021x1024_rgb888.pvr.gz.REMOVED.git-id b/tests/cpp-tests/Resources/Images/test_1021x1024_rgb888.pvr.gz.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/test_1021x1024_rgb888.pvr.gz.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/test_1021x1024_rgb888.pvr.gz.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/test_1021x1024_rgba4444.pvr.REMOVED.git-id b/tests/cpp-tests/Resources/Images/test_1021x1024_rgba4444.pvr.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/test_1021x1024_rgba4444.pvr.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/test_1021x1024_rgba4444.pvr.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/test_1021x1024_rgba4444.pvr.gz.REMOVED.git-id b/tests/cpp-tests/Resources/Images/test_1021x1024_rgba4444.pvr.gz.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/test_1021x1024_rgba4444.pvr.gz.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/test_1021x1024_rgba4444.pvr.gz.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/test_1021x1024_rgba8888.pvr.REMOVED.git-id b/tests/cpp-tests/Resources/Images/test_1021x1024_rgba8888.pvr.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/test_1021x1024_rgba8888.pvr.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/test_1021x1024_rgba8888.pvr.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/test_1021x1024_rgba8888.pvr.gz.REMOVED.git-id b/tests/cpp-tests/Resources/Images/test_1021x1024_rgba8888.pvr.gz.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/test_1021x1024_rgba8888.pvr.gz.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/test_1021x1024_rgba8888.pvr.gz.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Images/test_512x512_s3tc_dxt5_with_no_mipmaps.dds.REMOVED.git-id b/tests/cpp-tests/Resources/Images/test_512x512_s3tc_dxt5_with_no_mipmaps.dds.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/Images/test_512x512_s3tc_dxt5_with_no_mipmaps.dds.REMOVED.git-id
rename to tests/cpp-tests/Resources/Images/test_512x512_s3tc_dxt5_with_no_mipmaps.dds.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/Misc/resources-hd/test4.txt b/tests/cpp-tests/Resources/Misc/resources-hd/test4.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/resources-hd/test4.txt
rename to tests/cpp-tests/Resources/Misc/resources-hd/test4.txt
diff --git a/samples/cpp-tests/Resources/Misc/resources-ipad/test2.txt b/tests/cpp-tests/Resources/Misc/resources-ipad/test2.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/resources-ipad/test2.txt
rename to tests/cpp-tests/Resources/Misc/resources-ipad/test2.txt
diff --git a/samples/cpp-tests/Resources/Misc/resources-ipadhd/test1.txt b/tests/cpp-tests/Resources/Misc/resources-ipadhd/test1.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/resources-ipadhd/test1.txt
rename to tests/cpp-tests/Resources/Misc/resources-ipadhd/test1.txt
diff --git a/samples/cpp-tests/Resources/Misc/resources-iphone/test6.txt b/tests/cpp-tests/Resources/Misc/resources-iphone/test6.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/resources-iphone/test6.txt
rename to tests/cpp-tests/Resources/Misc/resources-iphone/test6.txt
diff --git a/samples/cpp-tests/Resources/Misc/resources-mac/test2.txt b/tests/cpp-tests/Resources/Misc/resources-mac/test2.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/resources-mac/test2.txt
rename to tests/cpp-tests/Resources/Misc/resources-mac/test2.txt
diff --git a/samples/cpp-tests/Resources/Misc/resources-machd/test1.txt b/tests/cpp-tests/Resources/Misc/resources-machd/test1.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/resources-machd/test1.txt
rename to tests/cpp-tests/Resources/Misc/resources-machd/test1.txt
diff --git a/samples/cpp-tests/Resources/Misc/resources-wide/test5.txt b/tests/cpp-tests/Resources/Misc/resources-wide/test5.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/resources-wide/test5.txt
rename to tests/cpp-tests/Resources/Misc/resources-wide/test5.txt
diff --git a/samples/cpp-tests/Resources/Misc/resources-widehd/test3.txt b/tests/cpp-tests/Resources/Misc/resources-widehd/test3.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/resources-widehd/test3.txt
rename to tests/cpp-tests/Resources/Misc/resources-widehd/test3.txt
diff --git a/samples/cpp-tests/Resources/Misc/searchpath1/file1.txt b/tests/cpp-tests/Resources/Misc/searchpath1/file1.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/searchpath1/file1.txt
rename to tests/cpp-tests/Resources/Misc/searchpath1/file1.txt
diff --git a/samples/cpp-tests/Resources/Misc/searchpath2/resources-ipad/file2.txt b/tests/cpp-tests/Resources/Misc/searchpath2/resources-ipad/file2.txt
similarity index 100%
rename from samples/cpp-tests/Resources/Misc/searchpath2/resources-ipad/file2.txt
rename to tests/cpp-tests/Resources/Misc/searchpath2/resources-ipad/file2.txt
diff --git a/samples/cpp-tests/Resources/Shaders/example_ColorBars.vsh b/tests/cpp-tests/Resources/Shaders/example_ColorBars.vsh
similarity index 100%
rename from samples/cpp-tests/Resources/Shaders/example_ColorBars.vsh
rename to tests/cpp-tests/Resources/Shaders/example_ColorBars.vsh
diff --git a/samples/cpp-tests/Resources/Shaders/example_Flower.vsh b/tests/cpp-tests/Resources/Shaders/example_Flower.vsh
similarity index 100%
rename from samples/cpp-tests/Resources/Shaders/example_Flower.vsh
rename to tests/cpp-tests/Resources/Shaders/example_Flower.vsh
diff --git a/samples/cpp-tests/Resources/Shaders/example_Heart.vsh b/tests/cpp-tests/Resources/Shaders/example_Heart.vsh
similarity index 100%
rename from samples/cpp-tests/Resources/Shaders/example_Heart.vsh
rename to tests/cpp-tests/Resources/Shaders/example_Heart.vsh
diff --git a/samples/cpp-tests/Resources/Shaders/example_Julia.vsh b/tests/cpp-tests/Resources/Shaders/example_Julia.vsh
similarity index 100%
rename from samples/cpp-tests/Resources/Shaders/example_Julia.vsh
rename to tests/cpp-tests/Resources/Shaders/example_Julia.vsh
diff --git a/samples/cpp-tests/Resources/Shaders/example_Mandelbrot.vsh b/tests/cpp-tests/Resources/Shaders/example_Mandelbrot.vsh
similarity index 100%
rename from samples/cpp-tests/Resources/Shaders/example_Mandelbrot.vsh
rename to tests/cpp-tests/Resources/Shaders/example_Mandelbrot.vsh
diff --git a/samples/cpp-tests/Resources/Shaders/example_Monjori.vsh b/tests/cpp-tests/Resources/Shaders/example_Monjori.vsh
similarity index 100%
rename from samples/cpp-tests/Resources/Shaders/example_Monjori.vsh
rename to tests/cpp-tests/Resources/Shaders/example_Monjori.vsh
diff --git a/samples/cpp-tests/Resources/Shaders/example_Plasma.vsh b/tests/cpp-tests/Resources/Shaders/example_Plasma.vsh
similarity index 100%
rename from samples/cpp-tests/Resources/Shaders/example_Plasma.vsh
rename to tests/cpp-tests/Resources/Shaders/example_Plasma.vsh
diff --git a/samples/cpp-tests/Resources/Shaders/example_Twist.vsh b/tests/cpp-tests/Resources/Shaders/example_Twist.vsh
similarity index 100%
rename from samples/cpp-tests/Resources/Shaders/example_Twist.vsh
rename to tests/cpp-tests/Resources/Shaders/example_Twist.vsh
diff --git a/samples/cpp-tests/Resources/TileMaps/hexa-tiles.png.REMOVED.git-id b/tests/cpp-tests/Resources/TileMaps/hexa-tiles.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/TileMaps/hexa-tiles.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/TileMaps/hexa-tiles.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/TileMaps/map/slcj.png.REMOVED.git-id b/tests/cpp-tests/Resources/TileMaps/map/slcj.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/TileMaps/map/slcj.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/TileMaps/map/slcj.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/TileMaps/ortho-test1.png.REMOVED.git-id b/tests/cpp-tests/Resources/TileMaps/ortho-test1.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/TileMaps/ortho-test1.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/TileMaps/ortho-test1.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/TileMaps/ortho-test1_bw.png.REMOVED.git-id b/tests/cpp-tests/Resources/TileMaps/ortho-test1_bw.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/TileMaps/ortho-test1_bw.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/TileMaps/ortho-test1_bw.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/animations/grossini.plist.xml b/tests/cpp-tests/Resources/animations/grossini.plist.xml
similarity index 100%
rename from samples/cpp-tests/Resources/animations/grossini.plist.xml
rename to tests/cpp-tests/Resources/animations/grossini.plist.xml
diff --git a/samples/cpp-tests/Resources/armature/Cowboy.ExportJson.REMOVED.git-id b/tests/cpp-tests/Resources/armature/Cowboy.ExportJson.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/armature/Cowboy.ExportJson.REMOVED.git-id
rename to tests/cpp-tests/Resources/armature/Cowboy.ExportJson.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/armature/Cowboy0.png.REMOVED.git-id b/tests/cpp-tests/Resources/armature/Cowboy0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/armature/Cowboy0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/armature/Cowboy0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/armature/Dragon.xml b/tests/cpp-tests/Resources/armature/Dragon.xml
similarity index 100%
rename from samples/cpp-tests/Resources/armature/Dragon.xml
rename to tests/cpp-tests/Resources/armature/Dragon.xml
diff --git a/samples/cpp-tests/Resources/armature/HeroAnimation.ExportJson.REMOVED.git-id b/tests/cpp-tests/Resources/armature/HeroAnimation.ExportJson.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/armature/HeroAnimation.ExportJson.REMOVED.git-id
rename to tests/cpp-tests/Resources/armature/HeroAnimation.ExportJson.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/armature/cyborg.xml b/tests/cpp-tests/Resources/armature/cyborg.xml
similarity index 100%
rename from samples/cpp-tests/Resources/armature/cyborg.xml
rename to tests/cpp-tests/Resources/armature/cyborg.xml
diff --git a/samples/cpp-tests/Resources/armature/knight.xml b/tests/cpp-tests/Resources/armature/knight.xml
similarity index 100%
rename from samples/cpp-tests/Resources/armature/knight.xml
rename to tests/cpp-tests/Resources/armature/knight.xml
diff --git a/samples/cpp-tests/Resources/armature/robot.xml b/tests/cpp-tests/Resources/armature/robot.xml
similarity index 100%
rename from samples/cpp-tests/Resources/armature/robot.xml
rename to tests/cpp-tests/Resources/armature/robot.xml
diff --git a/samples/cpp-tests/Resources/armature/weapon.xml b/tests/cpp-tests/Resources/armature/weapon.xml
similarity index 100%
rename from samples/cpp-tests/Resources/armature/weapon.xml
rename to tests/cpp-tests/Resources/armature/weapon.xml
diff --git a/samples/cpp-tests/Resources/background-music-aac.wav.REMOVED.git-id b/tests/cpp-tests/Resources/background-music-aac.wav.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/background-music-aac.wav.REMOVED.git-id
rename to tests/cpp-tests/Resources/background-music-aac.wav.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/background.mp3.REMOVED.git-id b/tests/cpp-tests/Resources/background.mp3.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/background.mp3.REMOVED.git-id
rename to tests/cpp-tests/Resources/background.mp3.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/ccb/flower.jpg.REMOVED.git-id b/tests/cpp-tests/Resources/ccb/flower.jpg.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/ccb/flower.jpg.REMOVED.git-id
rename to tests/cpp-tests/Resources/ccb/flower.jpg.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/ccb/gem-0.wav.REMOVED.git-id b/tests/cpp-tests/Resources/ccb/gem-0.wav.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/ccb/gem-0.wav.REMOVED.git-id
rename to tests/cpp-tests/Resources/ccb/gem-0.wav.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/ccb/gem-1.wav.REMOVED.git-id b/tests/cpp-tests/Resources/ccb/gem-1.wav.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/ccb/gem-1.wav.REMOVED.git-id
rename to tests/cpp-tests/Resources/ccb/gem-1.wav.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/ccb/markerfelt24shadow.fnt.REMOVED.git-id b/tests/cpp-tests/Resources/ccb/markerfelt24shadow.fnt.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/ccb/markerfelt24shadow.fnt.REMOVED.git-id
rename to tests/cpp-tests/Resources/ccb/markerfelt24shadow.fnt.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/Hello.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/Hello.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/Hello.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/Hello.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIButton_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIButton_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIButton_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIButton_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UICheckBox_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UICheckBox_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UICheckBox_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UICheckBox_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIImageView_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIImageView_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIImageView_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIImageView_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelAtlas_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelAtlas_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelAtlas_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelAtlas_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelBMFont_Editor/GUI/missing-font.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelBMFont_Editor/GUI/missing-font.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelBMFont_Editor/GUI/missing-font.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelBMFont_Editor/GUI/missing-font.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelBMFont_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelBMFont_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelBMFont_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILabelBMFont_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILabel_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILabel_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILabel_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILabel_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/Hello.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/Hello.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/Hello.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/Hello.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Color_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Color_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Color_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Color_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Gradient_Color_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Gradient_Color_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Gradient_Color_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Gradient_Color_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Horizontal_Layout_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Horizontal_Layout_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Horizontal_Layout_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Horizontal_Layout_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Vertical_Layout_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Vertical_Layout_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Vertical_Layout_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Vertical_Layout_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Location_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Location_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Location_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Location_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Parent_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Parent_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Parent_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Parent_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Scale9_BackgroundImage_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Scale9_BackgroundImage_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Scale9_BackgroundImage_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Scale9_BackgroundImage_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Horizontal_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Horizontal_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Horizontal_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Horizontal_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Vertical_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Vertical_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Vertical_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Vertical_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILoadingBar_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILoadingBar_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UILoadingBar_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UILoadingBar_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIPageView_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIPageView_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIPageView_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIPageView_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Both_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Both_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Both_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Both_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Horizontal_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Horizontal_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Horizontal_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Horizontal_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Vertical_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Vertical_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Vertical_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Vertical_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UISlider_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UISlider_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UISlider_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UISlider_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UITextField_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UITextField_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UITextField_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UITextField_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIWidgetAddNode_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIWidgetAddNode_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UIEditorTest/UIWidgetAddNode_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UIEditorTest/UIWidgetAddNode_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/UITest/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/UITest/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/UITest/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/UITest/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/b11.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/b11.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/b11.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/b11.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/bitmapFontTest2.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/bitmapFontTest2.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/bitmapFontTest2.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/bitmapFontTest2.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/examples/examples.json.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/examples/examples.json.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/examples/examples.json.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/examples/examples.json.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/gui_examples/map_1/map_pve.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/gui_examples/map_1/map_pve.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/gui_examples/map_1/map_pve.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/gui_examples/map_1/map_pve.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/cocosgui/gui_examples/page_1/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/cocosgui/gui_examples/page_1/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/cocosgui/gui_examples/page_1/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/cocosgui/gui_examples/page_1/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/commonly_used_words.txt b/tests/cpp-tests/Resources/commonly_used_words.txt
similarity index 100%
rename from samples/cpp-tests/Resources/commonly_used_words.txt
rename to tests/cpp-tests/Resources/commonly_used_words.txt
diff --git a/samples/cpp-tests/Resources/extensions/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/extensions/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/extensions/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/extensions/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/Courier New.ttf.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/Courier New.ttf.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/Courier New.ttf.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/Courier New.ttf.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/Thonburi.ttf.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/Thonburi.ttf.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/Thonburi.ttf.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/Thonburi.ttf.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/ThonburiBold.ttf.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/ThonburiBold.ttf.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/ThonburiBold.ttf.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/ThonburiBold.ttf.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/arial-26-en-ru_0.png.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/arial-26-en-ru_0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/arial-26-en-ru_0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/arial-26-en-ru_0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/arial-unicode-26.GlyphProject b/tests/cpp-tests/Resources/fonts/arial-unicode-26.GlyphProject
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/arial-unicode-26.GlyphProject
rename to tests/cpp-tests/Resources/fonts/arial-unicode-26.GlyphProject
diff --git a/samples/cpp-tests/Resources/fonts/arial-unicode-26.png.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/arial-unicode-26.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/arial-unicode-26.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/arial-unicode-26.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/arial.ttf.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/arial.ttf.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/arial.ttf.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/arial.ttf.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/bitmapFontChinese.png.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/bitmapFontChinese.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/bitmapFontChinese.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/bitmapFontChinese.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/bitmapFontTest.png.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/bitmapFontTest.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/bitmapFontTest.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/bitmapFontTest.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/bitmapFontTest2.bmp.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/bitmapFontTest2.bmp.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/bitmapFontTest2.bmp.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/bitmapFontTest2.bmp.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/bitmapFontTest2.png.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/bitmapFontTest2.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/bitmapFontTest2.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/bitmapFontTest2.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/boundsTestFont.png.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/boundsTestFont.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/boundsTestFont.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/boundsTestFont.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/font-issue1343-hd.png.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/font-issue1343-hd.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/font-issue1343-hd.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/font-issue1343-hd.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/futura-48.png.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/futura-48.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/futura-48.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/futura-48.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/helvetica-geneva-32.png.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/helvetica-geneva-32.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/helvetica-geneva-32.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/helvetica-geneva-32.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/markerFelt.fnt.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/markerFelt.fnt.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/markerFelt.fnt.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/markerFelt.fnt.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/strings.xml b/tests/cpp-tests/Resources/fonts/strings.xml
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/strings.xml
rename to tests/cpp-tests/Resources/fonts/strings.xml
diff --git a/samples/cpp-tests/Resources/fonts/tahoma.ttf.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/tahoma.ttf.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/tahoma.ttf.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/tahoma.ttf.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/fonts/wt021.ttf.REMOVED.git-id b/tests/cpp-tests/Resources/fonts/wt021.ttf.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/fonts/wt021.ttf.REMOVED.git-id
rename to tests/cpp-tests/Resources/fonts/wt021.ttf.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/Images/background1.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/Images/background1.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/Images/background1.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/Images/background1.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/Images/background2.jpg.REMOVED.git-id b/tests/cpp-tests/Resources/hd/Images/background2.jpg.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/Images/background2.jpg.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/Images/background2.jpg.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/Images/background2.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/Images/background2.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/Images/background2.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/Images/background2.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/armature/Cowboy0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/armature/Cowboy0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/armature/Cowboy0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/armature/Cowboy0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/armature/Dragon.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/armature/Dragon.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/armature/Dragon.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/armature/Dragon.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/armature/HeroAnimation0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/armature/HeroAnimation0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/armature/HeroAnimation0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/armature/HeroAnimation0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/armature/weapon.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/armature/weapon.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/armature/weapon.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/armature/weapon.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/ccb/burst.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/ccb/burst.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/ccb/burst.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/ccb/burst.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/Hello.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/Hello.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/Hello.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/Hello.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIButton_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIButton_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIButton_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIButton_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UICheckBox_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UICheckBox_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UICheckBox_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UICheckBox_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIImageView_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIImageView_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIImageView_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIImageView_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelAtlas_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelAtlas_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelAtlas_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelAtlas_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelBMFont_Editor/GUI/missing-font.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelBMFont_Editor/GUI/missing-font.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelBMFont_Editor/GUI/missing-font.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelBMFont_Editor/GUI/missing-font.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelBMFont_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelBMFont_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelBMFont_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabelBMFont_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabel_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabel_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabel_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILabel_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/Hello.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/Hello.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/Hello.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/Hello.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_BackgroundImage_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Color_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Color_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Color_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Color_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Gradient_Color_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Gradient_Color_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Gradient_Color_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Gradient_Color_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Horizontal_Layout_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Horizontal_Layout_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Horizontal_Layout_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Horizontal_Layout_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Vertical_Layout_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Vertical_Layout_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Vertical_Layout_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Linear_Vertical_Layout_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Location_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Location_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Location_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Location_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Parent_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Parent_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Parent_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Relative_Align_Parent_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Scale9_BackgroundImage_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Scale9_BackgroundImage_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Scale9_BackgroundImage_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILayout_Editor/UILayout_Scale9_BackgroundImage_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Horizontal_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Horizontal_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Horizontal_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Horizontal_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Vertical_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Vertical_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Vertical_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIListView_Editor/UIListView_Vertical_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILoadingBar_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILoadingBar_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILoadingBar_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UILoadingBar_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIPageView_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIPageView_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIPageView_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIPageView_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Both_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Both_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Both_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Both_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Horizontal_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Horizontal_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Horizontal_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Horizontal_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Vertical_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Vertical_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Vertical_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIScrollView_Editor/UIScrollView_Vertical_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UISlider_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UISlider_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UISlider_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UISlider_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UITextField_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UITextField_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UITextField_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UITextField_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIWidgetAddNode_Editor/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIWidgetAddNode_Editor/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIWidgetAddNode_Editor/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UIEditorTest/UIWidgetAddNode_Editor/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/UITest/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/UITest/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/UITest/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/UITest/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/b11.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/b11.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/b11.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/b11.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/bitmapFontTest2.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/bitmapFontTest2.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/bitmapFontTest2.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/bitmapFontTest2.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/examples/examples.json.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/examples/examples.json.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/examples/examples.json.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/examples/examples.json.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/gui_examples/map_1/map_pve.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/gui_examples/map_1/map_pve.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/gui_examples/map_1/map_pve.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/gui_examples/map_1/map_pve.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/cocosgui/gui_examples/page_1/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/cocosgui/gui_examples/page_1/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/cocosgui/gui_examples/page_1/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/cocosgui/gui_examples/page_1/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/extensions/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/extensions/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/extensions/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/extensions/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/fonts/font-issue1343.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/fonts/font-issue1343.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/fonts/font-issue1343.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/fonts/font-issue1343.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/fonts/markerFelt.fnt.REMOVED.git-id b/tests/cpp-tests/Resources/hd/fonts/markerFelt.fnt.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/fonts/markerFelt.fnt.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/fonts/markerFelt.fnt.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/fonts/markerFelt.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/fonts/markerFelt.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/fonts/markerFelt.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/fonts/markerFelt.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/fonts/tuffy_bold_italic-charmap.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/fonts/tuffy_bold_italic-charmap.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/fonts/tuffy_bold_italic-charmap.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/fonts/tuffy_bold_italic-charmap.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/ArmatureComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Misc/music_logo.mp3.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Misc/music_logo.mp3.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Misc/music_logo.mp3.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Misc/music_logo.mp3.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Misc/music_logo.wav.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Misc/music_logo.wav.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Misc/music_logo.wav.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/Misc/music_logo.wav.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/starMenuButton01.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/starMenuButton01.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/starMenuButton01.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/starMenuButton01.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/starMenuButton02.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/starMenuButton02.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/starMenuButton02.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/starMenuButton02.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/BackgroundComponentTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/EffectComponentTest/CowBoy/Cowboy.ExportJson.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/EffectComponentTest/CowBoy/Cowboy.ExportJson.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/EffectComponentTest/CowBoy/Cowboy.ExportJson.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/EffectComponentTest/CowBoy/Cowboy.ExportJson.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/EffectComponentTest/CowBoy/Cowboy0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/EffectComponentTest/CowBoy/Cowboy0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/EffectComponentTest/CowBoy/Cowboy0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/EffectComponentTest/CowBoy/Cowboy0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.mp3.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.mp3.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.mp3.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.mp3.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.wav.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.wav.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.wav.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.wav.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/starMenuButton01.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/starMenuButton01.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/starMenuButton01.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/starMenuButton01.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/starMenuButton02.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/starMenuButton02.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/starMenuButton02.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/starMenuButton02.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/TriggerTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/TriggerTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/TriggerTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/TriggerTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/TriggerTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/TriggerTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/TriggerTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/TriggerTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/TriggerTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/TriggerTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/TriggerTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/TriggerTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/UIComponentTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/UIComponentTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/UIComponentTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/UIComponentTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/UIComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/UIComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/UIComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/UIComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/scenetest/UIComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/scenetest/UIComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/scenetest/UIComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/scenetest/UIComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/spine/goblins.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/spine/goblins.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/spine/goblins.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/spine/goblins.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/hd/spine/spineboy.png.REMOVED.git-id b/tests/cpp-tests/Resources/hd/spine/spineboy.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/hd/spine/spineboy.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/hd/spine/spineboy.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/ipad/ccb/burst.png.REMOVED.git-id b/tests/cpp-tests/Resources/ipad/ccb/burst.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/ipad/ccb/burst.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/ipad/ccb/burst.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/ipad/extensions/background.png.REMOVED.git-id b/tests/cpp-tests/Resources/ipad/extensions/background.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/ipad/extensions/background.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/ipad/extensions/background.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/ArmatureComponentTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/ArmatureComponentTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/ArmatureComponentTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/ArmatureComponentTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/ArmatureComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/ArmatureComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/ArmatureComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/ArmatureComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/ArmatureComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/ArmatureComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/ArmatureComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/ArmatureComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/BackgroundComponentTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/BackgroundComponentTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/BackgroundComponentTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/BackgroundComponentTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/BackgroundComponentTest/Misc/music_logo.mp3.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/BackgroundComponentTest/Misc/music_logo.mp3.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/BackgroundComponentTest/Misc/music_logo.mp3.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/BackgroundComponentTest/Misc/music_logo.mp3.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/BackgroundComponentTest/Misc/music_logo.wav.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/BackgroundComponentTest/Misc/music_logo.wav.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/BackgroundComponentTest/Misc/music_logo.wav.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/BackgroundComponentTest/Misc/music_logo.wav.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/BackgroundComponentTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/BackgroundComponentTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/BackgroundComponentTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/BackgroundComponentTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/EffectComponentTest/CowBoy/Cowboy.ExportJson.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/EffectComponentTest/CowBoy/Cowboy.ExportJson.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/EffectComponentTest/CowBoy/Cowboy.ExportJson.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/EffectComponentTest/CowBoy/Cowboy.ExportJson.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/EffectComponentTest/CowBoy/Cowboy0.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/EffectComponentTest/CowBoy/Cowboy0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/EffectComponentTest/CowBoy/Cowboy0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/EffectComponentTest/CowBoy/Cowboy0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.mp3.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.mp3.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.mp3.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.mp3.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.wav.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.wav.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.wav.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/Misc/music_logo.wav.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/LoadSceneEdtiorFileTest/startMenu/Fish_UI/ui_logo_001-hd.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/TriggerTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/TriggerTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/TriggerTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/TriggerTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/TriggerTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/TriggerTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/TriggerTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/TriggerTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/TriggerTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/TriggerTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/TriggerTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/TriggerTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/UIComponentTest/Images/startMenuBG.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/UIComponentTest/Images/startMenuBG.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/UIComponentTest/Images/startMenuBG.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/UIComponentTest/Images/startMenuBG.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/UIComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/UIComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/UIComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/UIComponentTest/fishes/Butterflyfish/Butterflyfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/scenetest/UIComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id b/tests/cpp-tests/Resources/scenetest/UIComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/scenetest/UIComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/scenetest/UIComponentTest/fishes/blowFish/Blowfish0.png.REMOVED.git-id
diff --git a/samples/cpp-tests/Resources/spine/goblins.png.REMOVED.git-id b/tests/cpp-tests/Resources/spine/goblins.png.REMOVED.git-id
similarity index 100%
rename from samples/cpp-tests/Resources/spine/goblins.png.REMOVED.git-id
rename to tests/cpp-tests/Resources/spine/goblins.png.REMOVED.git-id
diff --git a/tests/cpp-tests/proj.android/.classpath b/tests/cpp-tests/proj.android/.classpath
new file mode 100644
index 0000000000..c06dfcb8e5
--- /dev/null
+++ b/tests/cpp-tests/proj.android/.classpath
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/samples/cpp-tests/proj.android/.project b/tests/cpp-tests/proj.android/.project
similarity index 98%
rename from samples/cpp-tests/proj.android/.project
rename to tests/cpp-tests/proj.android/.project
index 3993dc62b8..e6b233a3c7 100644
--- a/samples/cpp-tests/proj.android/.project
+++ b/tests/cpp-tests/proj.android/.project
@@ -1,6 +1,6 @@
- TestCpp
+ CppTests
diff --git a/samples/cpp-tests/proj.android/AndroidManifest.xml b/tests/cpp-tests/proj.android/AndroidManifest.xml
similarity index 90%
rename from samples/cpp-tests/proj.android/AndroidManifest.xml
rename to tests/cpp-tests/proj.android/AndroidManifest.xml
index 2d00af9411..36b422af01 100644
--- a/samples/cpp-tests/proj.android/AndroidManifest.xml
+++ b/tests/cpp-tests/proj.android/AndroidManifest.xml
@@ -1,6 +1,7 @@
@@ -18,7 +19,7 @@
+ android:value="cpp_tests" />
diff --git a/tests/cpp-tests/proj.android/README.md b/tests/cpp-tests/proj.android/README.md
new file mode 100644
index 0000000000..a4670ebabc
--- /dev/null
+++ b/tests/cpp-tests/proj.android/README.md
@@ -0,0 +1,87 @@
+## Prerequisites:
+
+* Android NDK
+* Android SDK **OR** Eclipse ADT Bundle
+* Android AVD target installed
+
+## Building project
+
+There are two ways of building Android projects.
+
+1. Eclipse
+2. Command Line
+
+### Import Project in Eclipse
+
+#### Features:
+
+1. Complete workflow from Eclipse, including:
+ * Build C++.
+ * Clean C++.
+ * Build and Run whole project.
+ * Logcat view.
+ * Debug Java code.
+ * Javascript editor.
+ * Project management.
+2. True C++ editing, including:
+ * Code completion.
+ * Jump to definition.
+ * Refactoring tools etc.
+ * Quick open C++ files.
+
+
+#### Setup Eclipse Environment (only once)
+
+
+**NOTE:** This step needs to be done only once to setup the Eclipse environment for cocos2d-x projects. Skip this section if you've done this before.
+
+1. Download Eclipse ADT bundle from [Google ADT homepage](http://developer.android.com/sdk/index.html)
+
+ **OR**
+
+ Install Eclipse with Java. Add ADT and CDT plugins.
+
+2. Only for Windows
+ 1. Install [Cygwin](http://www.cygwin.com/) with make (select make package from the list during the install).
+ 2. Add `Cygwin\bin` directory to system PATH variable.
+ 3. Add this line `none /cygdrive cygdrive binary,noacl,posix=0,user 0 0` to `Cygwin\etc\fstab` file.
+
+3. Set up Variables:
+ 1. Path Variable `COCOS2DX`:
+ * Eclipse->Preferences->General->Workspace->**Linked Resources**
+ * Click **New** button to add a Path Variable `COCOS2DX` pointing to the root cocos2d-x directory.
+ ![Example](https://lh5.googleusercontent.com/-oPpk9kg3e5w/UUOYlq8n7aI/AAAAAAAAsdQ/zLA4eghBH9U/s400/cocos2d-x-eclipse-vars.png)
+
+ 2. C/C++ Environment Variable `NDK_ROOT`:
+ * Eclipse->Preferences->C/C++->Build->**Environment**.
+ * Click **Add** button and add a new variable `NDK_ROOT` pointing to the root NDK directory.
+ ![Example](https://lh3.googleusercontent.com/-AVcY8IAT0_g/UUOYltoRobI/AAAAAAAAsdM/22D2J9u3sig/s400/cocos2d-x-eclipse-ndk.png)
+ * Only for Windows: Add new variables **CYGWIN** with value `nodosfilewarning` and **SHELLOPTS** with value `igncr`
+
+4. Import libcocos2dx library project:
+ 1. File->New->Project->Android Project From Existing Code.
+ 2. Click **Browse** button and open `cocos2d-x/cocos2dx/platform/android/java` directory.
+ 3. Click **Finish** to add project.
+
+#### Adding and running from Eclipse
+
+![Example](https://lh3.googleusercontent.com/-SLBOu6e3QbE/UUOcOXYaGqI/AAAAAAAAsdo/tYBY2SylOSM/s288/cocos2d-x-eclipse-project-from-code.png) ![Import](https://lh5.googleusercontent.com/-XzC9Pn65USc/UUOcOTAwizI/AAAAAAAAsdk/4b6YM-oim9Y/s400/cocos2d-x-eclipse-import-project.png)
+
+1. File->New->Project->Android Project From Existing Code
+2. **Browse** to your project directory. eg: `cocos2d-x/cocos2dx/samples/Cpp/CppTests/proj.android/`
+3. Add the project
+4. Click **Run** or **Debug** to compile C++ followed by Java and to run on connected device or emulator.
+
+
+### Running project from Command Line
+
+ $ cd cocos2d-x/samples/Cpp/CppTests/proj.android/
+ $ export NDK_ROOT=/path/to/ndk
+ $ ./build_native.sh
+ $ ant debug install
+
+If the last command results in sdk.dir missing error then do:
+
+ $ android list target
+ $ android update project -p . -t (id from step 6)
+ $ android update project -p cocos2d-x/cocos2dx/platform/android/java/ -t (id from step 6)
diff --git a/samples/cpp-tests/proj.android/ant.properties b/tests/cpp-tests/proj.android/ant.properties
similarity index 100%
rename from samples/cpp-tests/proj.android/ant.properties
rename to tests/cpp-tests/proj.android/ant.properties
diff --git a/samples/lua-tests/project/proj.android/build.xml b/tests/cpp-tests/proj.android/build.xml
similarity index 98%
rename from samples/lua-tests/project/proj.android/build.xml
rename to tests/cpp-tests/proj.android/build.xml
index 0d99a1f0fc..a8d2eb0eee 100644
--- a/samples/lua-tests/project/proj.android/build.xml
+++ b/tests/cpp-tests/proj.android/build.xml
@@ -1,5 +1,5 @@
-
+
+ android:value="lua_empty_test" />
diff --git a/samples/lua-tests/project/proj.android/ant.properties b/tests/lua-empty-test/project/proj.android/ant.properties
similarity index 100%
rename from samples/lua-tests/project/proj.android/ant.properties
rename to tests/lua-empty-test/project/proj.android/ant.properties
diff --git a/tests/lua-empty-test/project/proj.android/build.xml b/tests/lua-empty-test/project/proj.android/build.xml
new file mode 100644
index 0000000000..10c2f09231
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.android/build.xml
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/lua-empty-test/project/proj.android/jni/Android.mk b/tests/lua-empty-test/project/proj.android/jni/Android.mk
new file mode 100644
index 0000000000..90ed50ee5c
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.android/jni/Android.mk
@@ -0,0 +1,20 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := lua_empty_test_shared
+
+LOCAL_MODULE_FILENAME := liblua_empty_test
+
+LOCAL_SRC_FILES := main.cpp \
+ ../../Classes/AppDelegate.cpp
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
+ $(LOCAL_PATH)/../../../../../external/lua/tolua \
+
+LOCAL_WHOLE_STATIC_LIBRARIES := cocos_lua_static
+
+
+include $(BUILD_SHARED_LIBRARY)
+
+$(call import-module,scripting/lua-bindings)
diff --git a/tests/lua-empty-test/project/proj.android/jni/Application.mk b/tests/lua-empty-test/project/proj.android/jni/Application.mk
new file mode 100644
index 0000000000..540e49c358
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.android/jni/Application.mk
@@ -0,0 +1,8 @@
+APP_STL := gnustl_static
+
+# add -Wno-literal-suffix to avoid warning: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
+# in NDK_ROOT/arch-arm/usr/include/sys/cdefs_elf.h:35:28: when using ndk-r9
+APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -std=c++11 -Wno-literal-suffix -fsigned-char
+
+APP_CPPFLAGS += -fexceptions
+
diff --git a/tests/lua-empty-test/project/proj.android/jni/main.cpp b/tests/lua-empty-test/project/proj.android/jni/main.cpp
new file mode 100644
index 0000000000..20e2ea1f45
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.android/jni/main.cpp
@@ -0,0 +1,15 @@
+#include "AppDelegate.h"
+#include "cocos2d.h"
+#include "platform/android/jni/JniHelper.h"
+#include
+#include
+
+#define LOG_TAG "main"
+#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
+
+using namespace cocos2d;
+
+void cocos_android_app_init (struct android_app* app) {
+ LOGD("cocos_android_app_init");
+ AppDelegate *pAppDelegate = new AppDelegate();
+}
diff --git a/tests/lua-empty-test/project/proj.android/proguard-project.txt b/tests/lua-empty-test/project/proj.android/proguard-project.txt
new file mode 100644
index 0000000000..f2fe1559a2
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.android/proguard-project.txt
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/samples/lua-tests/project/proj.android/project.properties b/tests/lua-empty-test/project/proj.android/project.properties
similarity index 100%
rename from samples/lua-tests/project/proj.android/project.properties
rename to tests/lua-empty-test/project/proj.android/project.properties
diff --git a/tests/lua-empty-test/project/proj.android/res/values/strings.xml b/tests/lua-empty-test/project/proj.android/res/values/strings.xml
new file mode 100644
index 0000000000..928fc5a2f4
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.android/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+
+ LuaEmptyTest
+
diff --git a/tests/lua-empty-test/project/proj.android/src/org/cocos2dx/lua_empty_test/Cocos2dxActivity.java b/tests/lua-empty-test/project/proj.android/src/org/cocos2dx/lua_empty_test/Cocos2dxActivity.java
new file mode 100644
index 0000000000..35035a175d
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.android/src/org/cocos2dx/lua_empty_test/Cocos2dxActivity.java
@@ -0,0 +1,32 @@
+package org.cocos2dx.lua_empty_test;
+
+import android.app.NativeActivity;
+import android.os.Bundle;
+
+public class Cocos2dxActivity extends NativeActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ // TODO Auto-generated method stub
+ super.onCreate(savedInstanceState);
+
+ //For supports translucency
+
+ //1.change "attribs" in cocos\2d\platform\android\nativeactivity.cpp
+ /*const EGLint attribs[] = {
+ EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
+ //EGL_BLUE_SIZE, 5, -->delete
+ //EGL_GREEN_SIZE, 6, -->delete
+ //EGL_RED_SIZE, 5, -->delete
+ EGL_BUFFER_SIZE, 32, //-->new field
+ EGL_DEPTH_SIZE, 16,
+ EGL_STENCIL_SIZE, 8,
+ EGL_NONE
+ };*/
+
+ //2.Set the format of window
+ // getWindow().setFormat(PixelFormat.TRANSLUCENT);
+
+ }
+}
diff --git a/tests/lua-empty-test/project/proj.ios/AppController.h b/tests/lua-empty-test/project/proj.ios/AppController.h
new file mode 100644
index 0000000000..3d51064ca0
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.ios/AppController.h
@@ -0,0 +1,33 @@
+/****************************************************************************
+ Copyright (c) 2010 cocos2d-x.org
+
+ http://www.cocos2d-x.org
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ ****************************************************************************/
+
+@class RootViewController;
+
+@interface AppController : NSObject {
+ UIWindow *window;
+ RootViewController *viewController;
+}
+
+@end
+
diff --git a/tests/lua-empty-test/project/proj.ios/AppController.mm b/tests/lua-empty-test/project/proj.ios/AppController.mm
new file mode 100644
index 0000000000..9f38038aed
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.ios/AppController.mm
@@ -0,0 +1,139 @@
+/****************************************************************************
+ Copyright (c) 2010 cocos2d-x.org
+
+ http://www.cocos2d-x.org
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ ****************************************************************************/
+#import
+#import "AppController.h"
+#import "cocos2d.h"
+#import "CCEAGLView.h"
+#import "AppDelegate.h"
+
+#import "RootViewController.h"
+
+@implementation AppController
+
+#pragma mark -
+#pragma mark Application lifecycle
+
+// cocos2d application instance
+static AppDelegate s_sharedApplication;
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+
+ // Override point for customization after application launch.
+
+ // Add the view controller's view to the window and display.
+ window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]];
+ CCEAGLView *eaglView = [CCEAGLView viewWithFrame: [window bounds]
+ pixelFormat: kEAGLColorFormatRGBA8
+ depthFormat: GL_DEPTH_COMPONENT16
+ preserveBackbuffer: NO
+ sharegroup: nil
+ multiSampling: NO
+ numberOfSamples: 0 ];
+
+ // Use RootViewController manage CCEAGLView
+ viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
+ viewController.wantsFullScreenLayout = YES;
+ viewController.view = eaglView;
+
+ // Set RootViewController to window
+ if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0)
+ {
+ // warning: addSubView doesn't work on iOS6
+ [window addSubview: viewController.view];
+ }
+ else
+ {
+ // use this method on ios6
+ [window setRootViewController:viewController];
+ }
+
+ [window makeKeyAndVisible];
+
+ [[UIApplication sharedApplication] setStatusBarHidden: YES];
+
+ // IMPORTANT: Setting the GLView should be done after creating the RootViewController
+ cocos2d::GLView *glview = cocos2d::GLView::createWithEAGLView(eaglView);
+ cocos2d::Director::getInstance()->setOpenGLView(glview);
+
+ cocos2d::Application *app = cocos2d::Application::getInstance();
+ app->run();
+ return YES;
+}
+
+
+- (void)applicationWillResignActive:(UIApplication *)application {
+ /*
+ Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+ Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
+ */
+ cocos2d::Director::getInstance()->pause();
+}
+
+- (void)applicationDidBecomeActive:(UIApplication *)application {
+ /*
+ Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+ */
+ cocos2d::Director::getInstance()->resume();
+}
+
+- (void)applicationDidEnterBackground:(UIApplication *)application {
+ /*
+ Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+ If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
+ */
+ cocos2d::Application::getInstance()->applicationDidEnterBackground();
+}
+
+- (void)applicationWillEnterForeground:(UIApplication *)application {
+ /*
+ Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
+ */
+ cocos2d::Application::getInstance()->applicationWillEnterForeground();
+}
+
+- (void)applicationWillTerminate:(UIApplication *)application {
+ /*
+ Called when the application is about to terminate.
+ See also applicationDidEnterBackground:.
+ */
+}
+
+
+#pragma mark -
+#pragma mark Memory management
+
+- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
+ /*
+ Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
+ */
+}
+
+
+- (void)dealloc {
+ [super dealloc];
+}
+
+
+@end
+
diff --git a/tests/lua-empty-test/project/proj.ios/Default-568h@2x.png.REMOVED.git-id b/tests/lua-empty-test/project/proj.ios/Default-568h@2x.png.REMOVED.git-id
new file mode 100644
index 0000000000..8f5838f3a8
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.ios/Default-568h@2x.png.REMOVED.git-id
@@ -0,0 +1 @@
+66c6d1cead373b45218424f6a82f370897e443e4
\ No newline at end of file
diff --git a/tests/lua-empty-test/project/proj.ios/Default@2x.png.REMOVED.git-id b/tests/lua-empty-test/project/proj.ios/Default@2x.png.REMOVED.git-id
new file mode 100644
index 0000000000..8843505b20
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.ios/Default@2x.png.REMOVED.git-id
@@ -0,0 +1 @@
+84689888a14a2123d2b39f7f2f61be8c15207479
\ No newline at end of file
diff --git a/samples/lua-tests/project/proj.ios_mac/ios/TestLua_Prefix.pch b/tests/lua-empty-test/project/proj.ios/HelloLua_Prefix.pch
similarity index 50%
rename from samples/lua-tests/project/proj.ios_mac/ios/TestLua_Prefix.pch
rename to tests/lua-empty-test/project/proj.ios/HelloLua_Prefix.pch
index 4c4fc38a96..b4311a0a3d 100644
--- a/samples/lua-tests/project/proj.ios_mac/ios/TestLua_Prefix.pch
+++ b/tests/lua-empty-test/project/proj.ios/HelloLua_Prefix.pch
@@ -1,5 +1,5 @@
//
-// Prefix header for all source files of the 'TestLua' target in the 'TestLua' project
+// Prefix header for all source files of the 'HelloLua' target in the 'HelloLua' project
//
#ifdef __OBJC__
diff --git a/tests/lua-empty-test/project/proj.ios/RootViewController.h b/tests/lua-empty-test/project/proj.ios/RootViewController.h
new file mode 100644
index 0000000000..11dfc4bf88
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.ios/RootViewController.h
@@ -0,0 +1,33 @@
+/****************************************************************************
+ Copyright (c) 2010-2011 cocos2d-x.org
+ Copyright (c) 2010 Ricardo Quesada
+
+ http://www.cocos2d-x.org
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ ****************************************************************************/
+
+#import
+
+
+@interface RootViewController : UIViewController {
+
+}
+- (BOOL)prefersStatusBarHidden;
+@end
diff --git a/samples/lua-tests/project/proj.ios_mac/ios/RootViewController.mm b/tests/lua-empty-test/project/proj.ios/RootViewController.mm
similarity index 100%
rename from samples/lua-tests/project/proj.ios_mac/ios/RootViewController.mm
rename to tests/lua-empty-test/project/proj.ios/RootViewController.mm
diff --git a/tests/lua-empty-test/project/proj.ios/main.m b/tests/lua-empty-test/project/proj.ios/main.m
new file mode 100644
index 0000000000..27ca9796f7
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.ios/main.m
@@ -0,0 +1,16 @@
+//
+// main.m
+// HelloLua
+//
+// Created by Walzer on 11-6-15.
+// Copyright __MyCompanyName__ 2011. All rights reserved.
+//
+
+#import
+
+int main(int argc, char *argv[]) {
+ NSAutoreleasePool *pool = [NSAutoreleasePool new];
+ int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
+ [pool release];
+ return retVal;
+}
diff --git a/tests/lua-empty-test/project/proj.linux/main.cpp b/tests/lua-empty-test/project/proj.linux/main.cpp
new file mode 100644
index 0000000000..e420889600
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.linux/main.cpp
@@ -0,0 +1,16 @@
+#include "../Classes/AppDelegate.h"
+#include "cocos2d.h"
+
+#include
+#include
+#include
+#include
+
+USING_NS_CC;
+
+int main(int argc, char **argv)
+{
+ // create the application instance
+ AppDelegate app;
+ return Application::getInstance()->run();
+}
diff --git a/samples/cpp-tests/proj.mac/Test_Prefix.pch b/tests/lua-empty-test/project/proj.mac/HelloLua_Prefix.pch
similarity index 100%
rename from samples/cpp-tests/proj.mac/Test_Prefix.pch
rename to tests/lua-empty-test/project/proj.mac/HelloLua_Prefix.pch
diff --git a/tests/lua-empty-test/project/proj.mac/Icon.icns.REMOVED.git-id b/tests/lua-empty-test/project/proj.mac/Icon.icns.REMOVED.git-id
new file mode 100644
index 0000000000..9874ec6979
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.mac/Icon.icns.REMOVED.git-id
@@ -0,0 +1 @@
+3d09e8fb4f4ca1c1ae7ab0a6948db592c7c3d9a0
\ No newline at end of file
diff --git a/tests/lua-empty-test/project/proj.mac/en.lproj/InfoPlist.strings b/tests/lua-empty-test/project/proj.mac/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000000..477b28ff8f
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.mac/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
diff --git a/tests/lua-empty-test/project/proj.mac/en.lproj/MainMenu.xib b/tests/lua-empty-test/project/proj.mac/en.lproj/MainMenu.xib
new file mode 100644
index 0000000000..9f99439250
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.mac/en.lproj/MainMenu.xib
@@ -0,0 +1,812 @@
+
+
+
+ 1060
+ 10K549
+ 1938
+ 1038.36
+ 461.00
+
+
+
+
+
+
+
+ YES
+
+
+ terminate:
+
+
+
+ 449
+
+
+
+ orderFrontStandardAboutPanel:
+
+
+
+ 142
+
+
+
+ delegate
+
+
+
+ 495
+
+
+
+ performMiniaturize:
+
+
+
+ 37
+
+
+
+ arrangeInFront:
+
+
+
+ 39
+
+
+
+ performZoom:
+
+
+
+ 240
+
+
+
+ hide:
+
+
+
+ 367
+
+
+
+ hideOtherApplications:
+
+
+
+ 368
+
+
+
+ unhideAllApplications:
+
+
+
+ 370
+
+
+
+ showHelp:
+
+
+
+ 493
+
+
+
+ toggleFullScreen:
+
+
+
+ 537
+
+
+
+
+ YES
+
+ 0
+
+ YES
+
+
+
+
+
+ -2
+
+
+ File's Owner
+
+
+ -1
+
+
+ First Responder
+
+
+ -3
+
+
+ Application
+
+
+ 29
+
+
+ YES
+
+
+
+
+
+
+
+
+ 19
+
+
+ YES
+
+
+
+
+
+ 56
+
+
+ YES
+
+
+
+
+
+ 57
+
+
+ YES
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 58
+
+
+
+
+ 134
+
+
+
+
+ 150
+
+
+
+
+ 136
+
+
+
+
+ 144
+
+
+
+
+ 129
+
+
+
+
+ 143
+
+
+
+
+ 236
+
+
+
+
+ 131
+
+
+ YES
+
+
+
+
+
+ 149
+
+
+
+
+ 145
+
+
+
+
+ 130
+
+
+
+
+ 24
+
+
+ YES
+
+
+
+
+
+
+
+
+ 92
+
+
+
+
+ 5
+
+
+
+
+ 239
+
+
+
+
+ 23
+
+
+
+
+ 295
+
+
+ YES
+
+
+
+
+
+ 296
+
+
+ YES
+
+
+
+
+
+ 420
+
+
+
+
+ 490
+
+
+ YES
+
+
+
+
+
+ 491
+
+
+ YES
+
+
+
+
+
+ 492
+
+
+
+
+ 494
+
+
+
+
+ 536
+
+
+
+
+
+
+ YES
+
+ YES
+ -1.IBPluginDependency
+ -2.IBPluginDependency
+ -3.IBPluginDependency
+ 129.IBPluginDependency
+ 130.IBPluginDependency
+ 131.IBPluginDependency
+ 134.IBPluginDependency
+ 136.IBPluginDependency
+ 143.IBPluginDependency
+ 144.IBPluginDependency
+ 145.IBPluginDependency
+ 149.IBPluginDependency
+ 150.IBPluginDependency
+ 19.IBPluginDependency
+ 23.IBPluginDependency
+ 236.IBPluginDependency
+ 239.IBPluginDependency
+ 24.IBPluginDependency
+ 29.IBPluginDependency
+ 295.IBPluginDependency
+ 296.IBPluginDependency
+ 420.IBPluginDependency
+ 490.IBPluginDependency
+ 491.IBPluginDependency
+ 492.IBPluginDependency
+ 494.IBPluginDependency
+ 5.IBPluginDependency
+ 536.IBPluginDependency
+ 56.IBPluginDependency
+ 57.IBPluginDependency
+ 58.IBPluginDependency
+ 92.IBPluginDependency
+
+
+ YES
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+
+
+ YES
+
+
+
+
+
+ YES
+
+
+
+
+ 541
+
+
+
+ YES
+
+ AppController
+ NSObject
+
+ YES
+
+ YES
+ exitFullScreen:
+ toggleFullScreen:
+
+
+ YES
+ id
+ id
+
+
+
+ YES
+
+ YES
+ exitFullScreen:
+ toggleFullScreen:
+
+
+ YES
+
+ exitFullScreen:
+ id
+
+
+ toggleFullScreen:
+ id
+
+
+
+
+ YES
+
+ YES
+ glView
+ window
+
+
+ YES
+ EAGLView
+ Window
+
+
+
+ YES
+
+ YES
+ glView
+ window
+
+
+ YES
+
+ glView
+ EAGLView
+
+
+ window
+ Window
+
+
+
+
+ IBProjectSource
+ ./Classes/AppController.h
+
+
+
+ EAGLView
+ NSOpenGLView
+
+ IBProjectSource
+ ./Classes/EAGLView.h
+
+
+
+
+ 0
+ IBCocoaFramework
+
+ com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3
+
+
+ YES
+ 3
+
+ YES
+
+ YES
+ NSMenuCheckmark
+ NSMenuMixedState
+
+
+ YES
+ {9, 8}
+ {7, 2}
+
+
+
+
diff --git a/tests/lua-empty-test/project/proj.mac/main.cpp b/tests/lua-empty-test/project/proj.mac/main.cpp
new file mode 100644
index 0000000000..96f027e13d
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.mac/main.cpp
@@ -0,0 +1,34 @@
+/****************************************************************************
+ Copyright (c) 2010 cocos2d-x.org
+
+ http://www.cocos2d-x.org
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ ****************************************************************************/
+
+#include "AppDelegate.h"
+#include "cocos2d.h"
+
+USING_NS_CC;
+
+int main(int argc, char *argv[])
+{
+ AppDelegate app;
+ return Application::getInstance()->run();
+}
diff --git a/tests/lua-empty-test/project/proj.win32/HelloLua.vcxproj b/tests/lua-empty-test/project/proj.win32/HelloLua.vcxproj
new file mode 100644
index 0000000000..6ed5cb8431
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.win32/HelloLua.vcxproj
@@ -0,0 +1,206 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+ {13E55395-94A2-4CD9-BFC2-1A051F80C17D}
+ HelloLua.win32
+
+
+
+ Application
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+ Application
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <_ProjectFileVersion>10.0.40219.1
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+ true
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+ false
+ AllRules.ruleset
+
+
+ AllRules.ruleset
+
+
+
+
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)
+
+
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)
+
+
+
+ _DEBUG;%(PreprocessorDefinitions)
+ false
+ Win32
+ true
+ $(IntDir)HelloLua.tlb
+ HelloLua.h
+
+
+ HelloLua_i.c
+ HelloLua_p.c
+
+
+ Disabled
+ $(ProjectDir)..\Classes;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\lua\lua;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+ WIN32;_WINDOWS;STRICT;_DEBUG;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ false
+ EnableFastChecks
+ MultiThreadedDebugDLL
+
+
+ Level3
+ EditAndContinue
+ 4267;4251;4244;%(DisableSpecificWarnings)
+ true
+
+
+ _DEBUG;%(PreprocessorDefinitions)
+ 0x0409
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories)
+
+
+ libcurl_imp.lib;lua51.lib;websockets.lib;%(AdditionalDependencies)
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+ Windows
+ MachineX86
+
+
+ xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua\script" "$(ProjectDir)..\..\HelloLua\Resources" /e /Y
+
+
+ if not exist "$(OutDir)" mkdir "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)"
+
+
+
+
+
+ NDEBUG;%(PreprocessorDefinitions)
+ false
+ Win32
+ true
+ $(IntDir)HelloLua.tlb
+ HelloLua.h
+
+
+ HelloLua_i.c
+ HelloLua_p.c
+
+
+ $(ProjectDir)..\Classes;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\lua\lua;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+ WIN32;_WINDOWS;STRICT;NDEBUG;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+
+
+ MultiThreadedDLL
+
+
+ Level3
+
+
+ 4267;4251;4244;%(DisableSpecificWarnings)
+ true
+
+
+ NDEBUG;%(PreprocessorDefinitions)
+ 0x0409
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories)
+
+
+ libcurl_imp.lib;lua51.lib;websockets.lib;%(AdditionalDependencies)
+ $(OutDir);%(AdditionalLibraryDirectories)
+ Windows
+ MachineX86
+ true
+
+
+ if not exist "$(OutDir)" mkdir "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)"
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
+
+
+ {f8edd7fa-9a51-4e80-baeb-860825d2eac6}
+
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {b57cf53f-2e49-4031-9822-047cc0e6bde2}
+
+
+ {b7c2a162-dec9-4418-972e-240ab3cbfcae}
+
+
+ {7e06e92c-537a-442b-9e4a-4761c84f8a1a}
+
+
+ {df2638c0-8128-4847-867c-6eafe3dee7b5}
+
+
+ {ddc3e27f-004d-4dd4-9dd3-931a013d2159}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/lua-empty-test/project/proj.win32/HelloLua.vcxproj.filters b/tests/lua-empty-test/project/proj.win32/HelloLua.vcxproj.filters
new file mode 100644
index 0000000000..5de7838f8f
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.win32/HelloLua.vcxproj.filters
@@ -0,0 +1,27 @@
+
+
+
+
+ {83371666-be62-4e91-b8cc-395730853621}
+
+
+ {917fb40f-fc6d-4ee9-9a20-26debabe41aa}
+
+
+
+
+ Classes
+
+
+ win32
+
+
+
+
+ Classes
+
+
+ win32
+
+
+
\ No newline at end of file
diff --git a/tests/lua-empty-test/project/proj.win32/HelloLua.vcxproj.user b/tests/lua-empty-test/project/proj.win32/HelloLua.vcxproj.user
new file mode 100644
index 0000000000..32a6296820
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.win32/HelloLua.vcxproj.user
@@ -0,0 +1,11 @@
+
+
+
+ $(ProjectDir)..\Resources
+ WindowsLocalDebugger
+
+
+ $(ProjectDir)..\Resources
+ WindowsLocalDebugger
+
+
\ No newline at end of file
diff --git a/tests/lua-empty-test/project/proj.win32/main.cpp b/tests/lua-empty-test/project/proj.win32/main.cpp
new file mode 100644
index 0000000000..b07e50bc66
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.win32/main.cpp
@@ -0,0 +1,37 @@
+#include "main.h"
+#include "AppDelegate.h"
+#include "CCEGLView.h"
+
+USING_NS_CC;
+
+// uncomment below line, open debug console
+#define USE_WIN32_CONSOLE
+
+int APIENTRY _tWinMain(HINSTANCE hInstance,
+ HINSTANCE hPrevInstance,
+ LPTSTR lpCmdLine,
+ int nCmdShow)
+{
+ UNREFERENCED_PARAMETER(hPrevInstance);
+ UNREFERENCED_PARAMETER(lpCmdLine);
+
+#ifdef USE_WIN32_CONSOLE
+ AllocConsole();
+ freopen("CONIN$", "r", stdin);
+ freopen("CONOUT$", "w", stdout);
+ freopen("CONOUT$", "w", stderr);
+#endif
+
+ // create the application instance
+ AppDelegate app;
+ EGLView eglView;
+ eglView.init("HelloLua",900,640);
+
+ int ret = Application::getInstance()->run();
+
+#ifdef USE_WIN32_CONSOLE
+ FreeConsole();
+#endif
+
+ return ret;
+}
diff --git a/tests/lua-empty-test/project/proj.win32/main.h b/tests/lua-empty-test/project/proj.win32/main.h
new file mode 100644
index 0000000000..e74708bdf2
--- /dev/null
+++ b/tests/lua-empty-test/project/proj.win32/main.h
@@ -0,0 +1,13 @@
+#ifndef __MAIN_H__
+#define __MAIN_H__
+
+#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
+
+// Windows Header Files:
+#include
+#include
+
+// C RunTime Header Files
+#include "CCStdC.h"
+
+#endif // __MAIN_H__
diff --git a/tests/lua-empty-test/res/.gitignore b/tests/lua-empty-test/res/.gitignore
new file mode 100644
index 0000000000..1d65afe366
--- /dev/null
+++ b/tests/lua-empty-test/res/.gitignore
@@ -0,0 +1,2 @@
+#Do now ignore Marmalade icf files
+!*.icf
diff --git a/tests/lua-empty-test/res/background.mp3.REMOVED.git-id b/tests/lua-empty-test/res/background.mp3.REMOVED.git-id
new file mode 100644
index 0000000000..cfc16a8a4e
--- /dev/null
+++ b/tests/lua-empty-test/res/background.mp3.REMOVED.git-id
@@ -0,0 +1 @@
+aec1c0a8c8068377fddca5ddd32084d8c3c3c419
\ No newline at end of file
diff --git a/tests/lua-empty-test/res/farm.jpg.REMOVED.git-id b/tests/lua-empty-test/res/farm.jpg.REMOVED.git-id
new file mode 100644
index 0000000000..4609f3cf02
--- /dev/null
+++ b/tests/lua-empty-test/res/farm.jpg.REMOVED.git-id
@@ -0,0 +1 @@
+d7290c34702d1c6bdb368acb060d93b42d5deff8
\ No newline at end of file
diff --git a/tests/lua-empty-test/src/hello.lua b/tests/lua-empty-test/src/hello.lua
new file mode 100644
index 0000000000..5bb47e5805
--- /dev/null
+++ b/tests/lua-empty-test/src/hello.lua
@@ -0,0 +1,209 @@
+require "Cocos2d"
+-- cclog
+cclog = function(...)
+ print(string.format(...))
+end
+
+-- for CCLuaEngine traceback
+function __G__TRACKBACK__(msg)
+ cclog("----------------------------------------")
+ cclog("LUA ERROR: " .. tostring(msg) .. "\n")
+ cclog(debug.traceback())
+ cclog("----------------------------------------")
+end
+
+local function main()
+ -- avoid memory leak
+ collectgarbage("setpause", 100)
+ collectgarbage("setstepmul", 5000)
+
+ --support debug
+ local targetPlatform = cc.Application:getInstance():getTargetPlatform()
+ if (cc.PLATFORM_OS_IPHONE == targetPlatform) or (cc.PLATFORM_OS_IPAD == targetPlatform) or
+ (cc.PLATFORM_OS_ANDROID == targetPlatform) or (cc.PLATFORM_OS_WINDOWS == targetPlatform) or
+ (cc.PLATFORM_OS_MAC == targetPlatform) then
+ local host = 'localhost' -- please change localhost to your PC's IP for on-device debugging
+ require('src/mobdebug').start(host)
+ end
+ require "src/hello2"
+ cclog("result is " .. myadd(1, 1))
+
+ ---------------
+
+ local visibleSize = cc.Director:getInstance():getVisibleSize()
+ local origin = cc.Director:getInstance():getVisibleOrigin()
+
+ -- add the moving dog
+ local function creatDog()
+ local frameWidth = 105
+ local frameHeight = 95
+
+ -- create dog animate
+ local textureDog = cc.TextureCache:getInstance():addImage("res/dog.png")
+ local rect = cc.rect(0, 0, frameWidth, frameHeight)
+ local frame0 = cc.SpriteFrame:createWithTexture(textureDog, rect)
+ rect = cc.rect(frameWidth, 0, frameWidth, frameHeight)
+ local frame1 = cc.SpriteFrame:createWithTexture(textureDog, rect)
+
+ local spriteDog = cc.Sprite:createWithSpriteFrame(frame0)
+ spriteDog.isPaused = false
+ spriteDog:setPosition(origin.x, origin.y + visibleSize.height / 4 * 3)
+--[[
+ local animFrames = CCArray:create()
+
+ animFrames:addObject(frame0)
+ animFrames:addObject(frame1)
+]]--
+
+ local animation = cc.Animation:createWithSpriteFrames({frame0,frame1}, 0.5)
+ local animate = cc.Animate:create(animation);
+ spriteDog:runAction(cc.RepeatForever:create(animate))
+
+ -- moving dog at every frame
+ local function tick()
+ if spriteDog.isPaused then return end
+ local x, y = spriteDog:getPosition()
+ if x > origin.x + visibleSize.width then
+ x = origin.x
+ else
+ x = x + 1
+ end
+
+ spriteDog:setPositionX(x)
+ end
+
+ cc.Director:getInstance():getScheduler():scheduleScriptFunc(tick, 0, false)
+
+ return spriteDog
+ end
+
+ -- create farm
+ local function createLayerFarm()
+ local layerFarm = cc.Layer:create()
+
+ -- add in farm background
+ local bg = cc.Sprite:create("res/farm.jpg")
+ bg:setPosition(origin.x + visibleSize.width / 2 + 80, origin.y + visibleSize.height / 2)
+ layerFarm:addChild(bg)
+
+ -- add land sprite
+ for i = 0, 3 do
+ for j = 0, 1 do
+ local spriteLand = cc.Sprite:create("res/land.png")
+ spriteLand:setPosition(200 + j * 180 - i % 2 * 90, 10 + i * 95 / 2)
+ layerFarm:addChild(spriteLand)
+ end
+ end
+
+ -- add crop
+ local frameCrop = cc.SpriteFrame:create("res/crop.png", cc.rect(0, 0, 105, 95))
+ for i = 0, 3 do
+ for j = 0, 1 do
+ local spriteCrop = cc.Sprite:createWithSpriteFrame(frameCrop);
+ spriteCrop:setPosition(10 + 200 + j * 180 - i % 2 * 90, 30 + 10 + i * 95 / 2)
+ layerFarm:addChild(spriteCrop)
+ end
+ end
+
+ -- add moving dog
+ local spriteDog = creatDog()
+ layerFarm:addChild(spriteDog)
+
+ -- handing touch events
+ local touchBeginPoint = nil
+ local function onTouchBegan(touch, event)
+ local location = touch:getLocation()
+ cclog("onTouchBegan: %0.2f, %0.2f", location.x, location.y)
+ touchBeginPoint = {x = location.x, y = location.y}
+ spriteDog.isPaused = true
+ -- CCTOUCHBEGAN event must return true
+ return true
+ end
+
+ local function onTouchMoved(touch, event)
+ local location = touch:getLocation()
+ cclog("onTouchMoved: %0.2f, %0.2f", location.x, location.y)
+ if touchBeginPoint then
+ local cx, cy = layerFarm:getPosition()
+ layerFarm:setPosition(cx + location.x - touchBeginPoint.x,
+ cy + location.y - touchBeginPoint.y)
+ touchBeginPoint = {x = location.x, y = location.y}
+ end
+ end
+
+ local function onTouchEnded(touch, event)
+ local location = touch:getLocation()
+ cclog("onTouchEnded: %0.2f, %0.2f", location.x, location.y)
+ touchBeginPoint = nil
+ spriteDog.isPaused = false
+ end
+
+ local listener = cc.EventListenerTouchOneByOne:create()
+ listener:registerScriptHandler(onTouchBegan,cc.Handler.EVENT_TOUCH_BEGAN )
+ listener:registerScriptHandler(onTouchMoved,cc.Handler.EVENT_TOUCH_MOVED )
+ listener:registerScriptHandler(onTouchEnded,cc.Handler.EVENT_TOUCH_ENDED )
+ local eventDispatcher = layerFarm:getEventDispatcher()
+ eventDispatcher:addEventListenerWithSceneGraphPriority(listener, layerFarm)
+
+ return layerFarm
+ end
+
+
+ -- create menu
+ local function createLayerMenu()
+ local layerMenu = cc.Layer:create()
+
+ local menuPopup, menuTools, effectID
+
+ local function menuCallbackClosePopup()
+ -- stop test sound effect
+ cc.SimpleAudioEngine:getInstance():stopEffect(effectID)
+ menuPopup:setVisible(false)
+ end
+
+ local function menuCallbackOpenPopup()
+ -- loop test sound effect
+ local effectPath = cc.FileUtils:getInstance():fullPathForFilename("res/effect1.wav")
+ effectID = cc.SimpleAudioEngine:getInstance():playEffect(effectPath)
+ menuPopup:setVisible(true)
+ end
+
+ -- add a popup menu
+ local menuPopupItem = cc.MenuItemImage:create("res/menu2.png", "res/menu2.png")
+ menuPopupItem:setPosition(0, 0)
+ menuPopupItem:registerScriptTapHandler(menuCallbackClosePopup)
+ menuPopup = cc.Menu:create(menuPopupItem)
+ menuPopup:setPosition(origin.x + visibleSize.width / 2, origin.y + visibleSize.height / 2)
+ menuPopup:setVisible(false)
+ layerMenu:addChild(menuPopup)
+
+ -- add the left-bottom "tools" menu to invoke menuPopup
+ local menuToolsItem = cc.MenuItemImage:create("res/menu1.png", "res/menu1.png")
+ menuToolsItem:setPosition(0, 0)
+ menuToolsItem:registerScriptTapHandler(menuCallbackOpenPopup)
+ menuTools = cc.Menu:create(menuToolsItem)
+ local itemWidth = menuToolsItem:getContentSize().width
+ local itemHeight = menuToolsItem:getContentSize().height
+ menuTools:setPosition(origin.x + itemWidth/2, origin.y + itemHeight/2)
+ layerMenu:addChild(menuTools)
+
+ return layerMenu
+ end
+
+ -- play background music, preload effect
+
+ -- uncomment below for the BlackBerry version
+ -- local bgMusicPath = CCFileUtils:getInstance():fullPathForFilename("res/background.ogg")
+ local bgMusicPath = cc.FileUtils:getInstance():fullPathForFilename("res/background.mp3")
+ cc.SimpleAudioEngine:getInstance():playMusic(bgMusicPath, true)
+ local effectPath = cc.FileUtils:getInstance():fullPathForFilename("res/effect1.wav")
+ cc.SimpleAudioEngine:getInstance():preloadEffect(effectPath)
+
+ -- run
+ local sceneGame = cc.Scene:create()
+ sceneGame:addChild(createLayerFarm())
+ sceneGame:addChild(createLayerMenu())
+ cc.Director:getInstance():runWithScene(sceneGame)
+end
+
+xpcall(main, __G__TRACKBACK__)
diff --git a/tests/lua-empty-test/src/hello2.lua b/tests/lua-empty-test/src/hello2.lua
new file mode 100644
index 0000000000..27158aa788
--- /dev/null
+++ b/tests/lua-empty-test/src/hello2.lua
@@ -0,0 +1,3 @@
+function myadd(x, y)
+ return x + y
+end
\ No newline at end of file
diff --git a/tests/lua-empty-test/src/mobdebug.lua b/tests/lua-empty-test/src/mobdebug.lua
new file mode 100644
index 0000000000..31ef8af06b
--- /dev/null
+++ b/tests/lua-empty-test/src/mobdebug.lua
@@ -0,0 +1,1465 @@
+--
+-- MobDebug 0.542
+-- Copyright 2011-13 Paul Kulchenko
+-- Based on RemDebug 1.0 Copyright Kepler Project 2005
+--
+
+local mobdebug = {
+ _NAME = "mobdebug",
+ _VERSION = 0.542,
+ _COPYRIGHT = "Paul Kulchenko",
+ _DESCRIPTION = "Mobile Remote Debugger for the Lua programming language",
+ port = os and os.getenv and os.getenv("MOBDEBUG_PORT") or 8172,
+ checkcount = 200,
+ yieldtimeout = 0.02,
+}
+
+local coroutine = coroutine
+local error = error
+local getfenv = getfenv
+local setfenv = setfenv
+local loadstring = loadstring or load -- "load" replaced "loadstring" in Lua 5.2
+local io = io
+local os = os
+local pairs = pairs
+local require = require
+local setmetatable = setmetatable
+local string = string
+local tonumber = tonumber
+local unpack = table.unpack or unpack
+local rawget = rawget
+
+-- if strict.lua is used, then need to avoid referencing some global
+-- variables, as they can be undefined;
+-- use rawget to to avoid complaints from strict.lua at run-time.
+-- it's safe to do the initialization here as all these variables
+-- should get defined values (of any) before the debugging starts.
+-- there is also global 'wx' variable, which is checked as part of
+-- the debug loop as 'wx' can be loaded at any time during debugging.
+local genv = _G or _ENV
+local jit = rawget(genv, "jit")
+local MOAICoroutine = rawget(genv, "MOAICoroutine")
+
+if not setfenv then -- Lua 5.2
+ -- based on http://lua-users.org/lists/lua-l/2010-06/msg00314.html
+ -- this assumes f is a function
+ local function findenv(f)
+ local level = 1
+ repeat
+ local name, value = debug.getupvalue(f, level)
+ if name == '_ENV' then return level, value end
+ level = level + 1
+ until name == nil
+ return nil end
+ getfenv = function (f) return(select(2, findenv(f)) or _G) end
+ setfenv = function (f, t)
+ local level = findenv(f)
+ if level then debug.setupvalue(f, level, t) end
+ return f end
+end
+
+-- check for OS and convert file names to lower case on windows
+-- (its file system is case insensitive, but case preserving), as setting a
+-- breakpoint on x:\Foo.lua will not work if the file was loaded as X:\foo.lua.
+-- OSX and Windows behave the same way (case insensitive, but case preserving)
+local iscasepreserving = os and os.getenv and (os.getenv('WINDIR')
+ or (os.getenv('OS') or ''):match('[Ww]indows')
+ or os.getenv('DYLD_LIBRARY_PATH'))
+ or not io.open("/proc")
+
+-- turn jit off based on Mike Pall's comment in this discussion:
+-- http://www.freelists.org/post/luajit/Debug-hooks-and-JIT,2
+-- "You need to turn it off at the start if you plan to receive
+-- reliable hook calls at any later point in time."
+if jit and jit.off then jit.off() end
+
+local socket = require "socket"
+local debug = require "debug"
+local coro_debugger
+local coro_debugee
+local coroutines = {}; setmetatable(coroutines, {__mode = "k"}) -- "weak" keys
+local events = { BREAK = 1, WATCH = 2, RESTART = 3, STACK = 4 }
+local breakpoints = {}
+local watches = {}
+local lastsource
+local lastfile
+local watchescnt = 0
+local abort -- default value is nil; this is used in start/loop distinction
+local seen_hook = false
+local checkcount = 0
+local step_into = false
+local step_over = false
+local step_level = 0
+local stack_level = 0
+local server
+local buf
+local outputs = {}
+local iobase = {print = print}
+local basedir = ""
+local deferror = "execution aborted at default debugee"
+local debugee = function ()
+ local a = 1
+ for _ = 1, 10 do a = a + 1 end
+ error(deferror)
+end
+local function q(s) return s:gsub('([%(%)%.%%%+%-%*%?%[%^%$%]])','%%%1') end
+
+local serpent = (function() ---- include Serpent module for serialization
+local n, v = "serpent", 0.25 -- (C) 2012-13 Paul Kulchenko; MIT License
+local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
+local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
+local badtype = {thread = true, userdata = true, cdata = true}
+local keyword, globals, G = {}, {}, (_G or _ENV)
+for _,k in ipairs({'and', 'break', 'do', 'else', 'elseif', 'end', 'false',
+ 'for', 'function', 'goto', 'if', 'in', 'local', 'nil', 'not', 'or', 'repeat',
+ 'return', 'then', 'true', 'until', 'while'}) do keyword[k] = true end
+for k,v in pairs(G) do globals[v] = k end -- build func to name mapping
+for _,g in ipairs({'coroutine', 'debug', 'io', 'math', 'string', 'table', 'os'}) do
+ for k,v in pairs(G[g]) do globals[v] = g..'.'..k end end
+
+local function s(t, opts)
+ local name, indent, fatal, maxnum = opts.name, opts.indent, opts.fatal, opts.maxnum
+ local sparse, custom, huge = opts.sparse, opts.custom, not opts.nohuge
+ local space, maxl = (opts.compact and '' or ' '), (opts.maxlevel or math.huge)
+ local iname, comm = '_'..(name or ''), opts.comment and (tonumber(opts.comment) or math.huge)
+ local seen, sref, syms, symn = {}, {'local '..iname..'={}'}, {}, 0
+ local function gensym(val) return '_'..(tostring(tostring(val)):gsub("[^%w]",""):gsub("(%d%w+)",
+ -- tostring(val) is needed because __tostring may return a non-string value
+ function(s) if not syms[s] then symn = symn+1; syms[s] = symn end return syms[s] end)) end
+ local function safestr(s) return type(s) == "number" and (huge and snum[tostring(s)] or s)
+ or type(s) ~= "string" and tostring(s) -- escape NEWLINE/010 and EOF/026
+ or ("%q"):format(s):gsub("\010","n"):gsub("\026","\\026") end
+ local function comment(s,l) return comm and (l or 0) < comm and ' --[['..tostring(s)..']]' or '' end
+ local function globerr(s,l) return globals[s] and globals[s]..comment(s,l) or not fatal
+ and safestr(select(2, pcall(tostring, s))) or error("Can't serialize "..tostring(s)) end
+ local function safename(path, name) -- generates foo.bar, foo[3], or foo['b a r']
+ local n = name == nil and '' or name
+ local plain = type(n) == "string" and n:match("^[%l%u_][%w_]*$") and not keyword[n]
+ local safe = plain and n or '['..safestr(n)..']'
+ return (path or '')..(plain and path and '.' or '')..safe, safe end
+ local alphanumsort = type(opts.sortkeys) == 'function' and opts.sortkeys or function(k, o, n) -- k=keys, o=originaltable, n=padding
+ local maxn, to = tonumber(n) or 12, {number = 'a', string = 'b'}
+ local function padnum(d) return ("%0"..maxn.."d"):format(d) end
+ table.sort(k, function(a,b)
+ -- sort numeric keys first: k[key] is non-nil for numeric keys
+ return (k[a] and 0 or to[type(a)] or 'z')..(tostring(a):gsub("%d+",padnum))
+ < (k[b] and 0 or to[type(b)] or 'z')..(tostring(b):gsub("%d+",padnum)) end) end
+ local function val2str(t, name, indent, insref, path, plainindex, level)
+ local ttype, level, mt = type(t), (level or 0), getmetatable(t)
+ local spath, sname = safename(path, name)
+ local tag = plainindex and
+ ((type(name) == "number") and '' or name..space..'='..space) or
+ (name ~= nil and sname..space..'='..space or '')
+ if seen[t] then -- already seen this element
+ sref[#sref+1] = spath..space..'='..space..seen[t]
+ return tag..'nil'..comment('ref', level) end
+ if type(mt) == 'table' and (mt.__serialize or mt.__tostring) then -- knows how to serialize itself
+ seen[t] = insref or spath
+ if mt.__serialize then t = mt.__serialize(t) else t = tostring(t) end
+ ttype = type(t) end -- new value falls through to be serialized
+ if ttype == "table" then
+ if level >= maxl then return tag..'{}'..comment('max', level) end
+ seen[t] = insref or spath
+ if next(t) == nil then return tag..'{}'..comment(t, level) end -- table empty
+ local maxn, o, out = math.min(#t, maxnum or #t), {}, {}
+ for key = 1, maxn do o[key] = key end
+ if not maxnum or #o < maxnum then
+ local n = #o -- n = n + 1; o[n] is much faster than o[#o+1] on large tables
+ for key in pairs(t) do if o[key] ~= key then n = n + 1; o[n] = key end end end
+ if maxnum and #o > maxnum then o[maxnum+1] = nil end
+ if opts.sortkeys and #o > maxn then alphanumsort(o, t, opts.sortkeys) end
+ local sparse = sparse and #o > maxn -- disable sparsness if only numeric keys (shorter output)
+ for n, key in ipairs(o) do
+ local value, ktype, plainindex = t[key], type(key), n <= maxn and not sparse
+ if opts.valignore and opts.valignore[value] -- skip ignored values; do nothing
+ or opts.keyallow and not opts.keyallow[key]
+ or opts.valtypeignore and opts.valtypeignore[type(value)] -- skipping ignored value types
+ or sparse and value == nil then -- skipping nils; do nothing
+ elseif ktype == 'table' or ktype == 'function' or badtype[ktype] then
+ if not seen[key] and not globals[key] then
+ sref[#sref+1] = 'placeholder'
+ local sname = safename(iname, gensym(key)) -- iname is table for local variables
+ sref[#sref] = val2str(key,sname,indent,sname,iname,true) end
+ sref[#sref+1] = 'placeholder'
+ local path = seen[t]..'['..(seen[key] or globals[key] or gensym(key))..']'
+ sref[#sref] = path..space..'='..space..(seen[value] or val2str(value,nil,indent,path))
+ else
+ out[#out+1] = val2str(value,key,indent,insref,seen[t],plainindex,level+1)
+ end
+ end
+ local prefix = string.rep(indent or '', level)
+ local head = indent and '{\n'..prefix..indent or '{'
+ local body = table.concat(out, ','..(indent and '\n'..prefix..indent or space))
+ local tail = indent and "\n"..prefix..'}' or '}'
+ return (custom and custom(tag,head,body,tail) or tag..head..body..tail)..comment(t, level)
+ elseif badtype[ttype] then
+ seen[t] = insref or spath
+ return tag..globerr(t, level)
+ elseif ttype == 'function' then
+ seen[t] = insref or spath
+ local ok, res = pcall(string.dump, t)
+ local func = ok and ((opts.nocode and "function() --[[..skipped..]] end" or
+ "loadstring("..safestr(res)..",'@serialized')")..comment(t, level))
+ return tag..(func or globerr(t, level))
+ else return tag..safestr(t) end -- handle all other types
+ end
+ local sepr = indent and "\n" or ";"..space
+ local body = val2str(t, name, indent) -- this call also populates sref
+ local tail = #sref>1 and table.concat(sref, sepr)..sepr or ''
+ local warn = opts.comment and #sref>1 and space.."--[[incomplete output with shared/self-references skipped]]" or ''
+ return not name and body..warn or "do local "..body..sepr..tail.."return "..name..sepr.."end"
+end
+
+local function merge(a, b) if b then for k,v in pairs(b) do a[k] = v end end; return a; end
+return { _NAME = n, _COPYRIGHT = c, _DESCRIPTION = d, _VERSION = v, serialize = s,
+ dump = function(a, opts) return s(a, merge({name = '_', compact = true, sparse = true}, opts)) end,
+ line = function(a, opts) return s(a, merge({sortkeys = true, comment = true}, opts)) end,
+ block = function(a, opts) return s(a, merge({indent = ' ', sortkeys = true, comment = true}, opts)) end }
+end)() ---- end of Serpent module
+
+local function removebasedir(path, basedir)
+ if iscasepreserving then
+ -- check if the lowercased path matches the basedir
+ -- if so, return substring of the original path (to not lowercase it)
+ return path:lower():find('^'..q(basedir:lower()))
+ and path:sub(#basedir+1) or path
+ else
+ return string.gsub(path, '^'..q(basedir), '')
+ end
+end
+
+local function stack(start)
+ local function vars(f)
+ local func = debug.getinfo(f, "f").func
+ local i = 1
+ local locals = {}
+ while true do
+ local name, value = debug.getlocal(f, i)
+ if not name then break end
+ if string.sub(name, 1, 1) ~= '(' then locals[name] = {value, tostring(value)} end
+ i = i + 1
+ end
+ i = 1
+ local ups = {}
+ while func and true do -- check for func as it may be nil for tail calls
+ local name, value = debug.getupvalue(func, i)
+ if not name then break end
+ ups[name] = {value, tostring(value)}
+ i = i + 1
+ end
+ return locals, ups
+ end
+
+ local stack = {}
+ for i = (start or 0), 100 do
+ local source = debug.getinfo(i, "Snl")
+ if not source then break end
+
+ local src = source.source
+ if src:find("@") == 1 then
+ src = src:sub(2):gsub("\\", "/")
+ if src:find("%./") == 1 then src = src:sub(3) end
+ end
+
+ table.insert(stack, { -- remove basedir from source
+ {source.name, removebasedir(src, basedir), source.linedefined,
+ source.currentline, source.what, source.namewhat, source.short_src},
+ vars(i+1)})
+ if source.what == 'main' then break end
+ end
+ return stack
+end
+
+local function set_breakpoint(file, line)
+ if file == '-' and lastfile then file = lastfile
+ elseif iscasepreserving then file = string.lower(file) end
+ if not breakpoints[line] then breakpoints[line] = {} end
+ breakpoints[line][file] = true
+end
+
+local function remove_breakpoint(file, line)
+ if file == '-' and lastfile then file = lastfile
+ elseif iscasepreserving then file = string.lower(file) end
+ if breakpoints[line] then breakpoints[line][file] = nil end
+end
+
+local function has_breakpoint(file, line)
+ return breakpoints[line]
+ and breakpoints[line][iscasepreserving and string.lower(file) or file]
+end
+
+local function restore_vars(vars)
+ if type(vars) ~= 'table' then return end
+
+ -- locals need to be processed in the reverse order, starting from
+ -- the inner block out, to make sure that the localized variables
+ -- are correctly updated with only the closest variable with
+ -- the same name being changed
+ -- first loop find how many local variables there is, while
+ -- the second loop processes them from i to 1
+ local i = 1
+ while true do
+ local name = debug.getlocal(3, i)
+ if not name then break end
+ i = i + 1
+ end
+ i = i - 1
+ local written_vars = {}
+ while i > 0 do
+ local name = debug.getlocal(3, i)
+ if not written_vars[name] then
+ if string.sub(name, 1, 1) ~= '(' then
+ debug.setlocal(3, i, rawget(vars, name))
+ end
+ written_vars[name] = true
+ end
+ i = i - 1
+ end
+
+ i = 1
+ local func = debug.getinfo(3, "f").func
+ while true do
+ local name = debug.getupvalue(func, i)
+ if not name then break end
+ if not written_vars[name] then
+ if string.sub(name, 1, 1) ~= '(' then
+ debug.setupvalue(func, i, rawget(vars, name))
+ end
+ written_vars[name] = true
+ end
+ i = i + 1
+ end
+end
+
+local function capture_vars(level)
+ local vars = {}
+ local func = debug.getinfo(level or 3, "f").func
+ local i = 1
+ while true do
+ local name, value = debug.getupvalue(func, i)
+ if not name then break end
+ if string.sub(name, 1, 1) ~= '(' then vars[name] = value end
+ i = i + 1
+ end
+ i = 1
+ while true do
+ local name, value = debug.getlocal(level or 3, i)
+ if not name then break end
+ if string.sub(name, 1, 1) ~= '(' then vars[name] = value end
+ i = i + 1
+ end
+ -- returned 'vars' table plays a dual role: (1) it captures local values
+ -- and upvalues to be restored later (in case they are modified in "eval"),
+ -- and (2) it provides an environment for evaluated chunks.
+ -- getfenv(func) is needed to provide proper environment for functions,
+ -- including access to globals, but this causes vars[name] to fail in
+ -- restore_vars on local variables or upvalues with `nil` values when
+ -- 'strict' is in effect. To avoid this `rawget` is used in restore_vars.
+ setmetatable(vars, { __index = getfenv(func), __newindex = getfenv(func) })
+ return vars
+end
+
+local function stack_depth(start_depth)
+ for i = start_depth, 0, -1 do
+ if debug.getinfo(i, "l") then return i+1 end
+ end
+ return start_depth
+end
+
+local function is_safe(stack_level)
+ -- the stack grows up: 0 is getinfo, 1 is is_safe, 2 is debug_hook, 3 is user function
+ if stack_level == 3 then return true end
+ for i = 3, stack_level do
+ -- return if it is not safe to abort
+ local info = debug.getinfo(i, "S")
+ if not info then return true end
+ if info.what == "C" then return false end
+ end
+ return true
+end
+
+local function in_debugger()
+ local this = debug.getinfo(1, "S").source
+ -- only need to check few frames as mobdebug frames should be close
+ for i = 3, 7 do
+ local info = debug.getinfo(i, "S")
+ if not info then return false end
+ if info.source == this then return true end
+ end
+ return false
+end
+
+local function is_pending(peer)
+ -- if there is something already in the buffer, skip check
+ if not buf and checkcount >= mobdebug.checkcount then
+ peer:settimeout(0) -- non-blocking
+ buf = peer:receive(1)
+ peer:settimeout() -- back to blocking
+ checkcount = 0
+ end
+ return buf
+end
+
+local function debug_hook(event, line)
+ -- (1) LuaJIT needs special treatment. Because debug_hook is set for
+ -- *all* coroutines, and not just the one being debugged as in regular Lua
+ -- (http://lua-users.org/lists/lua-l/2011-06/msg00513.html),
+ -- need to avoid debugging mobdebug's own code as LuaJIT doesn't
+ -- always correctly generate call/return hook events (there are more
+ -- calls than returns, which breaks stack depth calculation and
+ -- 'step' and 'step over' commands stop working; possibly because
+ -- 'tail return' events are not generated by LuaJIT).
+ -- the next line checks if the debugger is run under LuaJIT and if
+ -- one of debugger methods is present in the stack, it simply returns.
+ if jit then
+ -- when luajit is compiled with LUAJIT_ENABLE_LUA52COMPAT,
+ -- coroutine.running() returns non-nil for the main thread.
+ local coro, main = coroutine.running()
+ if not coro or main then coro = 'main' end
+ local disabled = coroutines[coro] == false
+ or coroutines[coro] == nil and coro ~= (coro_debugee or 'main')
+ if coro_debugee and disabled or not coro_debugee and (disabled or in_debugger())
+ then return end
+ end
+
+ -- (2) check if abort has been requested and it's safe to abort
+ if abort and is_safe(stack_level) then error(abort) end
+
+ -- (3) also check if this debug hook has not been visited for any reason.
+ -- this check is needed to avoid stepping in too early
+ -- (for example, when coroutine.resume() is executed inside start()).
+ if not seen_hook and in_debugger() then return end
+
+ if event == "call" then
+ stack_level = stack_level + 1
+ elseif event == "return" or event == "tail return" then
+ stack_level = stack_level - 1
+ elseif event == "line" then
+ -- may need to fall through because of the following:
+ -- (1) step_into
+ -- (2) step_over and stack_level <= step_level (need stack_level)
+ -- (3) breakpoint; check for line first as it's known; then for file
+ -- (4) socket call (only do every Xth check)
+ -- (5) at least one watch is registered
+ if not (
+ step_into or step_over or breakpoints[line] or watchescnt > 0
+ or is_pending(server)
+ ) then checkcount = checkcount + 1; return end
+
+ checkcount = mobdebug.checkcount -- force check on the next command
+
+ -- this is needed to check if the stack got shorter or longer.
+ -- unfortunately counting call/return calls is not reliable.
+ -- the discrepancy may happen when "pcall(load, '')" call is made
+ -- or when "error()" is called in a function.
+ -- in either case there are more "call" than "return" events reported.
+ -- this validation is done for every "line" event, but should be "cheap"
+ -- as it checks for the stack to get shorter (or longer by one call).
+ -- start from one level higher just in case we need to grow the stack.
+ -- this may happen after coroutine.resume call to a function that doesn't
+ -- have any other instructions to execute. it triggers three returns:
+ -- "return, tail return, return", which needs to be accounted for.
+ stack_level = stack_depth(stack_level+1)
+
+ local caller = debug.getinfo(2, "S")
+
+ -- grab the filename and fix it if needed
+ local file = lastfile
+ if (lastsource ~= caller.source) then
+ file, lastsource = caller.source, caller.source
+ -- technically, users can supply names that may not use '@',
+ -- for example when they call loadstring('...', 'filename.lua').
+ -- Unfortunately, there is no reliable/quick way to figure out
+ -- what is the filename and what is the source code.
+ -- The following will work if the supplied filename uses Unix path.
+ if file:find("^@") then
+ file = file:gsub("^@", ""):gsub("\\", "/")
+ -- need this conversion to be applied to relative and absolute
+ -- file names as you may write "require 'Foo'" to
+ -- load "foo.lua" (on a case insensitive file system) and breakpoints
+ -- set on foo.lua will not work if not converted to the same case.
+ if iscasepreserving then file = string.lower(file) end
+ if file:find("%./") == 1 then file = file:sub(3)
+ else file = file:gsub('^'..q(basedir), '') end
+ -- some file systems allow newlines in file names; remove these.
+ file = file:gsub("\n", ' ')
+ else
+ -- this is either a file name coming from loadstring("chunk", "file"),
+ -- or the actual source code that needs to be serialized (as it may
+ -- include newlines); assume it's a file name if it's all on one line.
+ file = file:find("[\r\n]") and serpent.line(file) or file
+ end
+
+ -- set to true if we got here; this only needs to be done once per
+ -- session, so do it here to at least avoid setting it for every line.
+ seen_hook = true
+ lastfile = file
+ end
+
+ local vars, status, res
+ if (watchescnt > 0) then
+ vars = capture_vars()
+ for index, value in pairs(watches) do
+ setfenv(value, vars)
+ local ok, fired = pcall(value)
+ if ok and fired then
+ status, res = coroutine.resume(coro_debugger, events.WATCH, vars, file, line, index)
+ break -- any one watch is enough; don't check multiple times
+ end
+ end
+ end
+
+ -- need to get into the "regular" debug handler, but only if there was
+ -- no watch that was fired. If there was a watch, handle its result.
+ local getin = (status == nil) and
+ (step_into
+ or (step_over and stack_level <= step_level)
+ or has_breakpoint(file, line)
+ or is_pending(server))
+
+ if getin then
+ vars = vars or capture_vars()
+ step_into = false
+ step_over = false
+ status, res = coroutine.resume(coro_debugger, events.BREAK, vars, file, line)
+ end
+
+ -- handle 'stack' command that provides stack() information to the debugger
+ if status and res == 'stack' then
+ while status and res == 'stack' do
+ -- resume with the stack trace and variables
+ if vars then restore_vars(vars) end -- restore vars so they are reflected in stack values
+ -- this may fail if __tostring method fails at run-time
+ local ok, snapshot = pcall(stack, 4)
+ status, res = coroutine.resume(coro_debugger, ok and events.STACK or events.BREAK, snapshot, file, line)
+ end
+ end
+
+ -- need to recheck once more as resume after 'stack' command may
+ -- return something else (for example, 'exit'), which needs to be handled
+ if status and res and res ~= 'stack' then
+ if abort == nil and res == "exit" then os.exit(1); return end
+ abort = res
+ -- only abort if safe; if not, there is another (earlier) check inside
+ -- debug_hook, which will abort execution at the first safe opportunity
+ if is_safe(stack_level) then error(abort) end
+ elseif not status and res then
+ error(res, 2) -- report any other (internal) errors back to the application
+ end
+
+ if vars then restore_vars(vars) end
+ end
+end
+
+local function stringify_results(status, ...)
+ if not status then return status, ... end -- on error report as it
+
+ local t = {...}
+ for i,v in pairs(t) do -- stringify each of the returned values
+ local ok, res = pcall(serpent.line, v, {nocode = true, comment = 1})
+ t[i] = ok and res or ("%q"):format(res):gsub("\010","n"):gsub("\026","\\026")
+ end
+ -- stringify table with all returned values
+ -- this is done to allow each returned value to be used (serialized or not)
+ -- intependently and to preserve "original" comments
+ return pcall(serpent.dump, t, {sparse = false})
+end
+
+local function debugger_loop(sev, svars, sfile, sline)
+ local command
+ local app, osname
+ local eval_env = svars or {}
+ local function emptyWatch () return false end
+ local loaded = {}
+ for k in pairs(package.loaded) do loaded[k] = true end
+
+ while true do
+ local line, err
+ local wx = rawget(genv, "wx") -- use rawread to make strict.lua happy
+ if (wx or mobdebug.yield) and server.settimeout then server:settimeout(mobdebug.yieldtimeout) end
+ while true do
+ line, err = server:receive()
+ if not line and err == "timeout" then
+ -- yield for wx GUI applications if possible to avoid "busyness"
+ app = app or (wx and wx.wxGetApp and wx.wxGetApp())
+ if app then
+ local win = app:GetTopWindow()
+ local inloop = app:IsMainLoopRunning()
+ osname = osname or wx.wxPlatformInfo.Get():GetOperatingSystemFamilyName()
+ if win and not inloop then
+ -- process messages in a regular way
+ -- and exit as soon as the event loop is idle
+ if osname == 'Unix' then wx.wxTimer(app):Start(10, true) end
+ local exitLoop = function()
+ win:Disconnect(wx.wxID_ANY, wx.wxID_ANY, wx.wxEVT_IDLE)
+ win:Disconnect(wx.wxID_ANY, wx.wxID_ANY, wx.wxEVT_TIMER)
+ app:ExitMainLoop()
+ end
+ win:Connect(wx.wxEVT_IDLE, exitLoop)
+ win:Connect(wx.wxEVT_TIMER, exitLoop)
+ app:MainLoop()
+ end
+ elseif mobdebug.yield then mobdebug.yield()
+ end
+ elseif not line and err == "closed" then
+ error("Debugger connection unexpectedly closed", 0)
+ else
+ -- if there is something in the pending buffer, prepend it to the line
+ if buf then line = buf .. line; buf = nil end
+ break
+ end
+ end
+ if server.settimeout then server:settimeout() end -- back to blocking
+ command = string.sub(line, string.find(line, "^[A-Z]+"))
+ if command == "SETB" then
+ local _, _, _, file, line = string.find(line, "^([A-Z]+)%s+(.-)%s+(%d+)%s*$")
+ if file and line then
+ set_breakpoint(file, tonumber(line))
+ server:send("200 OK\n")
+ else
+ server:send("400 Bad Request\n")
+ end
+ elseif command == "DELB" then
+ local _, _, _, file, line = string.find(line, "^([A-Z]+)%s+(.-)%s+(%d+)%s*$")
+ if file and line then
+ remove_breakpoint(file, tonumber(line))
+ server:send("200 OK\n")
+ else
+ server:send("400 Bad Request\n")
+ end
+ elseif command == "EXEC" then
+ local _, _, chunk = string.find(line, "^[A-Z]+%s+(.+)$")
+ if chunk then
+ local func, res = loadstring(chunk)
+ local status
+ if func then
+ setfenv(func, eval_env)
+ status, res = stringify_results(pcall(func))
+ end
+ if status then
+ server:send("200 OK " .. #res .. "\n")
+ server:send(res)
+ else
+ server:send("401 Error in Expression " .. #res .. "\n")
+ server:send(res)
+ end
+ else
+ server:send("400 Bad Request\n")
+ end
+ elseif command == "LOAD" then
+ local _, _, size, name = string.find(line, "^[A-Z]+%s+(%d+)%s+(%S.-)%s*$")
+ size = tonumber(size)
+
+ if abort == nil then -- no LOAD/RELOAD allowed inside start()
+ if size > 0 then server:receive(size) end
+ if sfile and sline then
+ server:send("201 Started " .. sfile .. " " .. sline .. "\n")
+ else
+ server:send("200 OK 0\n")
+ end
+ else
+ -- reset environment to allow required modules to load again
+ -- remove those packages that weren't loaded when debugger started
+ for k in pairs(package.loaded) do
+ if not loaded[k] then package.loaded[k] = nil end
+ end
+
+ if size == 0 and name == '-' then -- RELOAD the current script being debugged
+ server:send("200 OK 0\n")
+ coroutine.yield("load")
+ else
+ -- receiving 0 bytes blocks (at least in luasocket 2.0.2), so skip reading
+ local chunk = size == 0 and "" or server:receive(size)
+ if chunk then -- LOAD a new script for debugging
+ local func, res = loadstring(chunk, "@"..name)
+ if func then
+ server:send("200 OK 0\n")
+ debugee = func
+ coroutine.yield("load")
+ else
+ server:send("401 Error in Expression " .. #res .. "\n")
+ server:send(res)
+ end
+ else
+ server:send("400 Bad Request\n")
+ end
+ end
+ end
+ elseif command == "SETW" then
+ local _, _, exp = string.find(line, "^[A-Z]+%s+(.+)%s*$")
+ if exp then
+ local func, res = loadstring("return(" .. exp .. ")")
+ if func then
+ watchescnt = watchescnt + 1
+ local newidx = #watches + 1
+ watches[newidx] = func
+ server:send("200 OK " .. newidx .. "\n")
+ else
+ server:send("401 Error in Expression " .. #res .. "\n")
+ server:send(res)
+ end
+ else
+ server:send("400 Bad Request\n")
+ end
+ elseif command == "DELW" then
+ local _, _, index = string.find(line, "^[A-Z]+%s+(%d+)%s*$")
+ index = tonumber(index)
+ if index > 0 and index <= #watches then
+ watchescnt = watchescnt - (watches[index] ~= emptyWatch and 1 or 0)
+ watches[index] = emptyWatch
+ server:send("200 OK\n")
+ else
+ server:send("400 Bad Request\n")
+ end
+ elseif command == "RUN" then
+ server:send("200 OK\n")
+
+ local ev, vars, file, line, idx_watch = coroutine.yield()
+ eval_env = vars
+ if ev == events.BREAK then
+ server:send("202 Paused " .. file .. " " .. line .. "\n")
+ elseif ev == events.WATCH then
+ server:send("203 Paused " .. file .. " " .. line .. " " .. idx_watch .. "\n")
+ elseif ev == events.RESTART then
+ -- nothing to do
+ else
+ server:send("401 Error in Execution " .. #file .. "\n")
+ server:send(file)
+ end
+ elseif command == "STEP" then
+ server:send("200 OK\n")
+ step_into = true
+
+ local ev, vars, file, line, idx_watch = coroutine.yield()
+ eval_env = vars
+ if ev == events.BREAK then
+ server:send("202 Paused " .. file .. " " .. line .. "\n")
+ elseif ev == events.WATCH then
+ server:send("203 Paused " .. file .. " " .. line .. " " .. idx_watch .. "\n")
+ elseif ev == events.RESTART then
+ -- nothing to do
+ else
+ server:send("401 Error in Execution " .. #file .. "\n")
+ server:send(file)
+ end
+ elseif command == "OVER" or command == "OUT" then
+ server:send("200 OK\n")
+ step_over = true
+
+ -- OVER and OUT are very similar except for
+ -- the stack level value at which to stop
+ if command == "OUT" then step_level = stack_level - 1
+ else step_level = stack_level end
+
+ local ev, vars, file, line, idx_watch = coroutine.yield()
+ eval_env = vars
+ if ev == events.BREAK then
+ server:send("202 Paused " .. file .. " " .. line .. "\n")
+ elseif ev == events.WATCH then
+ server:send("203 Paused " .. file .. " " .. line .. " " .. idx_watch .. "\n")
+ elseif ev == events.RESTART then
+ -- nothing to do
+ else
+ server:send("401 Error in Execution " .. #file .. "\n")
+ server:send(file)
+ end
+ elseif command == "BASEDIR" then
+ local _, _, dir = string.find(line, "^[A-Z]+%s+(.+)%s*$")
+ if dir then
+ basedir = iscasepreserving and string.lower(dir) or dir
+ -- reset cached source as it may change with basedir
+ lastsource = nil
+ server:send("200 OK\n")
+ else
+ server:send("400 Bad Request\n")
+ end
+ elseif command == "SUSPEND" then
+ -- do nothing; it already fulfilled its role
+ elseif command == "STACK" then
+ -- first check if we can execute the stack command
+ -- as it requires yielding back to debug_hook it cannot be executed
+ -- if we have not seen the hook yet as happens after start().
+ -- in this case we simply return an empty result
+ local vars, ev = {}
+ if seen_hook then
+ ev, vars = coroutine.yield("stack")
+ end
+ if ev and ev ~= events.STACK then
+ server:send("401 Error in Execution " .. #vars .. "\n")
+ server:send(vars)
+ else
+ local ok, res = pcall(serpent.dump, vars, {nocode = true, sparse = false})
+ if ok then
+ server:send("200 OK " .. res .. "\n")
+ else
+ server:send("401 Error in Execution " .. #res .. "\n")
+ server:send(res)
+ end
+ end
+ elseif command == "OUTPUT" then
+ local _, _, stream, mode = string.find(line, "^[A-Z]+%s+(%w+)%s+([dcr])%s*$")
+ if stream and mode and stream == "stdout" then
+ -- assign "print" in the global environment
+ genv.print = mode == 'd' and iobase.print or coroutine.wrap(function(...)
+ -- wrapping into coroutine.wrap protects this function from
+ -- being stepped through in the debugger
+ local tbl = {...}
+ while true do
+ if mode == 'c' then iobase.print(unpack(tbl)) end
+ for n = 1, #tbl do
+ tbl[n] = select(2, pcall(serpent.line, tbl[n], {nocode = true, comment = false})) end
+ local file = table.concat(tbl, "\t").."\n"
+ server:send("204 Output " .. stream .. " " .. #file .. "\n" .. file)
+ tbl = {coroutine.yield()}
+ end
+ end)
+ server:send("200 OK\n")
+ else
+ server:send("400 Bad Request\n")
+ end
+ elseif command == "EXIT" then
+ server:send("200 OK\n")
+ coroutine.yield("exit")
+ else
+ server:send("400 Bad Request\n")
+ end
+ end
+end
+
+local function connect(controller_host, controller_port)
+ return (socket.connect4 or socket.connect)(controller_host, controller_port)
+end
+
+local function isrunning()
+ return coro_debugger and coroutine.status(coro_debugger) == 'suspended'
+end
+
+local lasthost, lastport
+
+-- Starts a debug session by connecting to a controller
+local function start(controller_host, controller_port)
+ -- only one debugging session can be run (as there is only one debug hook)
+ if isrunning() then return end
+
+ lasthost = controller_host or lasthost
+ lastport = controller_port or lastport
+
+ controller_host = lasthost or "localhost"
+ controller_port = lastport or mobdebug.port
+
+ local err
+ server, err = (socket.connect4 or socket.connect)(controller_host, controller_port)
+ if server then
+ -- correct stack depth which already has some calls on it
+ -- so it doesn't go into negative when those calls return
+ -- as this breaks subsequence checks in stack_depth().
+ -- start from 16th frame, which is sufficiently large for this check.
+ stack_level = stack_depth(16)
+
+ -- provide our own traceback function to report the error remotely
+ do
+ local dtraceback = debug.traceback
+ debug.traceback = function (...)
+ if select('#', ...) >= 1 then
+ local err, lvl = ...
+ if err and type(err) ~= 'thread' then
+ local trace = dtraceback(err, (lvl or 2)+1)
+ if genv.print == iobase.print then -- no remote redirect
+ return trace
+ else
+ genv.print(trace) -- report the error remotely
+ return -- don't report locally to avoid double reporting
+ end
+ end
+ end
+ -- direct call to debug.traceback: return the original.
+ -- debug.traceback(nil, level) doesn't work in Lua 5.1
+ -- (http://lua-users.org/lists/lua-l/2011-06/msg00574.html), so
+ -- simply remove first frame from the stack trace
+ return (dtraceback(...):gsub("(stack traceback:\n)[^\n]*\n", "%1"))
+ end
+ end
+ coro_debugger = coroutine.create(debugger_loop)
+ debug.sethook(debug_hook, "lcr")
+ seen_hook = nil -- reset in case the last start() call was refused
+ step_into = true -- start with step command
+ return true
+ else
+ print(("Could not connect to %s:%s: %s")
+ :format(controller_host, controller_port, err or "unknown error"))
+ end
+end
+
+local function controller(controller_host, controller_port, scratchpad)
+ -- only one debugging session can be run (as there is only one debug hook)
+ if isrunning() then return end
+
+ lasthost = controller_host or lasthost
+ lastport = controller_port or lastport
+
+ controller_host = lasthost or "localhost"
+ controller_port = lastport or mobdebug.port
+
+ local exitonerror = not scratchpad
+ local err
+ server, err = (socket.connect4 or socket.connect)(controller_host, controller_port)
+ if server then
+ local function report(trace, err)
+ local msg = err .. "\n" .. trace
+ server:send("401 Error in Execution " .. #msg .. "\n")
+ server:send(msg)
+ return err
+ end
+
+ seen_hook = true -- allow to accept all commands
+ coro_debugger = coroutine.create(debugger_loop)
+
+ while true do
+ step_into = true -- start with step command
+ abort = false -- reset abort flag from the previous loop
+ if scratchpad then checkcount = mobdebug.checkcount end -- force suspend right away
+
+ coro_debugee = coroutine.create(debugee)
+ debug.sethook(coro_debugee, debug_hook, "lcr")
+ local status, err = coroutine.resume(coro_debugee)
+
+ -- was there an error or is the script done?
+ -- 'abort' state is allowed here; ignore it
+ if abort then
+ if tostring(abort) == 'exit' then break end
+ else
+ if status then -- normal execution is done
+ break
+ elseif err and not tostring(err):find(deferror) then
+ -- report the error back
+ -- err is not necessarily a string, so convert to string to report
+ report(debug.traceback(coro_debugee), tostring(err))
+ if exitonerror then break end
+ -- resume once more to clear the response the debugger wants to send
+ -- need to use capture_vars(2) as three would be the level of
+ -- the caller for controller(), but because of the tail call,
+ -- the caller may not exist;
+ -- This is not entirely safe as the user may see the local
+ -- variable from console, but they will be reset anyway.
+ -- This functionality is used when scratchpad is paused to
+ -- gain access to remote console to modify global variables.
+ local status, err = coroutine.resume(coro_debugger, events.RESTART, capture_vars(2))
+ if not status or status and err == "exit" then break end
+ end
+ end
+ end
+ else
+ print(("Could not connect to %s:%s: %s")
+ :format(controller_host, controller_port, err or "unknown error"))
+ return false
+ end
+ return true
+end
+
+local function scratchpad(controller_host, controller_port)
+ return controller(controller_host, controller_port, true)
+end
+
+local function loop(controller_host, controller_port)
+ return controller(controller_host, controller_port, false)
+end
+
+local function on()
+ if not (isrunning() and server) then return end
+
+ -- main is set to true under Lua5.2 for the "main" chunk.
+ -- Lua5.1 returns co as `nil` in that case.
+ local co, main = coroutine.running()
+ if main then co = nil end
+ if co then
+ coroutines[co] = true
+ debug.sethook(co, debug_hook, "lcr")
+ else
+ if jit then coroutines.main = true end
+ debug.sethook(debug_hook, "lcr")
+ end
+end
+
+local function off()
+ if not (isrunning() and server) then return end
+
+ -- main is set to true under Lua5.2 for the "main" chunk.
+ -- Lua5.1 returns co as `nil` in that case.
+ local co, main = coroutine.running()
+ if main then co = nil end
+
+ -- don't remove coroutine hook under LuaJIT as there is only one (global) hook
+ if co then
+ coroutines[co] = false
+ if not jit then debug.sethook(co) end
+ else
+ if jit then coroutines.main = false end
+ if not jit then debug.sethook() end
+ end
+
+ -- check if there is any thread that is still being debugged under LuaJIT;
+ -- if not, turn the debugging off
+ if jit then
+ local remove = true
+ for co, debugged in pairs(coroutines) do
+ if debugged then remove = false; break end
+ end
+ if remove then debug.sethook() end
+ end
+end
+
+-- Handles server debugging commands
+local function handle(params, client, options)
+ local _, _, command = string.find(params, "^([a-z]+)")
+ local file, line, watch_idx
+ if command == "run" or command == "step" or command == "out"
+ or command == "over" or command == "exit" then
+ client:send(string.upper(command) .. "\n")
+ client:receive() -- this should consume the first '200 OK' response
+ while true do
+ local done = true
+ local breakpoint = client:receive()
+ if not breakpoint then
+ print("Program finished")
+ os.exit()
+ return -- use return here for those cases where os.exit() is not wanted
+ end
+ local _, _, status = string.find(breakpoint, "^(%d+)")
+ if status == "200" then
+ -- don't need to do anything
+ elseif status == "202" then
+ _, _, file, line = string.find(breakpoint, "^202 Paused%s+(.-)%s+(%d+)%s*$")
+ if file and line then
+ print("Paused at file " .. file .. " line " .. line)
+ end
+ elseif status == "203" then
+ _, _, file, line, watch_idx = string.find(breakpoint, "^203 Paused%s+(.-)%s+(%d+)%s+(%d+)%s*$")
+ if file and line and watch_idx then
+ print("Paused at file " .. file .. " line " .. line .. " (watch expression " .. watch_idx .. ": [" .. watches[watch_idx] .. "])")
+ end
+ elseif status == "204" then
+ local _, _, stream, size = string.find(breakpoint, "^204 Output (%w+) (%d+)$")
+ if stream and size then
+ local msg = client:receive(tonumber(size))
+ print(msg)
+ if outputs[stream] then outputs[stream](msg) end
+ -- this was just the output, so go back reading the response
+ done = false
+ end
+ elseif status == "401" then
+ local _, _, size = string.find(breakpoint, "^401 Error in Execution (%d+)$")
+ if size then
+ local msg = client:receive(tonumber(size))
+ print("Error in remote application: " .. msg)
+ os.exit(1)
+ return nil, nil, msg -- use return here for those cases where os.exit() is not wanted
+ end
+ else
+ print("Unknown error")
+ os.exit(1)
+ -- use return here for those cases where os.exit() is not wanted
+ return nil, nil, "Debugger error: unexpected response '" .. breakpoint .. "'"
+ end
+ if done then break end
+ end
+ elseif command == "setb" then
+ _, _, _, file, line = string.find(params, "^([a-z]+)%s+(.-)%s+(%d+)%s*$")
+ if file and line then
+ -- if this is a file name, and not a file source
+ if not file:find('^".*"$') then
+ file = string.gsub(file, "\\", "/") -- convert slash
+ file = removebasedir(file, basedir)
+ end
+ client:send("SETB " .. file .. " " .. line .. "\n")
+ if client:receive() == "200 OK" then
+ set_breakpoint(file, line)
+ else
+ print("Error: breakpoint not inserted")
+ end
+ else
+ print("Invalid command")
+ end
+ elseif command == "setw" then
+ local _, _, exp = string.find(params, "^[a-z]+%s+(.+)$")
+ if exp then
+ client:send("SETW " .. exp .. "\n")
+ local answer = client:receive()
+ local _, _, watch_idx = string.find(answer, "^200 OK (%d+)%s*$")
+ if watch_idx then
+ watches[watch_idx] = exp
+ print("Inserted watch exp no. " .. watch_idx)
+ else
+ local _, _, size = string.find(answer, "^401 Error in Expression (%d+)$")
+ if size then
+ local err = client:receive(tonumber(size)):gsub(".-:%d+:%s*","")
+ print("Error: watch expression not set: " .. err)
+ else
+ print("Error: watch expression not set")
+ end
+ end
+ else
+ print("Invalid command")
+ end
+ elseif command == "delb" then
+ _, _, _, file, line = string.find(params, "^([a-z]+)%s+(.-)%s+(%d+)%s*$")
+ if file and line then
+ -- if this is a file name, and not a file source
+ if not file:find('^".*"$') then
+ file = string.gsub(file, "\\", "/") -- convert slash
+ file = removebasedir(file, basedir)
+ end
+ client:send("DELB " .. file .. " " .. line .. "\n")
+ if client:receive() == "200 OK" then
+ remove_breakpoint(file, line)
+ else
+ print("Error: breakpoint not removed")
+ end
+ else
+ print("Invalid command")
+ end
+ elseif command == "delallb" then
+ for line, breaks in pairs(breakpoints) do
+ for file, _ in pairs(breaks) do
+ client:send("DELB " .. file .. " " .. line .. "\n")
+ if client:receive() == "200 OK" then
+ remove_breakpoint(file, line)
+ else
+ print("Error: breakpoint at file " .. file .. " line " .. line .. " not removed")
+ end
+ end
+ end
+ elseif command == "delw" then
+ local _, _, index = string.find(params, "^[a-z]+%s+(%d+)%s*$")
+ if index then
+ client:send("DELW " .. index .. "\n")
+ if client:receive() == "200 OK" then
+ watches[index] = nil
+ else
+ print("Error: watch expression not removed")
+ end
+ else
+ print("Invalid command")
+ end
+ elseif command == "delallw" then
+ for index, exp in pairs(watches) do
+ client:send("DELW " .. index .. "\n")
+ if client:receive() == "200 OK" then
+ watches[index] = nil
+ else
+ print("Error: watch expression at index " .. index .. " [" .. exp .. "] not removed")
+ end
+ end
+ elseif command == "eval" or command == "exec"
+ or command == "load" or command == "loadstring"
+ or command == "reload" then
+ local _, _, exp = string.find(params, "^[a-z]+%s+(.+)$")
+ if exp or (command == "reload") then
+ if command == "eval" or command == "exec" then
+ exp = (exp:gsub("%-%-%[(=*)%[.-%]%1%]", "") -- remove comments
+ :gsub("%-%-.-\n", " ") -- remove line comments
+ :gsub("\n", " ")) -- convert new lines
+ if command == "eval" then exp = "return " .. exp end
+ client:send("EXEC " .. exp .. "\n")
+ elseif command == "reload" then
+ client:send("LOAD 0 -\n")
+ elseif command == "loadstring" then
+ local _, _, _, file, lines = string.find(exp, "^([\"'])(.-)%1%s+(.+)")
+ if not file then
+ _, _, file, lines = string.find(exp, "^(%S+)%s+(.+)")
+ end
+ client:send("LOAD " .. #lines .. " " .. file .. "\n")
+ client:send(lines)
+ else
+ local file = io.open(exp, "r")
+ if not file and pcall(require, "winapi") then
+ -- if file is not open and winapi is there, try with a short path;
+ -- this may be needed for unicode paths on windows
+ winapi.set_encoding(winapi.CP_UTF8)
+ file = io.open(winapi.short_path(exp), "r")
+ end
+ if not file then error("Cannot open file " .. exp) end
+ -- read the file and remove the shebang line as it causes a compilation error
+ local lines = file:read("*all"):gsub("^#!.-\n", "\n")
+ file:close()
+
+ local file = string.gsub(exp, "\\", "/") -- convert slash
+ file = removebasedir(file, basedir)
+ client:send("LOAD " .. #lines .. " " .. file .. "\n")
+ if #lines > 0 then client:send(lines) end
+ end
+ while true do
+ local params, err = client:receive()
+ if not params then
+ return nil, nil, "Debugger connection " .. (err or "error")
+ end
+ local done = true
+ local _, _, status, len = string.find(params, "^(%d+).-%s+(%d+)%s*$")
+ if status == "200" then
+ len = tonumber(len)
+ if len > 0 then
+ local status, res
+ local str = client:receive(len)
+ -- handle serialized table with results
+ local func, err = loadstring(str)
+ if func then
+ status, res = pcall(func)
+ if not status then err = res
+ elseif type(res) ~= "table" then
+ err = "received "..type(res).." instead of expected 'table'"
+ end
+ end
+ if err then
+ print("Error in processing results: " .. err)
+ return nil, nil, "Error in processing results: " .. err
+ end
+ print(unpack(res))
+ return res[1], res
+ end
+ elseif status == "201" then
+ _, _, file, line = string.find(params, "^201 Started%s+(.-)%s+(%d+)%s*$")
+ elseif status == "202" or params == "200 OK" then
+ -- do nothing; this only happens when RE/LOAD command gets the response
+ -- that was for the original command that was aborted
+ elseif status == "204" then
+ local _, _, stream, size = string.find(params, "^204 Output (%w+) (%d+)$")
+ if stream and size then
+ local msg = client:receive(tonumber(size))
+ print(msg)
+ if outputs[stream] then outputs[stream](msg) end
+ -- this was just the output, so go back reading the response
+ done = false
+ end
+ elseif status == "401" then
+ len = tonumber(len)
+ local res = client:receive(len)
+ print("Error in expression: " .. res)
+ return nil, nil, res
+ else
+ print("Unknown error")
+ return nil, nil, "Debugger error: unexpected response after EXEC/LOAD '" .. params .. "'"
+ end
+ if done then break end
+ end
+ else
+ print("Invalid command")
+ end
+ elseif command == "listb" then
+ for l, v in pairs(breakpoints) do
+ for f in pairs(v) do
+ print(f .. ": " .. l)
+ end
+ end
+ elseif command == "listw" then
+ for i, v in pairs(watches) do
+ print("Watch exp. " .. i .. ": " .. v)
+ end
+ elseif command == "suspend" then
+ client:send("SUSPEND\n")
+ elseif command == "stack" then
+ client:send("STACK\n")
+ local resp = client:receive()
+ local _, _, status, res = string.find(resp, "^(%d+)%s+%w+%s+(.+)%s*$")
+ if status == "200" then
+ local func, err = loadstring(res)
+ if func == nil then
+ print("Error in stack information: " .. err)
+ return nil, nil, err
+ end
+ local ok, stack = pcall(func)
+ if not ok then
+ print("Error in stack information: " .. stack)
+ return nil, nil, stack
+ end
+ for _,frame in ipairs(stack) do
+ print(serpent.line(frame[1], {comment = false}))
+ end
+ return stack
+ elseif status == "401" then
+ local _, _, len = string.find(resp, "%s+(%d+)%s*$")
+ len = tonumber(len)
+ local res = len > 0 and client:receive(len) or "Invalid stack information."
+ print("Error in expression: " .. res)
+ return nil, nil, res
+ else
+ print("Unknown error")
+ return nil, nil, "Debugger error: unexpected response after STACK"
+ end
+ elseif command == "output" then
+ local _, _, stream, mode = string.find(params, "^[a-z]+%s+(%w+)%s+([dcr])%s*$")
+ if stream and mode then
+ client:send("OUTPUT "..stream.." "..mode.."\n")
+ local resp = client:receive()
+ local _, _, status = string.find(resp, "^(%d+)%s+%w+%s*$")
+ if status == "200" then
+ print("Stream "..stream.." redirected")
+ outputs[stream] = type(options) == 'table' and options.handler or nil
+ else
+ print("Unknown error")
+ return nil, nil, "Debugger error: can't redirect "..stream
+ end
+ else
+ print("Invalid command")
+ end
+ elseif command == "basedir" then
+ local _, _, dir = string.find(params, "^[a-z]+%s+(.+)$")
+ if dir then
+ dir = string.gsub(dir, "\\", "/") -- convert slash
+ if not string.find(dir, "/$") then dir = dir .. "/" end
+
+ local remdir = dir:match("\t(.+)")
+ if remdir then dir = dir:gsub("/?\t.+", "/") end
+ basedir = dir
+
+ client:send("BASEDIR "..(remdir or dir).."\n")
+ local resp = client:receive()
+ local _, _, status = string.find(resp, "^(%d+)%s+%w+%s*$")
+ if status == "200" then
+ print("New base directory is " .. basedir)
+ else
+ print("Unknown error")
+ return nil, nil, "Debugger error: unexpected response after BASEDIR"
+ end
+ else
+ print(basedir)
+ end
+ elseif command == "help" then
+ print("setb -- sets a breakpoint")
+ print("delb -- removes a breakpoint")
+ print("delallb -- removes all breakpoints")
+ print("setw -- adds a new watch expression")
+ print("delw -- removes the watch expression at index")
+ print("delallw -- removes all watch expressions")
+ print("run -- runs until next breakpoint")
+ print("step -- runs until next line, stepping into function calls")
+ print("over -- runs until next line, stepping over function calls")
+ print("out -- runs until line after returning from current function")
+ print("listb -- lists breakpoints")
+ print("listw -- lists watch expressions")
+ print("eval -- evaluates expression on the current context and returns its value")
+ print("exec -- executes statement on the current context")
+ print("load -- loads a local file for debugging")
+ print("reload -- restarts the current debugging session")
+ print("stack -- reports stack trace")
+ print("output stdout -- capture and redirect io stream (default|copy|redirect)")
+ print("basedir [] -- sets the base path of the remote application, or shows the current one")
+ print("exit -- exits debugger")
+ else
+ local _, _, spaces = string.find(params, "^(%s*)$")
+ if not spaces then
+ print("Invalid command")
+ return nil, nil, "Invalid command"
+ end
+ end
+ return file, line
+end
+
+-- Starts debugging server
+local function listen(host, port)
+ host = host or "*"
+ port = port or mobdebug.port
+
+ local socket = require "socket"
+
+ print("Lua Remote Debugger")
+ print("Run the program you wish to debug")
+
+ local server = socket.bind(host, port)
+ local client = server:accept()
+
+ client:send("STEP\n")
+ client:receive()
+
+ local breakpoint = client:receive()
+ local _, _, file, line = string.find(breakpoint, "^202 Paused%s+(.-)%s+(%d+)%s*$")
+ if file and line then
+ print("Paused at file " .. file )
+ print("Type 'help' for commands")
+ else
+ local _, _, size = string.find(breakpoint, "^401 Error in Execution (%d+)%s*$")
+ if size then
+ print("Error in remote application: ")
+ print(client:receive(size))
+ end
+ end
+
+ while true do
+ io.write("> ")
+ local line = io.read("*line")
+ handle(line, client)
+ end
+end
+
+local cocreate
+local function coro()
+ if cocreate then return end -- only set once
+ cocreate = cocreate or coroutine.create
+ coroutine.create = function(f, ...)
+ return cocreate(function(...)
+ require("mobdebug").on()
+ return f(...)
+ end, ...)
+ end
+end
+
+local moconew
+local function moai()
+ if moconew then return end -- only set once
+ moconew = moconew or (MOAICoroutine and MOAICoroutine.new)
+ if not moconew then return end
+ MOAICoroutine.new = function(...)
+ local thread = moconew(...)
+ -- need to support both thread.run and getmetatable(thread).run, which
+ -- was used in earlier MOAI versions
+ local mt = thread.run and thread or getmetatable(thread)
+ local patched = mt.run
+ mt.run = function(self, f, ...)
+ return patched(self, function(...)
+ require("mobdebug").on()
+ return f(...)
+ end, ...)
+ end
+ return thread
+ end
+end
+
+-- this is a function that removes all hooks and closes the socket to
+-- report back to the controller that the debugging is done.
+-- the script that called `done` can still continue.
+local function done()
+ if not (isrunning() and server) then return end
+
+ if not jit then
+ for co, debugged in pairs(coroutines) do
+ if debugged then debug.sethook(co) end
+ end
+ end
+
+ debug.sethook()
+ server:close()
+
+ coro_debugger = nil -- to make sure isrunning() returns `false`
+ seen_hook = nil -- to make sure that the next start() call works
+ abort = nil -- to make sure that callback calls use proper "abort" value
+end
+
+-- make public functions available
+mobdebug.listen = listen
+mobdebug.loop = loop
+mobdebug.scratchpad = scratchpad
+mobdebug.handle = handle
+mobdebug.connect = connect
+mobdebug.start = start
+mobdebug.on = on
+mobdebug.off = off
+mobdebug.moai = moai
+mobdebug.coro = coro
+mobdebug.done = done
+mobdebug.line = serpent.line
+mobdebug.dump = serpent.dump
+mobdebug.yield = nil -- callback
+
+-- this is needed to make "require 'modebug'" to work when mobdebug
+-- module is loaded manually
+package.loaded.mobdebug = mobdebug
+
+return mobdebug
diff --git a/samples/lua-tests/project/CMakeLists.txt b/tests/lua-tests/project/CMakeLists.txt
similarity index 89%
rename from samples/lua-tests/project/CMakeLists.txt
rename to tests/lua-tests/project/CMakeLists.txt
index d17275aed1..529f65ba26 100644
--- a/samples/lua-tests/project/CMakeLists.txt
+++ b/tests/lua-tests/project/CMakeLists.txt
@@ -1,4 +1,4 @@
-set(APP_NAME testlua)
+set(APP_NAME lua-tests)
set(SAMPLE_SRC
proj.linux/main.cpp
@@ -36,9 +36,9 @@ set_target_properties(${APP_NAME} PROPERTIES
pre_build(${APP_NAME}
COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}/Resources
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../res ${APP_BIN_DIR}/Resources/res
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../src ${APP_BIN_DIR}/Resources/src
- COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../res ${APP_BIN_DIR}/Resources
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script ${APP_BIN_DIR}/Resources
- COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/samples/cpp-tests/Resources ${APP_BIN_DIR}/Resources
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/tests/cpp-tests/Resources ${APP_BIN_DIR}/Resources/res
)
diff --git a/samples/lua-tests/project/Classes/AppDelegate.cpp b/tests/lua-tests/project/Classes/AppDelegate.cpp
similarity index 94%
rename from samples/lua-tests/project/Classes/AppDelegate.cpp
rename to tests/lua-tests/project/Classes/AppDelegate.cpp
index a096268e98..565de6fb6a 100644
--- a/samples/lua-tests/project/Classes/AppDelegate.cpp
+++ b/tests/lua-tests/project/Classes/AppDelegate.cpp
@@ -22,7 +22,7 @@ bool AppDelegate::applicationDidFinishLaunching()
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
if(!glview) {
- glview = GLView::createWithRect("Test Lua", Rect(0,0,900,640));
+ glview = GLView::createWithRect("Lua Tests", Rect(0,0,900,640));
director->setOpenGLView(glview);
}
@@ -58,11 +58,15 @@ bool AppDelegate::applicationDidFinishLaunching()
register_assetsmanager_test_sample(stack->getLuaState());
#endif
+#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
std::string resPrefix("");
+#else
+ std::string resPrefix("res/");
+#endif
std::vector searchPaths = pFileUtils->getSearchPaths();
searchPaths.insert(searchPaths.begin(), resPrefix);
- searchPaths.insert(searchPaths.begin(), resPrefix + "Images");
+
searchPaths.insert(searchPaths.begin(), resPrefix + "cocosbuilderRes");
if (screenSize.height > 320)
{
@@ -81,6 +85,7 @@ bool AppDelegate::applicationDidFinishLaunching()
}
else
{
+ searchPaths.insert(searchPaths.begin(), resPrefix + "Images");
searchPaths.insert(searchPaths.begin(), resPrefix + "scenetest/ArmatureComponentTest");
searchPaths.insert(searchPaths.begin(), resPrefix + "scenetest/AttributeComponentTest");
searchPaths.insert(searchPaths.begin(), resPrefix + "scenetest/BackgroundComponentTest");
diff --git a/samples/lua-tests/project/Classes/AppDelegate.h b/tests/lua-tests/project/Classes/AppDelegate.h
similarity index 100%
rename from samples/lua-tests/project/Classes/AppDelegate.h
rename to tests/lua-tests/project/Classes/AppDelegate.h
diff --git a/samples/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp b/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp
similarity index 100%
rename from samples/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp
rename to tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp
diff --git a/samples/lua-tests/project/Classes/lua_assetsmanager_test_sample.h b/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.h
similarity index 100%
rename from samples/lua-tests/project/Classes/lua_assetsmanager_test_sample.h
rename to tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.h
diff --git a/tests/lua-tests/project/proj.android/.classpath b/tests/lua-tests/project/proj.android/.classpath
new file mode 100644
index 0000000000..0b08408342
--- /dev/null
+++ b/tests/lua-tests/project/proj.android/.classpath
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/samples/lua-tests/project/proj.android/.project b/tests/lua-tests/project/proj.android/.project
similarity index 98%
rename from samples/lua-tests/project/proj.android/.project
rename to tests/lua-tests/project/proj.android/.project
index fac9edb71e..f9c398d167 100644
--- a/samples/lua-tests/project/proj.android/.project
+++ b/tests/lua-tests/project/proj.android/.project
@@ -1,6 +1,6 @@
- TestLua
+ LuaTests
diff --git a/tests/lua-tests/project/proj.android/AndroidManifest.xml b/tests/lua-tests/project/proj.android/AndroidManifest.xml
new file mode 100644
index 0000000000..7a04f7e9fe
--- /dev/null
+++ b/tests/lua-tests/project/proj.android/AndroidManifest.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/lua-tests/project/proj.android/ant.properties b/tests/lua-tests/project/proj.android/ant.properties
new file mode 100644
index 0000000000..b0971e891e
--- /dev/null
+++ b/tests/lua-tests/project/proj.android/ant.properties
@@ -0,0 +1,17 @@
+# This file is used to override default values used by the Ant build system.
+#
+# This file must be checked into 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.
+
diff --git a/samples/cpp-tests/proj.android/build.xml b/tests/lua-tests/project/proj.android/build.xml
similarity index 98%
rename from samples/cpp-tests/proj.android/build.xml
rename to tests/lua-tests/project/proj.android/build.xml
index 0ab7005e21..bede39f114 100644
--- a/samples/cpp-tests/proj.android/build.xml
+++ b/tests/lua-tests/project/proj.android/build.xml
@@ -1,5 +1,5 @@
-
+