Skip to content

Commit

Permalink
Build unit tests on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Kopp <[email protected]>
  • Loading branch information
vifactor committed Sep 16, 2024
1 parent 69985c0 commit e04ab49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions qdlt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ endforeach()
find_package(GTest)
# configure unit tests only if gtest found on the system
if (GTest_FOUND)
message(STATUS "Tests enabled")
enable_testing()
add_subdirectory(tests)
endif()
5 changes: 5 additions & 0 deletions qdlt/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ target_link_libraries(
qdlt
)

add_test(
NAME test_tools
COMMAND $<TARGET_FILE:test_tools>
)

2 changes: 1 addition & 1 deletion scripts/linux/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y git cmake build-essential ninja-build \
qt515declarative qt515serialport qt515charts-no-lgpl qt515svg \
libgtk2.0-dev libgl-dev gcc-11 g++-11
libgtk2.0-dev libgl-dev gcc-11 g++-11 libgtest-dev

sudo update-alternatives --remove-all cpp
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-11 --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-11 --slave /usr/bin/cpp cpp /usr/bin/cpp-11
Expand Down

0 comments on commit e04ab49

Please sign in to comment.