Improve ctest logic

Firstly, as there will be more datastore tests, sysrepo.cpp had to be
changed to something different.

The overall logic for the datastore tests had to be changed. Now, all
datastore tests depend on the start_daemons (using fixtures). This means
that even if one starts the `test_setting_values_sysrepo` test, it
always runs start_daemons (the previous config only ensured, that
start_daemons ran before the datastore tests).

The actual datastore test creation was also refactored
to a function. This ensures that both sysrepo and netconf versions of
the test will get created.

Change-Id: Id74c9671802ed746d44f33ba0026eb81a1594e2a
2 files changed
tree: dc64e423e9d075fc408729aaf7c66a00abc60e26
  1. .clang-format
  2. .gitmodules
  3. .zuul.yaml
  4. CMakeLists.txt
  5. Doxyfile.in
  6. LICENSE
  7. LICENSE.md
  8. README.md
  9. ci/
  10. cmake/
  11. docs/
  12. example-schema.yang
  13. kill_daemons.sh
  14. netopeer-test-config
  15. netopeer_vars.hpp.in
  16. src/
  17. start_daemons.sh.in
  18. submodules/
  19. tests/
README.md

Console interface to NETCONF servers

Credits

Copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Copyright © CESNET, https://www.cesnet.cz/ . Most of the code was written by Václav Kubernát (FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.