From 3d164a77cb1057e982f3217a505cb21eadf46535 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 13 Mar 2016 18:22:35 +0100 Subject: SelfTests: Organized into solution folders. --- tests/LoadablePieces/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/LoadablePieces') diff --git a/tests/LoadablePieces/CMakeLists.txt b/tests/LoadablePieces/CMakeLists.txt index 16a89633a..c467d7c38 100644 --- a/tests/LoadablePieces/CMakeLists.txt +++ b/tests/LoadablePieces/CMakeLists.txt @@ -98,3 +98,8 @@ add_test(NAME LoadablePieces-test WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +# Put the projects into solution folders (MSVC): +set_target_properties( + LoadablePieces + PROPERTIES FOLDER Tests +) -- cgit v1.2.3 From 36eefbf0f25c93ed30bcff9d7abbb8b8696964df Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 10 Jun 2016 20:18:49 +0200 Subject: SelfTests: Removed the unneeded cSelfTests class. --- tests/LoadablePieces/Stubs.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'tests/LoadablePieces') diff --git a/tests/LoadablePieces/Stubs.cpp b/tests/LoadablePieces/Stubs.cpp index 5fbd7b599..717b5679c 100644 --- a/tests/LoadablePieces/Stubs.cpp +++ b/tests/LoadablePieces/Stubs.cpp @@ -6,7 +6,6 @@ #include "Globals.h" #include "BlockInfo.h" -#include "SelfTests.h" #include "Bindings.h" #include "Bindings/DeprecatedBindings.h" #include "Bindings/LuaJson.h" @@ -272,30 +271,3 @@ cBlockEntity * cBlockEntity::CreateByBlockType(BLOCKTYPE a_BlockType, NIBBLETYPE - -cSelfTests::cSelfTests(void): - m_AllowRegistering(true) -{ -} - - - - - -cSelfTests & cSelfTests::Get(void) -{ - static cSelfTests singleton; - return singleton; -} - - - - - -void cSelfTests::Register(cSelfTests::SelfTestFunction a_TestFn, const AString & a_TestName) -{ -} - - - - -- cgit v1.2.3 From ea47247dc72a7ee44f97628e45c5b6867f46bedf Mon Sep 17 00:00:00 2001 From: Mattes D Date: Thu, 16 Jun 2016 17:34:17 +0200 Subject: SelfTests: Print a quick message on test start. --- tests/LoadablePieces/LoadablePieces.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/LoadablePieces') diff --git a/tests/LoadablePieces/LoadablePieces.cpp b/tests/LoadablePieces/LoadablePieces.cpp index cce43eee1..c4c44e3db 100644 --- a/tests/LoadablePieces/LoadablePieces.cpp +++ b/tests/LoadablePieces/LoadablePieces.cpp @@ -41,6 +41,8 @@ static int DoTest(void) int main(int argc, char * argv[]) { + LOGD("Test started"); + // Print the current directory for reference: char folder[FILENAME_MAX]; GetCurrentFolder(folder, sizeof(folder)); -- cgit v1.2.3