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