Makefile revision 3778
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
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# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
132ee6ac1c26d6e8953836316ba50734eefab47bsf# See the License for the specific language governing permissions
132ee6ac1c26d6e8953836316ba50734eefab47bsf# and limitations under the License.
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# CDDL HEADER END
4f517d09c93a552f177f49ff97e93aa44eb127ebcovener# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
cc45ee60ddfb8380b3703455098475eb72625ca8jimCOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-astng/
46e5dfe0899face9346d6711e4f2ba873d526991sf sha256:2d9413fa338ccf8b3f4b86520b385e9d35e848117dc7602b3994972a3163647f
aee831691bb9ecd96dea63d35bc8bdd21c0f0b1fsfCOMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/astng/$(COMPONENT_ARCHIVE)
79ccc75d7de4e14e5add1fa73aaabda0f5d33fe6trawick# logilab-astng depends on logilab-common, which is not Python 3 ready, so mark
79ccc75d7de4e14e5add1fa73aaabda0f5d33fe6trawick# this likewise.
1dd5136d67e0164e4afd723a471b86a1b7eb1874sf# common targets
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# Use the python 2.7 libraries for testing.
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.
8b645fd3c950da73513b546366c7cfa7476c5c06jimCOMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
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)
68ba377fc3b124baa759662077c48077ebadb186minfrin# Expected failures for test target:
68ba377fc3b124baa759662077c48077ebadb186minfrin# 242 test cases, 2 failures, 6 skipped
00566fb187849626180724394a21ddcd28419fb2minfrin# 8 modules OK (1 failed)
00566fb187849626180724394a21ddcd28419fb2minfrin# failures: unittest_builder [2/55]
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]