Commit 8ff5a08c authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Update .gitlab-ci.yml

parent ca49f148
Loading
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -158,6 +158,8 @@ test:ubuntu:latest:
            libcap2-bin
            valgrind
            cmake
            gcov
            lcov

        - pushd . &&
          git clone https://github.com/ofiwg/libfabric.git &&
@@ -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"
@@ -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
+3 −0
Original line number Diff line number Diff line
@@ -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

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
+5 −4
Original line number Diff line number Diff line
@@ -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 {