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