diff options
author | jlam <jlam> | 2004-08-27 21:34:58 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-08-27 21:34:58 +0000 |
commit | 5c7b61db2789680606cc1e1b3e2db5f374d84e4e (patch) | |
tree | cd7446ed70c1c18d3fd2b455d8d827d66690ae6e /regress/buildlink-transform/Makefile | |
parent | ad77f613c1e7d0b06b9c6bef7ceff4876b21ef6b (diff) | |
download | pkgsrc-5c7b61db2789680606cc1e1b3e2db5f374d84e4e.tar.gz |
Add some regression tests for correctness of buildlink3 transformations.
Diffstat (limited to 'regress/buildlink-transform/Makefile')
-rw-r--r-- | regress/buildlink-transform/Makefile | 62 |
1 files changed, 62 insertions, 0 deletions
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" |