# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2023 Marcel Telka # %patch% 01-dev_requirements.patch %patch% 02-cerificates.patch %patch% 03-pytest.ini.patch %patch% 04-not-required.patch %include-3% # This project does not support tox so we need to provide test requirements # manually. TEST_REQUIREMENTS += dev_requirements.txt # To test we need database/redis installed and the # svc:/application/database/redis:default service must be online TEST_REQUIRED_PACKAGES += database/redis # We do not run following sets of tests: # - module tests since we do not have any Redis modules # - cluster tests since we do not run Redis in cluster # - ssl tests since our Redis is not built with TLS support # - replica tests since we do not have replica Redis PYTEST_ADDOPTS += -m "not redismod and not onlycluster and not ssl and not replica" # We have no RedisBloom support PYTEST_ADDOPTS += --ignore tests/test_bloom.py PYTEST_ADDOPTS += --ignore tests/test_asyncio/test_bloom.py # We have no RedisGraph support PYTEST_ADDOPTS += --ignore tests/test_graph.py PYTEST_ADDOPTS += --ignore tests/test_asyncio/test_graph.py # We have no JSON support for Redis PYTEST_ADDOPTS += --ignore tests/test_json.py PYTEST_ADDOPTS += --ignore tests/test_asyncio/test_json.py # We have no RedisTimeSeries support PYTEST_ADDOPTS += --ignore tests/test_timeseries.py PYTEST_ADDOPTS += --ignore tests/test_asyncio/test_timeseries.py