From 6ec29a692f325891a2f8aa8ad678827583c206f4 Mon Sep 17 00:00:00 2001 From: phala Date: Wed, 7 Feb 2024 10:36:41 +0100 Subject: [PATCH] Add new targets to Makefile - Based on capabilities --- Makefile | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 4f3675e8..c49cb1d5 100644 --- a/Makefile +++ b/Makefile @@ -38,23 +38,35 @@ all-is-package: # pattern to run individual testfile or all testfiles in directory testsuite/%: FORCE poetry-no-dev - $(PYTEST) --performance --mgc -v $(flags) $@ + $(PYTEST) --performance -v $(flags) $@ -test: ## Run tests +test: ## Run all non mgc tests test pytest tests: poetry-no-dev - $(PYTEST) -n4 -m 'not flaky' --dist loadfile $(flags) testsuite + $(PYTEST) -n4 -m 'not mgc' --dist loadfile $(flags) testsuite -authorino: ## Run test +authorino: ## Run only authorino related tests authorino: poetry-no-dev - $(PYTEST) -n4 -m 'not flaky' --dist loadfile $(flags) testsuite/tests/kuadrant/authorino + $(PYTEST) -n4 -m 'authorino' --dist loadfile --enforce $(flags) testsuite -performance: ## Run performance tests -performance: poetry-no-dev - $(PYTEST) --performance $(flags) testsuite/tests/kuadrant/authorino/performance +authorino-standalone: ## Run only test capable of running with standalone Authorino +authorino-standalone: poetry-no-dev + $(PYTEST) -n4 -m 'authorino and not kuadrant_only' --dist loadfile --enforce $(flags) testsuite/tests/kuadrant/authorino + +limitador: ## Run only Limitador related tests +limitador: poetry-no-dev + $(PYTEST) -n4 -m 'limitador' --dist loadfile --enforce $(flags) testsuite + +kuadrant: ## Run Kuadrant-only tests +kuadrant: poetry-no-dev + $(PYTEST) -n4 -m 'kuadrant_only' --dist loadfile --enforce $(flags) testsuite mgc: ## Run mgc tests mgc: poetry-no-dev - $(PYTEST) --mgc $(flags) testsuite/tests/mgc + $(PYTEST) -m "mgc" --enforce $(flags) testsuite + +performance: ## Run performance tests +performance: poetry-no-dev + $(PYTEST) --performance $(flags) testsuite/tests/kuadrant/authorino/performance poetry.lock: pyproject.toml poetry lock