Skip to content
Snippets Groups Projects
  1. Jul 29, 2021
  2. Dec 08, 2020
  3. Oct 26, 2020
  4. Jul 08, 2020
  5. Feb 25, 2020
  6. Apr 18, 2019
  7. Mar 12, 2019
  8. Jan 08, 2018
  9. Dec 23, 2017
    • 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.
      Verified
      b2497b13
    • 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.
      Verified
      5a75e722
  10. Dec 21, 2017
  11. Nov 28, 2017
    • Marek Vavruša's avatar
      tests/config: added a TAP-based test environment for modules/configs · f41676d2
      Marek Vavruša authored and Petr Špaček's avatar Petr Špaček committed
      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).
      Verified
      f41676d2
Loading