diff --git a/.travis.yml b/.travis.yml index 9eb9148f..f255c9df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,3 +22,4 @@ before_script: script: - "cmake .. -DBUILD_BOOST=ON -DEXT_GLIBMM=ON -DCMAKE_DEBUG_INCLUDES_LDFLAGS=ON -DENABLE_MATHTEX=ON -DENABLE_OS=ON -DENABLE_CPPUNIT=ON -DUNSTABLE_LAYERS_SIDEBAR=ON" - "make" + - "make test" diff --git a/CMakeLists.txt b/CMakeLists.txt index c941f067..52f07a0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,7 @@ set (PACKAGE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share") option (ENABLE_CPPUNIT "Build CppUnit test instead of xournalpp application" OFF) if (ENABLE_CPPUNIT) pkg_check_modules (CppUnit REQUIRED "cppunit >= 1.12-0") + enable_testing () endif (ENABLE_CPPUNIT) # Overlay scrollbar diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index f51fd879..276fff9a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -40,3 +40,6 @@ target_link_libraries (xournalpp-test ${xournalpp_LDFLAGS} ${CppUnit_LDFLAGS} ) + +## CTest ## +add_test (cpp-unit xournalpp-test)