aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/py/test_repo.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 23:23:00 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-18 23:27:41 +0200
commit11f757e9e9027ff045680b471663555ed5ff946c (patch)
tree09dbe65272b3bc54e068683afa7a6aedc821a611 /test/py/test_repo.py
parentflame_graph.sh -> flamegraph.sh (diff)
downloadcimple-11f757e9e9027ff045680b471663555ed5ff946c.tar.gz
cimple-11f757e9e9027ff045680b471663555ed5ff946c.zip
test: store multiple flame graphs alongside
Previously, it would get stored in build/flame_graph/flame_graphs.svg. Now, the test repository codename is added to the file name. Also, some refactoring and simplifying test filtering.
Diffstat (limited to '')
-rw-r--r--test/py/test_repo.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/py/test_repo.py b/test/py/test_repo.py
index 9d070ca..544213d 100644
--- a/test/py/test_repo.py
+++ b/test/py/test_repo.py
@@ -72,7 +72,6 @@ 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):
@@ -84,7 +83,12 @@ def test_repo(env, test_repo, numof_clients, runs_per_client):
[
(10, 50),
(1, 2000),
- pytest.param(4, 500, marks=pytest.mark.flame_graph),
+ (4, 500),
])
def test_repo_stress(env, stress_test_repo, numof_clients, runs_per_client):
_test_repo_internal(env, stress_test_repo, numof_clients, runs_per_client)
+
+
+@pytest.mark.flame_graph
+def test_repo_flame_graph(env, profiler, flame_graph_repo):
+ _test_repo_internal(env, flame_graph_repo, 4, 500)