mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-07-07 20:06:42 +02:00
Unit Tests
- Migrated a modified copy of file.t.cpp from Taskwarrior.
This commit is contained in:
parent
c2ab8e191d
commit
25dfe351b4
3 changed files with 3 additions and 4 deletions
1
test/.gitignore
vendored
1
test/.gitignore
vendored
|
@ -2,3 +2,4 @@ run_all
|
|||
all.log
|
||||
color.t
|
||||
path.t
|
||||
file.t
|
||||
|
|
|
@ -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})
|
||||
|
|
|
@ -26,13 +26,10 @@
|
|||
|
||||
#include <cmake.h>
|
||||
#include <stdlib.h>
|
||||
#include <Context.h>
|
||||
#include <File.h>
|
||||
#include <Directory.h>
|
||||
#include <test.h>
|
||||
|
||||
Context context;
|
||||
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (27);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue