Makefile revision 1273
00cf03a1ca1624dac1fecc85f43fc34f8806aff9Luke Smith# CDDL HEADER START
00cf03a1ca1624dac1fecc85f43fc34f8806aff9Luke Smith# The contents of this file are subject to the terms of the
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# Common Development and Distribution License (the "License").
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# You may not use this file except in compliance with the License.
00cf03a1ca1624dac1fecc85f43fc34f8806aff9Luke Smith# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# See the License for the specific language governing permissions
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# and limitations under the License.
00cf03a1ca1624dac1fecc85f43fc34f8806aff9Luke Smith# When distributing Covered Code, include this CDDL HEADER in each
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# If applicable, add the following below this CDDL HEADER, with the
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# fields enclosed by brackets "[]" replaced with your own identifying
00cf03a1ca1624dac1fecc85f43fc34f8806aff9Luke Smith# information: Portions Copyright [yyyy] [name of copyright owner]
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# CDDL HEADER END
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen DesaiCOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-astng/
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen DesaiCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
00cf03a1ca1624dac1fecc85f43fc34f8806aff9Luke Smith sha256:2d9413fa338ccf8b3f4b86520b385e9d35e848117dc7602b3994972a3163647f
00cf03a1ca1624dac1fecc85f43fc34f8806aff9Luke SmithCOMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/astng/$(COMPONENT_ARCHIVE)
00cf03a1ca1624dac1fecc85f43fc34f8806aff9Luke Smith# common targets
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# The tests are run using python 2.7 only and require that
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# the python-27 package is installed (does not have to be the default python).
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# Testing using python-26 is done manually, since it requires
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# downloading and installing the unittest2 component (not part of Solaris).
cea74478b281e652658d4e498aafc87c9fa90e92Satyen Desai# which provides python 2.7 functionality to the unittest python library
98c1ab155c0e2148f69291b1abe1007c9d5a08e8Satyen Desai# in the python2.6 package.
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# Use the python 2.7 libraries for testing.
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# logilab-common is a runtime dependency of logilab-astng,
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# and we need to use its latest version from the workspace.
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# We can't just add its install target as a dependency here,
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# so just run "gmake install" in the logilab-common component directory
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# before running logilab-astng tests.
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen DesaiCOMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# Run pytest-2.7 from logilab-common's proto area for now, until the
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# new version of logilab-common containing pytest is in CBE.
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# Then we can change it to /usr/bin/pytest-$(PYTHON_VERSION).
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen DesaiCOMPONENT_TEST_CMD = $(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)/usr/bin/pytest-$(PYTHON_VERSION)
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# Expected failures for test target:
98c1ab155c0e2148f69291b1abe1007c9d5a08e8Satyen Desai# 242 test cases, 2 failures, 6 skipped
98c1ab155c0e2148f69291b1abe1007c9d5a08e8Satyen Desai# 8 modules OK (1 failed)
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# failures: unittest_builder [2/55]
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# 242 test cases, 4 failures, 8 skipped
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# 6 modules OK (3 failed)
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# failures: unittest_builder [2/55], unittest_lookup [1/21],
d3c5729464159cab52ada7ff4b6c26b91bd4dcb4Satyen Desai# unittest_inference [1/75]