mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
Unit Tests
- Migrated a modified copy of directory.t.cpp from Taskwarrior.
This commit is contained in:
parent
25dfe351b4
commit
1480e54986
3 changed files with 3 additions and 4 deletions
1
test/.gitignore
vendored
1
test/.gitignore
vendored
|
@ -3,3 +3,4 @@ all.log
|
||||||
color.t
|
color.t
|
||||||
path.t
|
path.t
|
||||||
file.t
|
file.t
|
||||||
|
directory.t
|
||||||
|
|
|
@ -4,7 +4,7 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/test
|
${CMAKE_SOURCE_DIR}/test
|
||||||
${TASKSH_INCLUDE_DIRS})
|
${TASKSH_INCLUDE_DIRS})
|
||||||
|
|
||||||
set (test_SRCS color.t path.t file.t)
|
set (test_SRCS color.t path.t file.t directory.t)
|
||||||
|
|
||||||
message ("-- Configuring run_all")
|
message ("-- Configuring run_all")
|
||||||
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||||
|
@ -37,6 +37,7 @@ foreach (src_FILE ${test_SRCS})
|
||||||
../src/Color.cpp
|
../src/Color.cpp
|
||||||
../src/Path.cpp
|
../src/Path.cpp
|
||||||
../src/File.cpp
|
../src/File.cpp
|
||||||
|
../src/Directory.cpp
|
||||||
../src/text.cpp
|
../src/text.cpp
|
||||||
test.cpp)
|
test.cpp)
|
||||||
target_link_libraries (${src_FILE} ${TASKSH_LIBRARIES})
|
target_link_libraries (${src_FILE} ${TASKSH_LIBRARIES})
|
||||||
|
|
|
@ -27,12 +27,9 @@
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <Context.h>
|
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
#include <test.h>
|
#include <test.h>
|
||||||
|
|
||||||
Context context;
|
|
||||||
|
|
||||||
int main (int argc, char** argv)
|
int main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
UnitTest t (49);
|
UnitTest t (49);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue