diff --git a/test/.gitignore b/test/.gitignore index 58d3670..fa46608 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -2,3 +2,4 @@ run_all all.log color.t path.t +file.t diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7fd1fd5..09b5f9a 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 path.t) +set (test_SRCS color.t path.t file.t) message ("-- Configuring run_all") if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) @@ -36,6 +36,7 @@ foreach (src_FILE ${test_SRCS}) add_executable (${src_FILE} "${src_FILE}.cpp" ../src/Color.cpp ../src/Path.cpp + ../src/File.cpp ../src/text.cpp test.cpp) target_link_libraries (${src_FILE} ${TASKSH_LIBRARIES}) diff --git a/test/file.t.cpp b/test/file.t.cpp index 5351c0d..a8ee121 100644 --- a/test/file.t.cpp +++ b/test/file.t.cpp @@ -26,13 +26,10 @@ #include #include -#include #include #include #include -Context context; - int main (int argc, char** argv) { UnitTest t (27);