diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-22 21:16:02 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-22 21:19:21 +0000 |
commit | fb8197839c0bebc20fd68ee3f280da934c49c473 (patch) | |
tree | e4ccb024144cb5b41f9e572984e3278c2b0b51d0 /tests | |
parent | d6b25272499352383214c738faa8ce1870df37f3 (diff) | |
download | YAGE-fb8197839c0bebc20fd68ee3f280da934c49c473.tar.gz YAGE-fb8197839c0bebc20fd68ee3f280da934c49c473.zip |
Removing editor and refactoring code.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 33 | ||||
-rw-r--r-- | tests/active/test.cpp (renamed from tests/activetest.cpp) | 0 | ||||
-rw-r--r-- | tests/log/test.cpp (renamed from tests/logtest.cpp) | 0 | ||||
-rw-r--r-- | tests/matrix/test.cpp (renamed from tests/matrixtest.cpp) | 0 | ||||
-rw-r--r-- | tests/particlebody/test.cpp (renamed from tests/particlebodytest.cpp) | 0 | ||||
-rw-r--r-- | tests/rendertest.cpp | 13 | ||||
-rw-r--r-- | tests/rendertest.h | 19 | ||||
-rw-r--r-- | tests/resources/dngn_blood_fountain.png | bin | 955 -> 0 bytes | |||
-rw-r--r-- | tests/resources/simplegame.frag | 0 | ||||
-rw-r--r-- | tests/resources/simplegame.vert | 0 | ||||
-rw-r--r-- | tests/struct/test.cpp (renamed from tests/structtest.cpp) | 0 | ||||
-rw-r--r-- | tests/syncqueue/test.cpp (renamed from tests/syncqueuetest.cpp) | 0 | ||||
-rw-r--r-- | tests/thread/test.cpp (renamed from tests/threadtest.cpp) | 0 | ||||
-rw-r--r-- | tests/vector3/test.cpp (renamed from tests/vector3test.cpp) | 0 | ||||
-rw-r--r-- | tests/vector4/test.cpp (renamed from tests/vector4test.cpp) | 0 | ||||
-rw-r--r-- | tests/window/test.cpp (renamed from tests/windowtest.cpp) | 0 | ||||
-rw-r--r-- | tests/yage/test.cpp (renamed from tests/yagetest.cpp) | 0 |
17 files changed, 15 insertions, 50 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 613e0bdb..36afa574 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -8,30 +8,27 @@ set(BUILD_GMOCK OFF CACHE BOOL "" FORCE) # the gtest and gtest_main targets. add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/external/googletest) -add_executable(simplegame simplegame.cpp) -target_link_libraries(simplegame yage) - # enable tests enable_testing() set(SIMULATION_RUNS 1000) function(make_test test_name cycles) - add_executable(${test_name} ${test_name}.cpp) - target_link_libraries(${test_name} + add_executable("${test_name}test" ${test_name}/test.cpp) + target_link_libraries("${test_name}test" gtest_main yage) - add_test(NAME ${test_name} COMMAND ${test_name} --gtest_repeat=${cycles} --gtest_break_on_failure) + add_test(NAME ${test_name} COMMAND "${test_name}test" --gtest_repeat=${cycles} --gtest_break_on_failure) endfunction(make_test) -make_test(yagetest 1) -make_test(matrixtest ${SIMULATION_RUNS}) -make_test(particlebodytest 100) -make_test(windowtest ${SIMULATION_RUNS}) -make_test(spritesheettest ${SIMULATION_RUNS}) -make_test(vector3test ${SIMULATION_RUNS}) -make_test(vector4test ${SIMULATION_RUNS}) -make_test(logtest 1) -make_test(threadtest 1) -make_test(syncqueuetest 1) -make_test(activetest 1) -make_test(structtest ${SIMULATION_RUNS}) +make_test(yage 1) +make_test(matrix ${SIMULATION_RUNS}) +make_test(particlebody 100) +make_test(window ${SIMULATION_RUNS}) +make_test(spritesheet ${SIMULATION_RUNS}) +make_test(vector3 ${SIMULATION_RUNS}) +make_test(vector4 ${SIMULATION_RUNS}) +make_test(log 1) +make_test(thread 1) +make_test(syncqueue 1) +make_test(active 1) +make_test(struct ${SIMULATION_RUNS}) diff --git a/tests/activetest.cpp b/tests/active/test.cpp index 3d561283..3d561283 100644 --- a/tests/activetest.cpp +++ b/tests/active/test.cpp diff --git a/tests/logtest.cpp b/tests/log/test.cpp index e1010754..e1010754 100644 --- a/tests/logtest.cpp +++ b/tests/log/test.cpp diff --git a/tests/matrixtest.cpp b/tests/matrix/test.cpp index 1e316502..1e316502 100644 --- a/tests/matrixtest.cpp +++ b/tests/matrix/test.cpp diff --git a/tests/particlebodytest.cpp b/tests/particlebody/test.cpp index 09277826..09277826 100644 --- a/tests/particlebodytest.cpp +++ b/tests/particlebody/test.cpp diff --git a/tests/rendertest.cpp b/tests/rendertest.cpp deleted file mode 100644 index 74476ef8..00000000 --- a/tests/rendertest.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/** --------------------------------------------------------------------------- - * @file: rendertest.cpp - * - * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> - * MIT License, see LICENSE file for more details. - * ---------------------------------------------------------------------------- - */ - -#include "rendertest.h" - -RenderTest::RenderTest(std::string sprite) : sprite_(sprite) {} - -void RenderTest::render() {} diff --git a/tests/rendertest.h b/tests/rendertest.h deleted file mode 100644 index db0e06e2..00000000 --- a/tests/rendertest.h +++ /dev/null @@ -1,19 +0,0 @@ -/** --------------------------------------------------------------------------- - * @file: rendertest.h - * - * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> - * MIT License, see LICENSE file for more details. - * ---------------------------------------------------------------------------- - */ - -#include <string> - -class RenderTest -{ -public: - RenderTest(std::string sprite); - void render(); - -private: - std::string sprite_; -}; diff --git a/tests/resources/dngn_blood_fountain.png b/tests/resources/dngn_blood_fountain.png Binary files differdeleted file mode 100644 index 7214fd47..00000000 --- a/tests/resources/dngn_blood_fountain.png +++ /dev/null diff --git a/tests/resources/simplegame.frag b/tests/resources/simplegame.frag deleted file mode 100644 index e69de29b..00000000 --- a/tests/resources/simplegame.frag +++ /dev/null diff --git a/tests/resources/simplegame.vert b/tests/resources/simplegame.vert deleted file mode 100644 index e69de29b..00000000 --- a/tests/resources/simplegame.vert +++ /dev/null diff --git a/tests/structtest.cpp b/tests/struct/test.cpp index 99752abb..99752abb 100644 --- a/tests/structtest.cpp +++ b/tests/struct/test.cpp diff --git a/tests/syncqueuetest.cpp b/tests/syncqueue/test.cpp index 1d7d8037..1d7d8037 100644 --- a/tests/syncqueuetest.cpp +++ b/tests/syncqueue/test.cpp diff --git a/tests/threadtest.cpp b/tests/thread/test.cpp index 0527665a..0527665a 100644 --- a/tests/threadtest.cpp +++ b/tests/thread/test.cpp diff --git a/tests/vector3test.cpp b/tests/vector3/test.cpp index 570a5c10..570a5c10 100644 --- a/tests/vector3test.cpp +++ b/tests/vector3/test.cpp diff --git a/tests/vector4test.cpp b/tests/vector4/test.cpp index 53554a25..53554a25 100644 --- a/tests/vector4test.cpp +++ b/tests/vector4/test.cpp diff --git a/tests/windowtest.cpp b/tests/window/test.cpp index 40b7e664..40b7e664 100644 --- a/tests/windowtest.cpp +++ b/tests/window/test.cpp diff --git a/tests/yagetest.cpp b/tests/yage/test.cpp index a599eba2..a599eba2 100644 --- a/tests/yagetest.cpp +++ b/tests/yage/test.cpp |