mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-08-19 19:03:10 +02:00
Unit Tests
- Now build and run the color tests.
This commit is contained in:
parent
eb915bd054
commit
1647ca6b4d
10 changed files with 336 additions and 9 deletions
2
test/.gitignore
vendored
2
test/.gitignore
vendored
|
@ -1 +1,3 @@
|
|||
run_all
|
||||
all.log
|
||||
color.t
|
||||
|
|
|
@ -33,11 +33,10 @@ add_custom_target (build_tests DEPENDS ${test_SRCS}
|
|||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test)
|
||||
|
||||
foreach (src_FILE ${test_SRCS})
|
||||
add_executable (${src_FILE} "${src_FILE}.cpp" test.cpp)
|
||||
target_link_libraries (${src_FILE} tasksh ${TASKSH_LIBRARIES})
|
||||
add_executable (${src_FILE} "${src_FILE}.cpp"
|
||||
../src/Color.cpp
|
||||
../src/text.cpp
|
||||
test.cpp)
|
||||
target_link_libraries (${src_FILE} ${TASKSH_LIBRARIES})
|
||||
endforeach (src_FILE)
|
||||
|
||||
#SET(CMAKE_BUILD_TYPE gcov)
|
||||
#SET(CMAKE_CXX_FLAGS_GCOV "--coverage")
|
||||
#SET(CMAKE_C_FLAGS_GCOV "--coverage")
|
||||
#SET(CMAKE_EXE_LINKER_FLAGS_GCOV "--coverage")
|
||||
|
|
|
@ -48,7 +48,7 @@ my $ut = basename ($0);
|
|||
# Bug <id> - <description>
|
||||
my $output = qx{../src/tasksh --version 2>&1};
|
||||
ok ($? == 0, "$ut: version check");
|
||||
like ($output, qr/tasksh version/ms, "$ut: tasksh version found");
|
||||
like ($output, qr/0.9.0.dev/ms, "$ut: tasksh version found");
|
||||
|
||||
# Cleanup.
|
||||
#unlink qw(), $rc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue