pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress/make-env-phases Initial import of a test that ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3e48c6241e6c
branches: trunk
changeset: 518287:3e48c6241e6c
user: ben <ben%pkgsrc.org@localhost>
date: Wed Sep 06 03:37:14 2006 +0000
description:
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:
regress/make-env-phases/Makefile | 28 ++++++++++++++++++++++++++++
regress/make-env-phases/spec | 14 ++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)
diffs (50 lines):
diff -r 4f1bf25ff010 -r 3e48c6241e6c regress/make-env-phases/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/make-env-phases/Makefile Wed Sep 06 03:37:14 2006 +0000
@@ -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@localhost
+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 -r 4f1bf25ff010 -r 3e48c6241e6c regress/make-env-phases/spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/make-env-phases/spec Wed Sep 06 03:37:14 2006 +0000
@@ -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\\.\$"
+}
Home |
Main Index |
Thread Index |
Old Index