Makefile revision 5144
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../make-rules/shared-macros.mk
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User
c3dc968140ab7f04795acc7835e4e89ccb0c0a27Tinderbox UserCOMPONENT_NAME= junit
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_VERSION= 4.11
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_PROJECT_URL= https://github.com/junit-team/junit/archive
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-r$(COMPONENT_VERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE= r$(COMPONENT_VERSION).zip
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sha256:3048cb3f2b07fada9d85b2c042bbedb93892ef70c1dcfe0594124850418f9ffb
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUGDB= utility/junit
c3dc968140ab7f04795acc7835e4e89ccb0c0a27Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTPNO= 9070
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(WS_MAKE_RULES)/ant.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(WS_MAKE_RULES)/ips.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These ARGS override what is set in build.xml
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_ARGS += -Ddist=${PROTO_DIR}
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_ARGS += -Djavadocdir=${PROTO_DIR}
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_ARGS += -Dversion-status=""
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_ARGS += -Dadditionalparam="-Xdoclint:none"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_TARGETS = populate-dist
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_PRE_BUILD_ACTION = $(MKDIR) $(@D)/tmp
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# We patched in test-build into build.xml which is a copy of
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# dist but without the depends=populate-dist
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# because userland infrasture will handle the build and we
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# need to build tests which are also part of the overall softare build.
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterCOMPONENT_TEST_ARGS += $(COMPONENT_BUILD_ARGS)
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterCOMPONENT_TEST_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterCOMPONENT_TEST_TARGETS = test-build
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterCOMPONENT_SYSTEM_TEST_ARGS += -Dsystem-binjar=/usr/share/lib/java/$(COMPONENT_NAME).jar
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterCOMPONENT_SYSTEM_TEST_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterCOMPONENT_SYSTEM_TEST_TARGETS = test
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater# Test transforms
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater# remove everything upto "test" which is build noise
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater# remove time
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterCOMPONENT_TEST_TRANSFORMS += \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater '-e "1,/^test/d"' \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater '-e "s/.*[Tt]ime.*$$//"'
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsASLR_MODE = $(ASLR_NOT_APPLICABLE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsbuild: $(BUILD_32)
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall: build
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews# Another test is:
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews# To test after you have installed the resulting package do:
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews# $ java -cp /usr/share/lib/java/junit.jar:/usr/share/doc/junit/samples/org \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# junit/samples/money/MoneyTest
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# ......................
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic Updater# Time: 0.003
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# OK (22 tests)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewstest: $(TEST_32)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewssystem-test: build $(SYSTEM_TEST_32)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += runtime/java/jre-8
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic Updater