2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2023 Marcel Telka
16 %patch% 01-dev_requirements.patch
17 %patch% 02-cerificates.patch
18 %patch% 03-pytest.ini.patch
19 %patch% 04-not-required.patch
22 # This project does not support tox so we need to provide test requirements
24 TEST_REQUIREMENTS += dev_requirements.txt
26 # To test we need database/redis installed and the
27 # svc:/application/database/redis:default service must be online
28 TEST_REQUIRED_PACKAGES += database/redis
30 # We do not run following sets of tests:
31 # - module tests since we do not have any Redis modules
32 # - cluster tests since we do not run Redis in cluster
33 # - ssl tests since our Redis is not built with TLS support
34 # - replica tests since we do not have replica Redis
35 PYTEST_ADDOPTS += -m "not redismod and not onlycluster and not ssl and not replica"
36 # We have no RedisBloom support
37 PYTEST_ADDOPTS += --ignore tests/test_bloom.py
38 PYTEST_ADDOPTS += --ignore tests/test_asyncio/test_bloom.py
39 # We have no RedisGraph support
40 PYTEST_ADDOPTS += --ignore tests/test_graph.py
41 PYTEST_ADDOPTS += --ignore tests/test_asyncio/test_graph.py
42 # We have no JSON support for Redis
43 PYTEST_ADDOPTS += --ignore tests/test_json.py
44 PYTEST_ADDOPTS += --ignore tests/test_asyncio/test_json.py
45 # We have no RedisTimeSeries support
46 PYTEST_ADDOPTS += --ignore tests/test_timeseries.py
47 PYTEST_ADDOPTS += --ignore tests/test_asyncio/test_timeseries.py