author | Yiteng Zhang <yiteng.zhang@oracle.com> |
Tue, 04 Oct 2016 11:04:14 -0700 | |
branch | s11u3-sru |
changeset 7033 | a49f9f0272f2 |
parent 3996 | 20c0f21bbe1e |
child 7811 | 9126e6f58cd8 |
permissions | -rw-r--r-- |
114
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
1 |
# |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
3 |
# |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
7 |
# |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
12 |
# |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
18 |
# |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
20 |
# |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
21 |
|
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
22 |
# |
3778
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3661
diff
changeset
|
23 |
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
114
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
24 |
# |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
25 |
|
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
27 |
|
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= logilab-astng |
2424
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
29 |
COMPONENT_VERSION= 0.24.0 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
247
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-astng/ |
114
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
2424
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
34 |
sha256:2d9413fa338ccf8b3f4b86520b385e9d35e848117dc7602b3994972a3163647f |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/astng/$(COMPONENT_ARCHIVE) |
2434
6c9bb5cf5610
15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents:
2424
diff
changeset
|
36 |
COMPONENT_BUGDB= python-mod/logilab-astng |
114
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
37 |
|
3661
47545fb8aed4
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
2693
diff
changeset
|
38 |
TPNO= 8267 |
47545fb8aed4
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
2693
diff
changeset
|
39 |
|
3778
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3661
diff
changeset
|
40 |
# logilab-astng depends on logilab-common, which is not Python 3 ready, so mark |
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3661
diff
changeset
|
41 |
# this likewise. |
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3661
diff
changeset
|
42 |
PYTHON_VERSIONS= 2.7 2.6 |
35735ffdda43
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
3661
diff
changeset
|
43 |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3778
diff
changeset
|
44 |
include $(WS_MAKE_RULES)/prep.mk |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3778
diff
changeset
|
45 |
include $(WS_MAKE_RULES)/ips.mk |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3778
diff
changeset
|
46 |
include $(WS_MAKE_RULES)/setup.py.mk |
114
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
47 |
|
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
48 |
# common targets |
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
49 |
|
2693
2aa48dc32866
16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2434
diff
changeset
|
50 |
build: $(BUILD_NO_ARCH) |
114
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
51 |
|
2693
2aa48dc32866
16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2434
diff
changeset
|
52 |
install: $(INSTALL_NO_ARCH) |
114
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
53 |
|
2424
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
54 |
# The tests are run using python 2.7 only and require that |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
55 |
# the python-27 package is installed (does not have to be the default python). |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
56 |
# Testing using python-26 is done manually, since it requires |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
57 |
# downloading and installing the unittest2 component (not part of Solaris). |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
58 |
# which provides python 2.7 functionality to the unittest python library |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
59 |
# in the python2.6 package. |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
60 |
|
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
61 |
# Use the python 2.7 libraries for testing. |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
62 |
test: PYTHON_VERSION=2.7 |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
63 |
|
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
64 |
# logilab-common is a runtime dependency of logilab-astng, |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
65 |
# and we need to use its latest version from the workspace. |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
66 |
# We can't just add its install target as a dependency here, |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
67 |
# so just run "gmake install" in the logilab-common component directory |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
68 |
# before running logilab-astng tests. |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
69 |
COMPONENT_PRE_TEST_ACTION = ( $(GMAKE) -C \ |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
70 |
$(COMPONENT_DIR)/../logilab-common install ) |
247
c57f32335aee
7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
181
diff
changeset
|
71 |
|
2424
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
72 |
COMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES) |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
73 |
|
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
74 |
# Run pytest-2.7 from logilab-common's proto area for now, until the |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
75 |
# new version of logilab-common containing pytest is in CBE. |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
76 |
# Then we can change it to /usr/bin/pytest-$(PYTHON_VERSION). |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
77 |
COMPONENT_TEST_CMD = $(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)/usr/bin/pytest-$(PYTHON_VERSION) |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
78 |
COMPONENT_TEST_ARGS = |
247
c57f32335aee
7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
181
diff
changeset
|
79 |
|
2424
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
80 |
# Expected failures for test target: |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
81 |
# sparc: |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
82 |
# 242 test cases, 2 failures, 6 skipped |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
83 |
# 8 modules OK (1 failed) |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
84 |
# failures: unittest_builder [2/55] |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
85 |
# x86: |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
86 |
# 242 test cases, 4 failures, 8 skipped |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
87 |
# 6 modules OK (3 failed) |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
88 |
# failures: unittest_builder [2/55], unittest_lookup [1/21], |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
89 |
# unittest_inference [1/75] |
4dacf13d67f7
15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents:
800
diff
changeset
|
90 |
|
2693
2aa48dc32866
16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2434
diff
changeset
|
91 |
test: $(TEST_NO_ARCH) |
114
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
92 |
|
6cc95ec7b1bb
7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
93 |