1. 08 Jan, 2018 1 commit
  2. 23 Dec, 2017 2 commits
    • Petr Špaček's avatar
      CI coverage: merge test coverage data from parallel runs · b2497b13
      Petr Špaček authored
      We run tests in paralell so have to make sure that coverage tools
      do not overwrite results from each run.
      This is hacky because lcov tool insists on having gcno and gcda files
      in the same place as original source, so we have to copy files
      to workaround this.
    • Petr Špaček's avatar
      CI coverage: handle Lua code coverage properly · 5a75e722
      Petr Špaček authored
      Luacov statistics contained paths to installed files instead of source
      files that it was a mess. The stats are now rewritten using hacky
      mapping (created from install commands produced by make).
      Also, branch and function coverage for Lua was always zero so now it is
      turned off not to confuse users.
      kresd config for respdiff now enables luacov as well.
  3. 21 Dec, 2017 3 commits
  4. 28 Nov, 2017 1 commit
    • Marek Vavruša's avatar
      tests/config: added a TAP-based test environment for modules/configs · f41676d2
      Marek Vavruša authored
      I moved the test files to module directories because it allows
      vendoring of whole modules including tests etc.
      The test environment provides convenience functions and produces
      test output in TAP format. Ideally all tests should use a common
      format, so that CI can parse it provide better test output on PRs.
      It seems like Gitlab CI doesn't support anything yet, but there
      are two sort-of standards supported in CI tools - TAP and JUnit.
      I chose TAP because it's easier to read for humans, cmocka supports it,
      and it should be easier to adapt Deckard. There are also tools to
      convert TAP into JUnit XML file.
      Also added more tests for global functions and variables, and the
      test tool now also tracks coverage (if `luacov` is installed).