From 2eef3d36f42debbd9070abb4a49d6b4986fa6246 Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Fri, 8 Dec 2023 23:01:30 -0600 Subject: [PATCH] Removed Unity testing --- CMakeLists.txt | 4 ---- test/CMakeLists.txt | 7 ------- test/test.cpp | 21 --------------------- 3 files changed, 32 deletions(-) delete mode 100644 test/CMakeLists.txt delete mode 100644 test/test.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 56dd117..8d38b66 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,3 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) add_subdirectory(src) - -if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") - add_subdirectory(test) -endif() diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt deleted file mode 100644 index 8a65233..0000000 --- a/test/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -find_package(unity REQUIRED) -include_directories(${CMAKE_SOURCE_DIR}/src) -add_executable(testing - test.cpp -) -set_target_properties(testing PROPERTIES LINKER_LANGUAGE CXX) -target_link_libraries(testing unity) diff --git a/test/test.cpp b/test/test.cpp deleted file mode 100644 index 6668b68..0000000 --- a/test/test.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include -#include - -void setUp() { ; } -void tearDown() { ; } - -int Math(void) { - return 2+2; -} - -void test_Math(void) { - TEST_ASSERT_EQUAL_INT(4, Math()); -} - - -int main(void) { - UNITY_BEGIN(); - RUN_TEST(test_Math); - return UNITY_END(); -} -