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% 02-test-sysdir.patch
17 %patch% 03-test-cmake.patch
20 # https://github.com/scikit-build/scikit-build/issues/951
21 PYTEST_ADDOPTS += -W ignore::DeprecationWarning
22 # We usually do have setuptools-scm installed so we need to disable tests that
23 # expect setuptools-scm is not installed.
24 PYTEST_ADDOPTS += -m 'not nosetuptoolsscm'
25 # pep518 tests are trying to install numpy using pip, but that fails during
27 PYTEST_ADDOPTS += -k 'not pep518'
28 # These tests are trying to install numpy using pip, but that fails because of
29 # https://github.com/numpy/numpy/issues/25366
30 PYTEST_ADDOPTS += --ignore tests/test_distribution.py
32 # Testing needs to compile some C++ sources
33 COMPONENT_TEST_ENV += CXX="$(CXX)"
34 # and it also needs fortran
35 COMPONENT_TEST_ENV += FC="$(FC)"
37 # This project does not support tox so we need to provide test requirements
39 TEST_REQUIREMENTS_EXTRAS += test