From c2ab8e191ddec6716395d90f046ce052a5ca696a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 25 Jun 2014 19:18:46 -0400 Subject: [PATCH] Unit Tests - Migrated a modified copy of path.t.cpp from Taskwarrior. --- test/.gitignore | 1 + test/CMakeLists.txt | 3 ++- test/path.t.cpp | 3 --- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test/.gitignore b/test/.gitignore index 0c658db..58d3670 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -1,3 +1,4 @@ run_all all.log color.t +path.t diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 974b505..7fd1fd5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -4,7 +4,7 @@ include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/test ${TASKSH_INCLUDE_DIRS}) -set (test_SRCS color.t) +set (test_SRCS color.t path.t) message ("-- Configuring run_all") if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) @@ -35,6 +35,7 @@ add_custom_target (build_tests DEPENDS ${test_SRCS} foreach (src_FILE ${test_SRCS}) add_executable (${src_FILE} "${src_FILE}.cpp" ../src/Color.cpp + ../src/Path.cpp ../src/text.cpp test.cpp) target_link_libraries (${src_FILE} ${TASKSH_LIBRARIES}) diff --git a/test/path.t.cpp b/test/path.t.cpp index 558caf9..4eba463 100644 --- a/test/path.t.cpp +++ b/test/path.t.cpp @@ -26,13 +26,10 @@ #include #include -#include #include #include #include -Context context; - int main (int argc, char** argv) { UnitTest t (32);