From a0dd31f23fe969af994b1be9c456ab55d9493440 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Tue, 20 Feb 2024 10:15:36 -0600 Subject: [PATCH] Move unit tests into directory Signed-off-by: Andrew Davis --- CMakeLists.txt | 11 ++++++----- src/{ => unit}/allocate_test.cpp | 0 src/{ => unit}/exit_test.cpp | 0 src/{ => unit}/heap_test_fixture.cpp | 0 src/{ => unit}/heap_test_fixture.h | 0 src/{ => unit}/invalid_values_test.cpp | 0 src/{ => unit}/map_test.cpp | 0 7 files changed, 6 insertions(+), 5 deletions(-) rename src/{ => unit}/allocate_test.cpp (100%) rename src/{ => unit}/exit_test.cpp (100%) rename src/{ => unit}/heap_test_fixture.cpp (100%) rename src/{ => unit}/heap_test_fixture.h (100%) rename src/{ => unit}/invalid_values_test.cpp (100%) rename src/{ => unit}/map_test.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index caaec5a..61aec61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,15 +7,16 @@ find_package(PkgConfig REQUIRED) find_package(GTest REQUIRED) add_executable(dma-heap-unit-tests - src/heap_test_fixture.cpp - src/allocate_test.cpp - src/exit_test.cpp - src/invalid_values_test.cpp - src/map_test.cpp + src/unit/heap_test_fixture.cpp + src/unit/allocate_test.cpp + src/unit/exit_test.cpp + src/unit/invalid_values_test.cpp + src/unit/map_test.cpp ) target_include_directories(dma-heap-unit-tests PRIVATE ${GTEST_INCLUDE_DIR} + PRIVATE src/ ) target_link_libraries(dma-heap-unit-tests diff --git a/src/allocate_test.cpp b/src/unit/allocate_test.cpp similarity index 100% rename from src/allocate_test.cpp rename to src/unit/allocate_test.cpp diff --git a/src/exit_test.cpp b/src/unit/exit_test.cpp similarity index 100% rename from src/exit_test.cpp rename to src/unit/exit_test.cpp diff --git a/src/heap_test_fixture.cpp b/src/unit/heap_test_fixture.cpp similarity index 100% rename from src/heap_test_fixture.cpp rename to src/unit/heap_test_fixture.cpp diff --git a/src/heap_test_fixture.h b/src/unit/heap_test_fixture.h similarity index 100% rename from src/heap_test_fixture.h rename to src/unit/heap_test_fixture.h diff --git a/src/invalid_values_test.cpp b/src/unit/invalid_values_test.cpp similarity index 100% rename from src/invalid_values_test.cpp rename to src/unit/invalid_values_test.cpp diff --git a/src/map_test.cpp b/src/unit/map_test.cpp similarity index 100% rename from src/map_test.cpp rename to src/unit/map_test.cpp