Makefile revision 3996
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
28a723b775c7666281298eab813c63ac42270f95humbedooh# The contents of this file are subject to the terms of the
28a723b775c7666281298eab813c63ac42270f95humbedooh# Common Development and Distribution License (the "License").
28a723b775c7666281298eab813c63ac42270f95humbedooh# You may not use this file except in compliance with the License.
067698ad30941e38ef5d7f95f1c2736c2ebc5cb9humbedooh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4b3f656d2ad030be85d219e02fdc11546ddecb5ccovener# See the License for the specific language governing permissions
4b3f656d2ad030be85d219e02fdc11546ddecb5ccovener# and limitations under the License.
7a437ce535a5fac890296402ba483c2f41bb6500trawick# When distributing Covered Code, include this CDDL HEADER in each
7a437ce535a5fac890296402ba483c2f41bb6500trawick# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7a437ce535a5fac890296402ba483c2f41bb6500trawick# If applicable, add the following below this CDDL HEADER, with the
6e1e45624d6f32110383bb0bd06c254c1dba8123humbedooh# fields enclosed by brackets "[]" replaced with your own identifying
6e1e45624d6f32110383bb0bd06c254c1dba8123humbedooh# information: Portions Copyright [yyyy] [name of copyright owner]
77ca16c5676da23155311e13cee61e7eaba9fa3ejailletc# CDDL HEADER END
921d32d80d8271da08f12fc374a69cb36d1d63b3covener# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
faea99bb676ec50ece38da6b1879aa37546483a2covenerCOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-astng/
faea99bb676ec50ece38da6b1879aa37546483a2covenerCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d65242086b0c700c44590925b2ed9281cd4fd781covener sha256:2d9413fa338ccf8b3f4b86520b385e9d35e848117dc7602b3994972a3163647f
d65242086b0c700c44590925b2ed9281cd4fd781covenerCOMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/astng/$(COMPONENT_ARCHIVE)
344f755169e100ea8ce51e847a0bf30a13b46917covener# logilab-astng depends on logilab-common, which is not Python 3 ready, so mark
fcd5c4e9e126e867eb270ed2d4138348cb1e46e5trawick# this likewise.
60284a9f9158baa60cc8ab4a69066404b1dcae7acovener# common targets
50cfe8bbbaf4279375802531268e2bf0155215fetrawick# The tests are run using python 2.7 only and require that
50cfe8bbbaf4279375802531268e2bf0155215fetrawick# the python-27 package is installed (does not have to be the default python).
50cfe8bbbaf4279375802531268e2bf0155215fetrawick# Testing using python-26 is done manually, since it requires
5cb0075c38fc868730c4981e346845dad6c7ea58chrisd# downloading and installing the unittest2 component (not part of Solaris).
5cb0075c38fc868730c4981e346845dad6c7ea58chrisd# which provides python 2.7 functionality to the unittest python library
5cb0075c38fc868730c4981e346845dad6c7ea58chrisd# in the python2.6 package.
ffaa9771884a8664f0e6267efbe9d26b40000461trawick# Use the python 2.7 libraries for testing.
ffaa9771884a8664f0e6267efbe9d26b40000461trawick# logilab-common is a runtime dependency of logilab-astng,
f87299dab99bc04b51a6b8cad51b6795db862c0atrawick# and we need to use its latest version from the workspace.
f87299dab99bc04b51a6b8cad51b6795db862c0atrawick# We can't just add its install target as a dependency here,
f87299dab99bc04b51a6b8cad51b6795db862c0atrawick# so just run "gmake install" in the logilab-common component directory
4d12805e6c18253040223ea637acd6b3b3c18f60jorton# before running logilab-astng tests.
4d12805e6c18253040223ea637acd6b3b3c18f60jortonCOMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
f2287adf33e3664c55b421fd65c45f0e05fe6977covener# Run pytest-2.7 from logilab-common's proto area for now, until the
f2287adf33e3664c55b421fd65c45f0e05fe6977covener# new version of logilab-common containing pytest is in CBE.
e5d909f2b06bd880fb3675cd49363df981caa631trawick# Then we can change it to /usr/bin/pytest-$(PYTHON_VERSION).
a4df2cd1e1391575a327c2a90ba4315f805a0a78covenerCOMPONENT_TEST_CMD = $(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)/usr/bin/pytest-$(PYTHON_VERSION)
cb666b29f81df1d11d65002250153353568021fccovener# Expected failures for test target:
cb666b29f81df1d11d65002250153353568021fccovener# 242 test cases, 2 failures, 6 skipped
6a80c3c6f4b8ea7ba5e89402b8b779b09ce020e0covener# 8 modules OK (1 failed)
1c2cab00d988fc48cbe59032cf76cc0bab20d6f7covener# failures: unittest_builder [2/55]
45dffe6c346dd73571ccaead10295fc7d53b59a6covener# 242 test cases, 4 failures, 8 skipped
45dffe6c346dd73571ccaead10295fc7d53b59a6covener# 6 modules OK (3 failed)
45dffe6c346dd73571ccaead10295fc7d53b59a6covener# failures: unittest_builder [2/55], unittest_lookup [1/21],
75a230a728338d84dcfe81edd375352f34de22d0covener# unittest_inference [1/75]