From 4327629277fe7806495c3e68e4c116da10d81313 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 8 Sep 2015 20:00:45 +0200 Subject: unitestified the progress bar test (well, we cannot see anything though) --- CMakeLists.txt | 2 ++ tests/CMakeLists.txt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f62ffe..d82ed89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,8 @@ set( CSSH_VERSION 0.0.1 ) set(CMAKE_C_FLAGS "-std=c99 -Wall -pedantic -Wfatal-errors -Werror -fPIC -O0 -Wno-unused-but-set-variable -g -D_XOPEN_SOURCE=700") +enable_testing( ) + add_subdirectory(src) add_subdirectory(tests) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f3becb6..fb9e6c2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,5 +2,6 @@ include_directories(../src) add_executable(progressbartest progressbartest.c ../src/progressbar.c ../src/port.c) -target_link_libraries(progressbartest ncurses) +target_link_libraries(progressbartest) +add_test(ProgressBarPool progressbartest) -- cgit v1.2.3-54-g00ecf