From a4d9778f0df6f076e72ad10d1d1dcc2174b3cab4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 18 Jul 2023 21:14:49 +0200 Subject: test: exclude silly tests from python_tests_valgrind --- test/CMakeLists.txt | 2 +- test/py/test_repo.py | 1 + test/pytest.ini | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d370c53..74ade1a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -27,7 +27,7 @@ add_python_tests(python_tests_stress Python3::Interpreter -m pytest ${python_test_args} -m "stress") add_python_tests(python_tests_valgrind - Python3::Interpreter -m pytest ${python_test_args} -m "not stress" + Python3::Interpreter -m pytest ${python_test_args} -m "valgrind" --valgrind-binary "${CMAKE_CURRENT_SOURCE_DIR}/../src/valgrind.sh") if(NOT DEFINED FLAME_GRAPHS_DIR) diff --git a/test/py/test_repo.py b/test/py/test_repo.py index c973e37..9d070ca 100644 --- a/test/py/test_repo.py +++ b/test/py/test_repo.py @@ -72,6 +72,7 @@ def _test_repo_internal(env, repo, numof_processes, runs_per_process): assert repo.run_output_matches(output), f"Output doesn't match: {output}" +@pytest.mark.valgrind @my_parametrize('runs_per_client', [1, 5]) @my_parametrize('numof_clients', [1, 5]) def test_repo(env, test_repo, numof_clients, runs_per_client): diff --git a/test/pytest.ini b/test/pytest.ini index 49e206d..6b95d54 100644 --- a/test/pytest.ini +++ b/test/pytest.ini @@ -5,5 +5,6 @@ log_cli_level = INFO #log_cli = 1 markers = - stress: Big tests; don't run them w/ Valgrind or in QEMU + stress: Long tests; don't run them casually + valgrind: These tests are run w/ Valgrind flame_graph: Generate the flame graph for these tests -- cgit v1.2.3