diff options
author | ben <ben@pkgsrc.org> | 2006-09-06 03:37:14 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2006-09-06 03:37:14 +0000 |
commit | 8fbd1d3ce07a8b8bd8ca2c1dd16fb688f713c77a (patch) | |
tree | 9bd3ff75f9f0cc456329ff1222e6a6806bde6765 /regress | |
parent | 5f8b703b6b9156fa36732029fa888474f54e229e (diff) | |
download | pkgsrc-8fbd1d3ce07a8b8bd8ca2c1dd16fb688f713c77a.tar.gz |
Initial import of a test that checks whether MAKE_ENV changes between
build and install phase. MAKE_ENV needs to remain the same for
packages that use scons. Otherwise, in the install step, scons will
take the new MAKE_ENV to mean that the build action changed, and it will
rebuild the package with the wrong configuration and install that.
Diffstat (limited to 'regress')
-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\\.\$" +} |