diff options
Diffstat (limited to 'regress/make-env-phases')
-rw-r--r-- | regress/make-env-phases/Makefile | 28 | ||||
-rw-r--r-- | regress/make-env-phases/spec | 14 |
2 files changed, 42 insertions, 0 deletions
diff --git a/regress/make-env-phases/Makefile b/regress/make-env-phases/Makefile new file mode 100644 index 00000000000..1def4782a82 --- /dev/null +++ b/regress/make-env-phases/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/09/06 03:37:14 ben Exp $ +# + +DISTNAME= make-env-phases-1.0 +CATEGORIES= regress +MASTER_SITES= # none +DISTFILES= # none + +MAINTAINER= tech-pkg@NetBSD.org +COMMENT= Tests whether MAKE_ENV changes between build and install phase + +NO_CHECKSUM= yes +NO_CONFIGURE= yes +NO_PACKAGE= yes +WRKSRC= ${WRKDIR} + +do-build: + @cd ${WRKDIR} && \ + echo "${MAKE_ENV}" >build-make-env.txt + +do-install: + @cd ${WRKDIR} && \ + echo "${MAKE_ENV}" >install-make-env.txt && \ + ${CMP} build-make-env.txt install-make-env.txt >/dev/null && \ + echo "The variable MAKE_ENV remains unchanged." + +.include "../../devel/zlib/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/regress/make-env-phases/spec b/regress/make-env-phases/spec new file mode 100644 index 00000000000..3da959aaa5a --- /dev/null +++ b/regress/make-env-phases/spec @@ -0,0 +1,14 @@ +# $NetBSD: spec,v 1.1.1.1 2006/09/06 03:37:14 ben Exp $ +# + +do_test() { + { + ${TEST_MAKE} "clean" + ${TEST_MAKE} "build" + ${TEST_MAKE} "do-install" + } 1>"${TEST_OUTFILE}" 2>&1 +} + +check_result() { + output_require "^The variable MAKE_ENV remains unchanged\\.\$" +} |