pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress Added a regression test for the SUBST framewor...
details: https://anonhg.NetBSD.org/pkgsrc/rev/94c8dc06d5a9
branches: trunk
changeset: 526326:94c8dc06d5a9
user: rillig <rillig%pkgsrc.org@localhost>
date: Wed Mar 07 21:22:20 2007 +0000
description:
Added a regression test for the SUBST framework, especially the newly
introduced SUBST_VARS.
diffstat:
regress/Makefile | 3 ++-
regress/subst/Makefile | 31 +++++++++++++++++++++++++++++++
regress/subst/vars.mk | 5 +++++
3 files changed, 38 insertions(+), 1 deletions(-)
diffs (61 lines):
diff -r 535c79965ff2 -r 94c8dc06d5a9 regress/Makefile
--- a/regress/Makefile Wed Mar 07 20:48:04 2007 +0000
+++ b/regress/Makefile Wed Mar 07 21:22:20 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/09/06 03:37:54 ben Exp $
+# $NetBSD: Makefile,v 1.16 2007/03/07 21:22:20 rillig Exp $
#
COMMENT= Regression tests for pkgsrc infrastructure
@@ -15,6 +15,7 @@
SUBDIR+= pkg-options
SUBDIR+= pkgfail
SUBDIR+= print-plist
+SUBDIR+= subst
SUBDIR+= tools
.include "../mk/bsd.pkg.subdir.mk"
diff -r 535c79965ff2 -r 94c8dc06d5a9 regress/subst/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/subst/Makefile Wed Mar 07 21:22:20 2007 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2007/03/07 21:22:20 rillig Exp $
+#
+
+DISTNAME= subst-1.0
+CATEGORIES= regress
+DISTFILES= # none
+
+MAINTAINER= rillig%NetBSD.org@localhost
+COMMENT= Test the SUBST framework
+
+NO_CHECKSUM= yes
+WRKSRC= ${WRKDIR}
+USE_TOOLS+= diff
+
+SUBST_CLASSES+= vars
+SUBST_STAGE.vars= do-build
+SUBST_FILES.vars= vars
+SUBST_VARS.vars= PLAIN DQUOT SQUOT DELIM EVIL1
+
+.include "${.PARSEDIR}/vars.mk"
+
+pre-build:
+ for v in ${SUBST_VARS.vars}; do echo "$$v=@$$v@"; done > ${WRKSRC}/vars
+
+do-build:
+ @${DO_NADA}
+
+post-build:
+ diff vars.mk ${WRKSRC}/vars
+
+.include "../../mk/bsd.pkg.mk"
diff -r 535c79965ff2 -r 94c8dc06d5a9 regress/subst/vars.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/subst/vars.mk Wed Mar 07 21:22:20 2007 +0000
@@ -0,0 +1,5 @@
+PLAIN=hello_world
+DQUOT="hello world"
+SQUOT='hello world'
+DELIM=hello, world
+EVIL1=h\ello \0\0\0 \\\"\' foo && bar
Home |
Main Index |
Thread Index |
Old Index