commit | author | age
|
c3c523
|
1 |
# |
MT |
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 |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
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. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
13 |
# Copyright 2023 Marcel Telka |
|
14 |
# |
|
15 |
|
|
16 |
%include-2% |
|
17 |
# This project uses custom test style. |
|
18 |
# See project's Makefile. |
|
19 |
TEST_STYLE = custom |
e8adc0
|
20 |
|
MT |
21 |
# |
|
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'): |
|
24 |
# |
|
25 |
# lxml --> lxml_html_clean ==> lxml |
|
26 |
# |
|
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). |
|
29 |
# |
|
30 |
PYTHON_TEST_BOOTSTRAP = yes |
c3c523
|
31 |
%include-3% |
MT |
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 = |
|
37 |
|
|
38 |
# The test.py uses modules from the src subdirectory, but compiled dynamic |
|
39 |
# libraries are not available there. |
|
40 |
# |
|
41 |
# To workaround this we copy .so files from proto area back to build dir before |
|
42 |
# we run tests. |
|
43 |
COMPONENT_PRE_TEST_ACTION += \ |
|
44 |
$(CP) $(PROTO_DIR)/$(PYTHON_LIB)/$(COMPONENT_NAME)/*.so $(@D)/src/$(COMPONENT_NAME) ; |
|
45 |
|
|
46 |
# Sort list of tests |
|
47 |
COMPONENT_TEST_TRANSFORMS += \ |
|
48 |
" | ( \ |
a99182
|
49 |
$(GSED) -u -e '/^$$/Q' | $(SORT) | $(NAWK) '{print}END{if(NR>0)printf(\"\\\\n\")}' ; \ |
c3c523
|
50 |
$(CAT) \ |
MT |
51 |
)" |
e8adc0
|
52 |
|
MT |
53 |
# This project does not support tox so we need to provide test requirements |
|
54 |
# manually. |
|
55 |
TEST_REQUIREMENTS_EXTRAS += html-clean |