Makefile revision 3778
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf#
7f40ab64e74b7d1057b5ee6abc349e32e74b1b4cjim# The contents of this file are subject to the terms of the
7f40ab64e74b7d1057b5ee6abc349e32e74b1b4cjim# Common Development and Distribution License (the "License").
7f40ab64e74b7d1057b5ee6abc349e32e74b1b4cjim# You may not use this file except in compliance with the License.
f6b9c755a0b793e8a3a3aebd327ca20a86478117sf#
f6b9c755a0b793e8a3a3aebd327ca20a86478117sf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f6b9c755a0b793e8a3a3aebd327ca20a86478117sf# or http://www.opensolaris.org/os/licensing.
132ee6ac1c26d6e8953836316ba50734eefab47bsf# See the License for the specific language governing permissions
132ee6ac1c26d6e8953836316ba50734eefab47bsf# and limitations under the License.
132ee6ac1c26d6e8953836316ba50734eefab47bsf#
132ee6ac1c26d6e8953836316ba50734eefab47bsf# When distributing Covered Code, include this CDDL HEADER in each
497e47ed2aaf97b229bd29a8bdd15f5927dc50e6sf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
497e47ed2aaf97b229bd29a8bdd15f5927dc50e6sf# If applicable, add the following below this CDDL HEADER, with the
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf# fields enclosed by brackets "[]" replaced with your own identifying
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf# information: Portions Copyright [yyyy] [name of copyright owner]
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf#
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf# CDDL HEADER END
4f517d09c93a552f177f49ff97e93aa44eb127ebcovener#
4f517d09c93a552f177f49ff97e93aa44eb127ebcovener
4f517d09c93a552f177f49ff97e93aa44eb127ebcovener#
4f517d09c93a552f177f49ff97e93aa44eb127ebcovener# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
6736c640e65e06990ef33af71ee81fac4df4ff5fjim#
20eead0b01d51fce0cc17d04b8f98ec38eac68aejim
20eead0b01d51fce0cc17d04b8f98ec38eac68aejiminclude ../../make-rules/shared-macros.mk
20eead0b01d51fce0cc17d04b8f98ec38eac68aejim
cc45ee60ddfb8380b3703455098475eb72625ca8jimCOMPONENT_NAME= logilab-astng
20eead0b01d51fce0cc17d04b8f98ec38eac68aejimCOMPONENT_VERSION= 0.24.0
cc45ee60ddfb8380b3703455098475eb72625ca8jimCOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-astng/
cc45ee60ddfb8380b3703455098475eb72625ca8jimCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
46e5dfe0899face9346d6711e4f2ba873d526991sfCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
46e5dfe0899face9346d6711e4f2ba873d526991sfCOMPONENT_ARCHIVE_HASH= \
46e5dfe0899face9346d6711e4f2ba873d526991sf sha256:2d9413fa338ccf8b3f4b86520b385e9d35e848117dc7602b3994972a3163647f
aee831691bb9ecd96dea63d35bc8bdd21c0f0b1fsfCOMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/astng/$(COMPONENT_ARCHIVE)
aee831691bb9ecd96dea63d35bc8bdd21c0f0b1fsfCOMPONENT_BUGDB= python-mod/logilab-astng
aee831691bb9ecd96dea63d35bc8bdd21c0f0b1fsf
aee831691bb9ecd96dea63d35bc8bdd21c0f0b1fsfTPNO= 8267
79ccc75d7de4e14e5add1fa73aaabda0f5d33fe6trawick
79ccc75d7de4e14e5add1fa73aaabda0f5d33fe6trawick# logilab-astng depends on logilab-common, which is not Python 3 ready, so mark
79ccc75d7de4e14e5add1fa73aaabda0f5d33fe6trawick# this likewise.
fc1459657a1fde206a847f9028930725d715f8b4trawickPYTHON_VERSIONS= 2.7 2.6
fc1459657a1fde206a847f9028930725d715f8b4trawick
fc1459657a1fde206a847f9028930725d715f8b4trawickinclude ../../make-rules/prep.mk
e758971371df73b097609b2fd62bc14ad935e096trawickinclude ../../make-rules/ips.mk
e758971371df73b097609b2fd62bc14ad935e096trawickinclude ../../make-rules/setup.py.mk
e758971371df73b097609b2fd62bc14ad935e096trawick
1dd5136d67e0164e4afd723a471b86a1b7eb1874sf# common targets
1dd5136d67e0164e4afd723a471b86a1b7eb1874sf
1dd5136d67e0164e4afd723a471b86a1b7eb1874sfbuild: $(BUILD_NO_ARCH)
1dd5136d67e0164e4afd723a471b86a1b7eb1874sf
e39eb98e3ad3fbf5c34b2fa1d16861f95143e22esfinstall: $(INSTALL_NO_ARCH)
e39eb98e3ad3fbf5c34b2fa1d16861f95143e22esf
e39eb98e3ad3fbf5c34b2fa1d16861f95143e22esf# The tests are run using python 2.7 only and require that
d6fc66efa723db8b3ee5e9fd32579bed884e4e58sf# the python-27 package is installed (does not have to be the default python).
d6fc66efa723db8b3ee5e9fd32579bed884e4e58sf# Testing using python-26 is done manually, since it requires
d6fc66efa723db8b3ee5e9fd32579bed884e4e58sf# downloading and installing the unittest2 component (not part of Solaris).
d6fc66efa723db8b3ee5e9fd32579bed884e4e58sf# which provides python 2.7 functionality to the unittest python library
f00cb80197f824c3ff00dd4fdff3b2c267a519d1kbrand# in the python2.6 package.
f00cb80197f824c3ff00dd4fdff3b2c267a519d1kbrand
f00cb80197f824c3ff00dd4fdff3b2c267a519d1kbrand# Use the python 2.7 libraries for testing.
f00cb80197f824c3ff00dd4fdff3b2c267a519d1kbrandtest: PYTHON_VERSION=2.7
85eacfc96a04547ef25aabbc06440039715084c2jorton
85eacfc96a04547ef25aabbc06440039715084c2jorton# logilab-common is a runtime dependency of logilab-astng,
85eacfc96a04547ef25aabbc06440039715084c2jorton# and we need to use its latest version from the workspace.
1d8d7e58e1d31d7b6fb7a518e09649a4dbb315e9trawick# We can't just add its install target as a dependency here,
1d8d7e58e1d31d7b6fb7a518e09649a4dbb315e9trawick# so just run "gmake install" in the logilab-common component directory
1d8d7e58e1d31d7b6fb7a518e09649a4dbb315e9trawick# before running logilab-astng tests.
f34da68471f256dca0ff770257c3e1f982f74cf1trawickCOMPONENT_PRE_TEST_ACTION = ( $(GMAKE) -C \
f34da68471f256dca0ff770257c3e1f982f74cf1trawick $(COMPONENT_DIR)/../logilab-common install )
f34da68471f256dca0ff770257c3e1f982f74cf1trawick
8b645fd3c950da73513b546366c7cfa7476c5c06jimCOMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
8b645fd3c950da73513b546366c7cfa7476c5c06jim
8b645fd3c950da73513b546366c7cfa7476c5c06jim# Run pytest-2.7 from logilab-common's proto area for now, until the
8b645fd3c950da73513b546366c7cfa7476c5c06jim# new version of logilab-common containing pytest is in CBE.
193f0bb6057d67593ed652fbf58f043def51c642jim# Then we can change it to /usr/bin/pytest-$(PYTHON_VERSION).
193f0bb6057d67593ed652fbf58f043def51c642jimCOMPONENT_TEST_CMD = $(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)/usr/bin/pytest-$(PYTHON_VERSION)
193f0bb6057d67593ed652fbf58f043def51c642jimCOMPONENT_TEST_ARGS =
68ba377fc3b124baa759662077c48077ebadb186minfrin
68ba377fc3b124baa759662077c48077ebadb186minfrin# Expected failures for test target:
68ba377fc3b124baa759662077c48077ebadb186minfrin# sparc:
68ba377fc3b124baa759662077c48077ebadb186minfrin# 242 test cases, 2 failures, 6 skipped
00566fb187849626180724394a21ddcd28419fb2minfrin# 8 modules OK (1 failed)
00566fb187849626180724394a21ddcd28419fb2minfrin# failures: unittest_builder [2/55]
00566fb187849626180724394a21ddcd28419fb2minfrin# x86:
00566fb187849626180724394a21ddcd28419fb2minfrin# 242 test cases, 4 failures, 8 skipped
d776b0a2d2889ce1d13494873368f34327a2e1bbtrawick# 6 modules OK (3 failed)
d776b0a2d2889ce1d13494873368f34327a2e1bbtrawick# failures: unittest_builder [2/55], unittest_lookup [1/21],
f4ca9f6f002fece336168a16355434ca966f96a9trawick# unittest_inference [1/75]
57db302f0875a6c93a79333b8941cea4c1827272jim
57db302f0875a6c93a79333b8941cea4c1827272jimtest: $(TEST_NO_ARCH)
57db302f0875a6c93a79333b8941cea4c1827272jim
57db302f0875a6c93a79333b8941cea4c1827272jimBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
92b1631880b0bf43fe8b2663a03c8571eb04e433jim
92b1631880b0bf43fe8b2663a03c8571eb04e433jiminclude ../../make-rules/depend.mk
92b1631880b0bf43fe8b2663a03c8571eb04e433jim