114N/A#
114N/A# CDDL HEADER START
114N/A#
114N/A# The contents of this file are subject to the terms of the
114N/A# Common Development and Distribution License (the "License").
114N/A# You may not use this file except in compliance with the License.
114N/A#
114N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
114N/A# or http://www.opensolaris.org/os/licensing.
114N/A# See the License for the specific language governing permissions
114N/A# and limitations under the License.
114N/A#
114N/A# When distributing Covered Code, include this CDDL HEADER in each
114N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
114N/A# If applicable, add the following below this CDDL HEADER, with the
114N/A# fields enclosed by brackets "[]" replaced with your own identifying
114N/A# information: Portions Copyright [yyyy] [name of copyright owner]
114N/A#
114N/A# CDDL HEADER END
114N/A#
114N/A
114N/A#
3778N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
114N/A#
114N/A
114N/Ainclude ../../make-rules/shared-macros.mk
114N/A
114N/ACOMPONENT_NAME= logilab-astng
1247N/ACOMPONENT_VERSION= 0.24.0
618N/ACOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-astng/
114N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
114N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
1247N/A sha256:2d9413fa338ccf8b3f4b86520b385e9d35e848117dc7602b3994972a3163647f
1247N/ACOMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/astng/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= python-mod/logilab-astng
114N/A
3661N/ATPNO= 8267
3661N/A
3778N/A# logilab-astng depends on logilab-common, which is not Python 3 ready, so mark
3778N/A# this likewise.
3778N/APYTHON_VERSIONS= 2.7 2.6
3778N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
3996N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
114N/A
114N/A# common targets
114N/A
1874N/Abuild: $(BUILD_NO_ARCH)
114N/A
1874N/Ainstall: $(INSTALL_NO_ARCH)
114N/A
1247N/A# The tests are run using python 2.7 only and require that
1247N/A# the python-27 package is installed (does not have to be the default python).
1247N/A# Testing using python-26 is done manually, since it requires
1247N/A# downloading and installing the unittest2 component (not part of Solaris).
1247N/A# which provides python 2.7 functionality to the unittest python library
1247N/A# in the python2.6 package.
1247N/A
1247N/A# Use the python 2.7 libraries for testing.
1247N/Atest: PYTHON_VERSION=2.7
1247N/A
1247N/A# logilab-common is a runtime dependency of logilab-astng,
1247N/A# and we need to use its latest version from the workspace.
1247N/A# We can't just add its install target as a dependency here,
1247N/A# so just run "gmake install" in the logilab-common component directory
1247N/A# before running logilab-astng tests.
1247N/ACOMPONENT_PRE_TEST_ACTION = ( $(GMAKE) -C \
1247N/A $(COMPONENT_DIR)/../logilab-common install )
247N/A
1247N/ACOMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
1247N/A
1247N/A# Run pytest-2.7 from logilab-common's proto area for now, until the
1247N/A# new version of logilab-common containing pytest is in CBE.
1247N/A# Then we can change it to /usr/bin/pytest-$(PYTHON_VERSION).
1247N/ACOMPONENT_TEST_CMD = $(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)/usr/bin/pytest-$(PYTHON_VERSION)
1247N/ACOMPONENT_TEST_ARGS =
247N/A
1247N/A# Expected failures for test target:
1247N/A# sparc:
1247N/A# 242 test cases, 2 failures, 6 skipped
1247N/A# 8 modules OK (1 failed)
1247N/A# failures: unittest_builder [2/55]
1247N/A# x86:
1247N/A# 242 test cases, 4 failures, 8 skipped
1247N/A# 6 modules OK (3 failed)
1247N/A# failures: unittest_builder [2/55], unittest_lookup [1/21],
1247N/A# unittest_inference [1/75]
1247N/A
1874N/Atest: $(TEST_NO_ARCH)
114N/A
114N/A