aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.java.mk
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2017-04-06 07:31:18 +0800
committerjkim <jkim@FreeBSD.org>2017-04-06 07:31:18 +0800
commit965bcfd0e97acb8c3094425685b4c348c4235694 (patch)
tree57eb862e3594a5d895d654c1dcd53f3731eae138 /Mk/bsd.java.mk
parente27324465a15956ec313ae045984fa53d51d7068 (diff)
downloadfreebsd-ports-gnome-965bcfd0e97acb8c3094425685b4c348c4235694.tar.gz
freebsd-ports-gnome-965bcfd0e97acb8c3094425685b4c348c4235694.tar.zst
freebsd-ports-gnome-965bcfd0e97acb8c3094425685b4c348c4235694.zip
Implement test target for USE_ANT=yes.
Diffstat (limited to 'Mk/bsd.java.mk')
-rw-r--r--Mk/bsd.java.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk
index b7e6ebb3199d..d28596f069af 100644
--- a/Mk/bsd.java.mk
+++ b/Mk/bsd.java.mk
@@ -393,6 +393,13 @@ do-build:
@(cd ${BUILD_WRKSRC}; \
${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET})
. endif
+. if !target(do-test) && defined(TEST_TARGET)
+TEST_DEPENDS+= ${DEPEND_JAVA}
+TEST_DEPENDS+= ${ANT}:devel/apache-ant
+do-test:
+ @(cd ${TEST_WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${TEST_TARGET})
+. endif
. endif
#-----------------------------------------------------------------------------