Skip to content

Commit

Permalink
Enable unit tests for pipeline builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dschopf committed Jul 25, 2024
1 parent 291513b commit be0a199
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/actions/arch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ RUN pacman -Syu --noconfirm --noprogressbar && \
pacman -Syq --noconfirm --noprogressbar \
cmake \
extra-cmake-modules \
gtest \
libqalculate \
plasma-sdk \
qt6-declarative
Expand Down
4 changes: 3 additions & 1 deletion .github/actions/arch/build_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ cmake .. \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS=-Werror \
-DKDE_INSTALL_LIBDIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DENABLE_TESTS=ON
make
bin/QalculateTests
6 changes: 4 additions & 2 deletions plugin/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ add_executable(QalculateTests helpers.cpp main.cpp preprocessor_assign.cpp
../preprocessor.cpp ../qalculate.cpp)

target_compile_definitions(QalculateTests PRIVATE ENABLE_TESTS)
target_compile_options(QalculateTests PRIVATE -fsanitize=address)
target_link_options(QalculateTests PRIVATE -fsanitize=address)

# disable ASAN tests until upstream changes are released
#target_compile_options(QalculateTests PRIVATE -fsanitize=address)
#target_link_options(QalculateTests PRIVATE -fsanitize=address)

target_link_libraries(
QalculateTests
Expand Down

0 comments on commit be0a199

Please sign in to comment.