aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-02-27 18:51:53 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-27 18:51:53 -0300
commit4600b9c0359b531affefd1ba11d82f7493a6f8c2 (patch)
treeec0858b274905b9ed4cae8fd4c40307faec12f6a
parentba7e4f0c0cde3263653f06f962e0b5f7c497780d (diff)
downloadrneovim-4600b9c0359b531affefd1ba11d82f7493a6f8c2.tar.gz
rneovim-4600b9c0359b531affefd1ba11d82f7493a6f8c2.tar.bz2
rneovim-4600b9c0359b531affefd1ba11d82f7493a6f8c2.zip
Add unit test running to travis again
-rwxr-xr-xscripts/travis.sh4
-rw-r--r--src/CMakeLists.txt10
2 files changed, 7 insertions, 7 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh
index 33865e89d4..05747a18aa 100755
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -1,9 +1,9 @@
#!/bin/sh -e
-export VALGRIND_CHECK=1
+# export VALGRIND_CHECK=1
make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist"
make
-# make unittest
+make unittest
echo "Running tests with valgrind..."
if ! make test > /dev/null; then
if ls src/testdir/valgrind.* > /dev/null 2>&1; then
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 61934eb68f..aa1100032a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -13,7 +13,7 @@ list(APPEND NEOVIM_SOURCES "${PROJECT_BINARY_DIR}/config/auto/pathdef.c")
file( GLOB OS_SOURCES os/*.c )
add_executable (nvim ${NEOVIM_SOURCES} ${OS_SOURCES})
-# add_library (nvim-test SHARED ${NEOVIM_SOURCES} ${OS_SOURCES})
+add_library (nvim-test SHARED ${NEOVIM_SOURCES} ${OS_SOURCES})
# The libraries we link against for nvim
set(NVIM_LINK_LIBRARIES m ${LibUV_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
@@ -29,23 +29,23 @@ if (LibIntl_FOUND)
endif()
target_link_libraries (nvim ${NVIM_LINK_LIBRARIES})
-# target_link_libraries (nvim-test ${NVIM_LINK_LIBRARIES})
+target_link_libraries (nvim-test ${NVIM_LINK_LIBRARIES})
include(CheckLibraryExists)
check_library_exists(termcap tgetent "" HAVE_LIBTERMCAP)
if (HAVE_LIBTERMCAP)
target_link_libraries(nvim termcap)
- # target_link_libraries(nvim-test termcap)
+ target_link_libraries(nvim-test termcap)
else()
check_library_exists(curses tgetent "" HAVE_LIBCURSES)
if (HAVE_LIBCURSES)
target_link_libraries(nvim curses)
- # target_link_libraries(nvim-test curses)
+ target_link_libraries(nvim-test curses)
else()
find_package(Curses REQUIRED)
target_link_libraries(nvim ${CURSES_LIBRARIES})
- # target_link_libraries(nvim-test ${CURSES_LIBRARIES})
+ target_link_libraries(nvim-test ${CURSES_LIBRARIES})
endif()
endif()