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