72 |
72 |
73 COMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES):$(COMPONENT_DIR)/../pylint/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES) |
73 COMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES):$(COMPONENT_DIR)/../pylint/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES) |
74 |
74 |
75 # The test output contains details from each test, in whatever order they |
75 # The test output contains details from each test, in whatever order they |
76 # complete. Use nawk to extract just the sections that summarizes the test result. |
76 # complete. Use nawk to extract just the sections that summarizes the test result. |
|
77 COMPONENT_TEST_DIR = $(COMPONENT_SRC)/astroid/tests |
77 COMPONENT_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION) |
78 COMPONENT_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION) |
78 COMPONENT_TEST_ARGS = |
79 COMPONENT_TEST_ARGS = |
79 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
80 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
80 COMPONENT_TEST_TRANSFORMER = $(NAWK) |
81 COMPONENT_TEST_TRANSFORMER = $(NAWK) |
81 COMPONENT_TEST_TRANSFORMS = "'/Ran (.+) test cases/{ sub(/in(.+)\)/, \"\"); print }/All (.+) modules OK/'" |
82 COMPONENT_TEST_TRANSFORMS = "'/Ran (.+) test cases/{ sub(/in(.+)\)/, \"\"); print }/All (.+) modules OK/'" |
82 |
83 |
83 # Expected failures for test target: |
84 |
84 # sparc: |
85 # This modutils test should expect the logilab module to be found under the |
85 # 394 test cases, 24 skipped |
86 # standard /usr/lib/python* location when we test installed system bits, |
86 # All 15 modules OK |
87 # the opposite of what it expects when testing built bits in the proto area. |
87 # x86: |
88 # Temporarily modify its expected result for system-test, |
88 # 394 test cases, 24 skipped |
89 # and restore it afterwards. |
89 # All 15 modules OK |
90 COMPONENT_PRE_SYSTEM_TEST_ACTION += \ |
|
91 ($(MV) $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py-orig; \ |
|
92 $(GSED) -e "s/self.assertEqual(modutils.is_standard_module('logilab'), False)/self.assertEqual(modutils.is_standard_module('logilab'), True)/" $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py-orig > $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py) |
|
93 COMPONENT_SYSTEM_TEST_DIR = $(COMPONENT_SRC)/astroid/tests |
|
94 COMPONENT_SYSTEM_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION) |
|
95 COMPONENT_SYSTEM_TEST_ARGS = |
|
96 COMPONENT_POST_SYSTEM_TEST_ACTION += \ |
|
97 $(MV) $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py-orig $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py |
90 |
98 |
91 test: $(TEST_NO_ARCH) |
99 test: $(TEST_NO_ARCH) |
92 |
100 |
93 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
101 system-test: $(SYSTEM_TEST_NO_ARCH) |
94 |
102 |
95 REQUIRED_PACKAGES += library/python/logilab-common-27 |
103 REQUIRED_PACKAGES += library/python/logilab-common-27 |
96 REQUIRED_PACKAGES += library/python/six-27 |
104 REQUIRED_PACKAGES += library/python/six-27 |