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
17 # This project uses custom test style.
18 # See project's Makefile.
22 # Following dependency loops were detected (where 'A --> B' means 'A needs B to
23 # run tests', and 'A ==> B' means 'A needs B for build and/or run'):
25 # lxml --> lxml_html_clean ==> lxml
27 # To break loops we need to allow this project to integrate without testing in
28 # a case the required projects are not available yet (bootstrap).
30 PYTHON_TEST_BOOTSTRAP = yes
32 # This project uses custom test style.
33 # See project's Makefile.
34 COMPONENT_TEST_CMD = $(PYTHON) test.py
35 COMPONENT_TEST_ARGS = -vv
36 COMPONENT_TEST_TARGETS =
38 # The test.py uses modules from the src subdirectory, but compiled dynamic
39 # libraries are not available there.
41 # To workaround this we copy .so files from proto area back to build dir before
43 COMPONENT_PRE_TEST_ACTION += \
44 $(CP) $(PROTO_DIR)/$(PYTHON_LIB)/$(COMPONENT_NAME)/*.so $(@D)/src/$(COMPONENT_NAME) ;
47 COMPONENT_TEST_TRANSFORMS += \
49 $(GSED) -u -e '/^$$/Q' | $(SORT) | $(NAWK) '{print}END{if(NR>0)printf(\"\\\\n\")}' ; \
53 # This project does not support tox so we need to provide test requirements
55 TEST_REQUIREMENTS_EXTRAS += html-clean