Implement test target for USE_ANT=yes.

This commit is contained in:
Jung-uk Kim
2017-04-05 23:31:18 +00:00
parent d594a132cf
commit 90dd89a00e

View File

@@ -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
#-----------------------------------------------------------------------------