Makefile revision 5144
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
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# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
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# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_PROJECT_URL= https://github.com/junit-team/junit/archive
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-r$(COMPONENT_VERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sha256:3048cb3f2b07fada9d85b2c042bbedb93892ef70c1dcfe0594124850418f9ffb
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These ARGS override what is set in build.xml
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_ARGS += -Djavadocdir=${PROTO_DIR}
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_ARGS += -Dadditionalparam="-Xdoclint:none"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
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_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 Updater# Test transforms
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater# remove everything upto "test" which is build noise
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater '-e "1,/^test/d"' \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater '-e "s/.*[Tt]ime.*$$//"'
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# ......................
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# OK (22 tests)