From 5c7b61db2789680606cc1e1b3e2db5f374d84e4e Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 27 Aug 2004 21:34:58 +0000 Subject: Add some regression tests for correctness of buildlink3 transformations. --- regress/buildlink-transform/Makefile | 62 ++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 regress/buildlink-transform/Makefile (limited to 'regress/buildlink-transform/Makefile') diff --git a/regress/buildlink-transform/Makefile b/regress/buildlink-transform/Makefile new file mode 100644 index 00000000000..3af2d438040 --- /dev/null +++ b/regress/buildlink-transform/Makefile @@ -0,0 +1,62 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/08/27 21:34:58 jlam Exp $ + +DISTNAME= regress-buildlink-transform-0.0 +CATEGORIES= regress +MASTER_SITES= # empty +DISTFILES= # empty + +MAINTAINER= jlam@NetBSD.org +COMMENT= test buildlink wrapper transformation + +.include "../../mk/bsd.prefs.mk" + +USE_BUILDLINK3= yes +NO_CONFIGURE= yes +NO_BUILD= yes +NO_INSTALL= yes +NO_PACKAGE= yes + +REGRESS_ENV= PATH=${PATH} +REGRESS_ENV+= WRAPPER_DEBUG=yes + +REGRESS= ${ECHO} +_WRAPPEES+= REGRESS +_WRAP_ALIASES.REGRESS= regress + +post-wrapper: + @${RM} ${WRAPPER_BINDIR}/${REGRESS} + +.PHONY: regress do-regress + +regress: wrapper + @cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} do-regress PKG_PHASE=wrapper + +do-regress: + @${DO_NADA} + +TEST_RESULT= runtest=`${SETENV} ${REGRESS_ENV} regress $$test`; \ + ${ECHO} "(${.TARGET}) saw: $$test"; \ + ${ECHO} "(${.TARGET}) got: $$runtest"; \ + ${ECHO} "(${.TARGET}) expected: $$expected"; \ + case $$runtest in \ + $$expected) ;; \ + *) exit 1 ;; \ + esac + +TEST_DIR= ${.CURDIR}/tests + +# If RUNTESTS is defined, then just run those tests, otherwise run them all. +.if defined(RUNTESTS) +TEST_MAKEFILES= ${RUNTESTS:S/^/${TEST_DIR}\//:S/$/.mk/} +.else +TEST_MAKEFILES!= \ + ${FIND} ${TEST_DIR} -name "*.mk" -print || ${ECHO} "none" +.endif + +.for _mkfile_ in ${TEST_MAKEFILES} +. if exists(${_mkfile_}) +. include "${_mkfile_}" +. endif +.endfor + +.include "../../mk/bsd.pkg.mk" -- cgit v1.2.3