evmone icon indicating copy to clipboard operation
evmone copied to clipboard

Use `ctest` to execute external JSON tests

Open chfast opened this issue 1 year ago • 1 comments

Currently on CI we just execute e.g. evmone-statetest tests_dir, but this runs in a single thread. We can use ctest to wrap the test execution for 2 benefits:

  • tests executed in parallel,
  • XML test result output understandable by CircleCI.

We don't have to mix it in the main CMake. We can write or generate CTestTestfile.cmake files. See documentation: https://cmake.org/cmake/help/book/mastering-cmake/chapter/Testing%20With%20CMake%20and%20CTest.html#testing-using-ctest.

chfast avatar Sep 11 '24 07:09 chfast

similar note to https://github.com/ipsilon/evmone/issues/1223 - if we choose to use consume direct, parallelization is for free.

pdobacz avatar Oct 08 '25 14:10 pdobacz