diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-18 21:14:49 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-18 21:14:49 +0200 |
commit | a4d9778f0df6f076e72ad10d1d1dcc2174b3cab4 (patch) | |
tree | ae816be0b04073f23d0a7080ce943bc2df61f80a | |
parent | test: speed up output_long test_repo tests (diff) | |
download | cimple-a4d9778f0df6f076e72ad10d1d1dcc2174b3cab4.tar.gz cimple-a4d9778f0df6f076e72ad10d1d1dcc2174b3cab4.zip |
test: exclude silly tests from python_tests_valgrind
-rw-r--r-- | test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | test/py/test_repo.py | 1 | ||||
-rw-r--r-- | 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 |