Makefile revision 5680
3263N/A#
3263N/A# CDDL HEADER START
3263N/A#
3263N/A# The contents of this file are subject to the terms of the
3263N/A# Common Development and Distribution License (the "License").
3263N/A# You may not use this file except in compliance with the License.
3263N/A#
3263N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3263N/A# or http://www.opensolaris.org/os/licensing.
3263N/A# See the License for the specific language governing permissions
3263N/A# and limitations under the License.
3263N/A#
3263N/A# When distributing Covered Code, include this CDDL HEADER in each
3263N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3263N/A# If applicable, add the following below this CDDL HEADER, with the
3263N/A# fields enclosed by brackets "[]" replaced with your own identifying
3263N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3263N/A#
3263N/A# CDDL HEADER END
3263N/A#
5680N/A
3263N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 32
3263N/Ainclude ../../make-rules/shared-macros.mk
3263N/A
3263N/ACOMPONENT_NAME= junit
3897N/ACOMPONENT_VERSION= 4.11
3263N/ACOMPONENT_PROJECT_URL= https://github.com/junit-team/junit/archive
3263N/ACOMPONENT_SRC= $(COMPONENT_NAME)-r$(COMPONENT_VERSION)
3263N/ACOMPONENT_ARCHIVE= r$(COMPONENT_VERSION).zip
3263N/ACOMPONENT_ARCHIVE_HASH= \
3897N/A sha256:3048cb3f2b07fada9d85b2c042bbedb93892ef70c1dcfe0594124850418f9ffb
3897N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE)
3263N/A
3897N/ATPNO= 9070
3263N/A
5680N/ABUILD_STYLE= ant
5680N/A
5680N/A# Another test is:
3263N/A# To test after you have installed the resulting package do:
3263N/A# $ java -cp /usr/share/lib/java/junit.jar:/usr/share/doc/junit/samples/org \
3263N/A# junit/samples/money/MoneyTest
3263N/A# ......................
3263N/A# Time: 0.003
3263N/A#
3897N/A# OK (22 tests)
3897N/ASYSTEM_TEST_TARGET= build $(SYSTEM_TEST_32)
3897N/Ainclude $(WS_MAKE_RULES)/common.mk
3263N/A
3263N/A# These ARGS override what is set in build.xml
3263N/ACOMPONENT_BUILD_ARGS += -Ddist=${PROTO_DIR}
3263N/ACOMPONENT_BUILD_ARGS += -Djavadocdir=${PROTO_DIR}
3897N/ACOMPONENT_BUILD_ARGS += -Dversion-status=""
3897N/ACOMPONENT_BUILD_ARGS += -Dadditionalparam="-Xdoclint:none"
3897N/ACOMPONENT_BUILD_TARGETS = populate-dist
3263N/A
3263N/ACOMPONENT_PRE_BUILD_ACTION = $(MKDIR) $(@D)/tmp
3263N/ACOMPONENT_BUILD_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
3263N/A
3263N/A# We patched in test-build into build.xml which is a copy of
3263N/A# dist but without the depends=populate-dist
3263N/A# because userland infrasture will handle the build and we
3263N/A# need to build tests which are also part of the overall softare build.
3263N/ACOMPONENT_TEST_ARGS += $(COMPONENT_BUILD_ARGS)
3263N/ACOMPONENT_TEST_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
3263N/ACOMPONENT_TEST_TARGETS = test-build
3263N/A
3263N/ACOMPONENT_SYSTEM_TEST_ARGS += -Dsystem-binjar=$(USRSHARELIBDIR)/java/$(COMPONENT_NAME).jar
3263N/ACOMPONENT_SYSTEM_TEST_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
3263N/ACOMPONENT_SYSTEM_TEST_TARGETS = test
3263N/A
3263N/A# Test transforms
3263N/A# remove everything upto "test" which is build noise
3263N/A# remove time
5680N/ACOMPONENT_TEST_TRANSFORMS += \
5680N/A '-e "1,/^test/d"' \
5680N/A '-e "s/.*[Tt]ime.*$$//"'
5680N/A
3263N/AREQUIRED_PACKAGES += runtime/java/jre-8
3263N/A