24 # |
24 # |
25 |
25 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= logilab-astng |
28 COMPONENT_NAME= logilab-astng |
29 COMPONENT_VERSION= 0.19.0 |
29 COMPONENT_VERSION= 0.24.0 |
30 COMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-astng/ |
30 COMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-astng/ |
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
33 COMPONENT_ARCHIVE_HASH= \ |
33 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:e1b4d209e2a66b20c9e1adff2c30e3b19ea2a43226da3c7dff5c39747ca6e113 |
34 sha256:2d9413fa338ccf8b3f4b86520b385e9d35e848117dc7602b3994972a3163647f |
35 COMPONENT_ARCHIVE_URL= http://ftp.logilab.org/pub/astng/$(COMPONENT_ARCHIVE) |
35 COMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/astng/$(COMPONENT_ARCHIVE) |
36 |
36 |
37 include ../../make-rules/prep.mk |
37 include ../../make-rules/prep.mk |
38 include ../../make-rules/ips.mk |
38 include ../../make-rules/ips.mk |
39 include ../../make-rules/setup.py.mk |
39 include ../../make-rules/setup.py.mk |
40 |
40 |
42 |
42 |
43 build: $(BUILD_32) |
43 build: $(BUILD_32) |
44 |
44 |
45 install: $(INSTALL_32) |
45 install: $(INSTALL_32) |
46 |
46 |
47 # COMPONENT_TEST_CMD = ./fulltest.sh |
47 # The tests are run using python 2.7 only and require that |
48 # COMPONENT_TEST_ARGS = $(PYTHON_VERSION) |
48 # the python-27 package is installed (does not have to be the default python). |
|
49 # Testing using python-26 is done manually, since it requires |
|
50 # downloading and installing the unittest2 component (not part of Solaris). |
|
51 # which provides python 2.7 functionality to the unittest python library |
|
52 # in the python2.6 package. |
49 |
53 |
50 # No runnable tests; the existing tests are missing a runtests.py |
54 # Use the python 2.7 libraries for testing. |
51 # file, which isn't fixed until logilab-ast version 0.20.1. |
55 test: PYTHON_VERSION=2.7 |
52 # When logilab-astng is updated, uncomment the above COMPONENT_TEST* |
|
53 # variables and change $(NO_TESTS) below to $(TEST_32) |
|
54 |
56 |
55 test: $(NO_TESTS) |
57 # logilab-common is a runtime dependency of logilab-astng, |
|
58 # and we need to use its latest version from the workspace. |
|
59 # We can't just add its install target as a dependency here, |
|
60 # so just run "gmake install" in the logilab-common component directory |
|
61 # before running logilab-astng tests. |
|
62 COMPONENT_PRE_TEST_ACTION = ( $(GMAKE) -C \ |
|
63 $(COMPONENT_DIR)/../logilab-common install ) |
|
64 |
|
65 COMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES) |
|
66 |
|
67 # Run pytest-2.7 from logilab-common's proto area for now, until the |
|
68 # new version of logilab-common containing pytest is in CBE. |
|
69 # Then we can change it to /usr/bin/pytest-$(PYTHON_VERSION). |
|
70 COMPONENT_TEST_CMD = $(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)/usr/bin/pytest-$(PYTHON_VERSION) |
|
71 COMPONENT_TEST_ARGS = |
|
72 |
|
73 # Expected failures for test target: |
|
74 # sparc: |
|
75 # 242 test cases, 2 failures, 6 skipped |
|
76 # 8 modules OK (1 failed) |
|
77 # failures: unittest_builder [2/55] |
|
78 # x86: |
|
79 # 242 test cases, 4 failures, 8 skipped |
|
80 # 6 modules OK (3 failed) |
|
81 # failures: unittest_builder [2/55], unittest_lookup [1/21], |
|
82 # unittest_inference [1/75] |
|
83 |
|
84 test: $(TEST_32) |
56 |
85 |
57 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
86 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
58 |
87 |
59 include ../../make-rules/depend.mk |
88 include ../../make-rules/depend.mk |