Loading .gitlab-ci.yml +8 −2 Original line number Diff line number Diff line Loading @@ -158,6 +158,8 @@ test:ubuntu:latest: libcap2-bin valgrind cmake gcov lcov - pushd . && git clone https://github.com/ofiwg/libfabric.git && Loading Loading @@ -198,6 +200,9 @@ test:ubuntu:latest: - mkdir build && cd build - ../configure --enable-tests CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage" LDFLAGS="--coverage" # CFLAGS="-fsanitize=address" # CXXFLAGS="-fsanitize=address" # LDFLAGS="-fsanitize=address" Loading Loading @@ -237,8 +242,9 @@ test:ubuntu:latest: - NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_update_job]" after_script: - (cd build && ../gencov.sh) - pwd - if [[ -e tests.log ]]; - if [[ -e build/tests.log ]]; then cat $(tail -1 tests.log)/config/urd.log; cat $(tail -1 build/tests.log)/config/urd.log; fi configure.ac +3 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([1.9 foreign subdir-objects]) AC_LANG([C]) AC_LANG([C++]) # Checks for programs. AC_PROG_AWK AC_PROG_SED Loading gencov.sh 0 → 100755 +20 −0 Original line number Diff line number Diff line #!/bin/bash GIT_ROOTDIR=`git rev-parse --show-toplevel` /usr/local/bin/lcov \ `find ${GIT_ROOTDIR} -name "*.gcda" 2>/dev/null | xargs -I{} dirname {} | uniq | xargs -I {} echo -n " --directory "{}` \ --capture \ --output-file gcov.info /usr/local/bin/lcov \ --remove gcov.info \ '/usr/include/*' \ '/usr/local/include/*' \ '*/externals/*' \ '*/spdlog/*' \ '*/build*/*' \ -o norns.info \ 2>/dev/null genhtml -o html/coverage norns.info 2>/dev/null src/api/signal-listener.hpp +5 −4 Original line number Diff line number Diff line Loading @@ -37,16 +37,17 @@ namespace ba = boost::asio; namespace norns { namespace api { template <class F> void do_for(F /*f*/) { // Parameter pack is empty. } template <class F, class First, class... Rest> void do_for(F f, First first, Rest... rest) { f(first); do_for(f, rest...); } template <class F> void do_for(F /*f*/) { // Parameter pack is empty. } struct signal_listener { Loading Loading
.gitlab-ci.yml +8 −2 Original line number Diff line number Diff line Loading @@ -158,6 +158,8 @@ test:ubuntu:latest: libcap2-bin valgrind cmake gcov lcov - pushd . && git clone https://github.com/ofiwg/libfabric.git && Loading Loading @@ -198,6 +200,9 @@ test:ubuntu:latest: - mkdir build && cd build - ../configure --enable-tests CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage" LDFLAGS="--coverage" # CFLAGS="-fsanitize=address" # CXXFLAGS="-fsanitize=address" # LDFLAGS="-fsanitize=address" Loading Loading @@ -237,8 +242,9 @@ test:ubuntu:latest: - NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_update_job]" after_script: - (cd build && ../gencov.sh) - pwd - if [[ -e tests.log ]]; - if [[ -e build/tests.log ]]; then cat $(tail -1 tests.log)/config/urd.log; cat $(tail -1 build/tests.log)/config/urd.log; fi
configure.ac +3 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([1.9 foreign subdir-objects]) AC_LANG([C]) AC_LANG([C++]) # Checks for programs. AC_PROG_AWK AC_PROG_SED Loading
gencov.sh 0 → 100755 +20 −0 Original line number Diff line number Diff line #!/bin/bash GIT_ROOTDIR=`git rev-parse --show-toplevel` /usr/local/bin/lcov \ `find ${GIT_ROOTDIR} -name "*.gcda" 2>/dev/null | xargs -I{} dirname {} | uniq | xargs -I {} echo -n " --directory "{}` \ --capture \ --output-file gcov.info /usr/local/bin/lcov \ --remove gcov.info \ '/usr/include/*' \ '/usr/local/include/*' \ '*/externals/*' \ '*/spdlog/*' \ '*/build*/*' \ -o norns.info \ 2>/dev/null genhtml -o html/coverage norns.info 2>/dev/null
src/api/signal-listener.hpp +5 −4 Original line number Diff line number Diff line Loading @@ -37,16 +37,17 @@ namespace ba = boost::asio; namespace norns { namespace api { template <class F> void do_for(F /*f*/) { // Parameter pack is empty. } template <class F, class First, class... Rest> void do_for(F f, First first, Rest... rest) { f(first); do_for(f, rest...); } template <class F> void do_for(F /*f*/) { // Parameter pack is empty. } struct signal_listener { Loading