pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/regress/pkg-options Imported testsuite for the bsd.opt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cae9bf1dab01
branches:  trunk
changeset: 493869:cae9bf1dab01
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon May 16 00:09:03 2005 +0000

description:
Imported testsuite for the bsd.options.mk framework.

diffstat:

 regress/pkg-options/Makefile         |  21 +++++++++++++++++++++
 regress/pkg-options/files/order.mk   |  17 +++++++++++++++++
 regress/pkg-options/files/order.out  |   1 +
 regress/pkg-options/files/simple.mk  |  16 ++++++++++++++++
 regress/pkg-options/files/simple.out |   1 +
 regress/pkg-options/spec             |   9 +++++++++
 6 files changed, 65 insertions(+), 0 deletions(-)

diffs (89 lines):

diff -r b66e53e4cfe7 -r cae9bf1dab01 regress/pkg-options/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/Makefile      Mon May 16 00:09:03 2005 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/05/16 00:09:03 rillig Exp $
+#
+
+DISTNAME=      regress-pkg-options-1.0
+CATEGORIES=    regress
+DISTFILES=     # empty
+
+MAINTAINER=    rillig%NetBSD.org@localhost
+COMMENT=       Test bsd.options.mk framework
+
+REGRESS_TESTS= simple
+
+do-test:
+.for t in ${REGRESS_TESTS}
+       @${_PKG_SILENT}${_PKG_DEBUG}                                    \
+       ${ECHO_MSG} "Running testcase "${t:Q};                          \
+       ${MAKE} ${MAKEFLAGS} -s -f ${FILESDIR:Q}/${t:Q}.mk test         \
+       | diff - ${FILESDIR:Q}/${t:Q}.out
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff -r b66e53e4cfe7 -r cae9bf1dab01 regress/pkg-options/files/order.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/files/order.mk        Mon May 16 00:09:03 2005 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: order.mk,v 1.1.1.1 2005/05/16 00:09:03 rillig Exp $
+#
+# This file test the effect of the PKG_DEFAULT_OPTIONS variable.
+#
+
+MAKECONF=              /dev/null
+
+PKG_SUPPORTED_OPTIONS= a b c d e
+PKG_SUGGESTED_OPTIONS=   b c   e
+PKG_OPTIONS_VAR=       PKG_OPTIONS.unused
+PKG_DEFAULT_OPTIONS=   -b b d inet6
+
+.include "../../mk/bsd.options.mk"
+
+.PHONY: test
+test:
+       echo ${PKG_OPTIONS:Q}
diff -r b66e53e4cfe7 -r cae9bf1dab01 regress/pkg-options/files/order.out
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/files/order.out       Mon May 16 00:09:03 2005 +0000
@@ -0,0 +1,1 @@
+b c d e
diff -r b66e53e4cfe7 -r cae9bf1dab01 regress/pkg-options/files/simple.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/files/simple.mk       Mon May 16 00:09:03 2005 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: simple.mk,v 1.1.1.1 2005/05/16 00:09:03 rillig Exp $
+#
+# This file test a very simple options configuration.
+#
+
+MAKECONF=              /dev/null
+
+PKG_SUPPORTED_OPTIONS= a b c d e
+PKG_SUGGESTED_OPTIONS=   b c   e
+PKG_OPTIONS_VAR=       PKG_OPTIONS.unused
+
+.include "../../mk/bsd.options.mk"
+
+.PHONY: test
+test:
+       echo ${PKG_OPTIONS:M*:Q}
diff -r b66e53e4cfe7 -r cae9bf1dab01 regress/pkg-options/files/simple.out
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/files/simple.out      Mon May 16 00:09:03 2005 +0000
@@ -0,0 +1,1 @@
+b c e
diff -r b66e53e4cfe7 -r cae9bf1dab01 regress/pkg-options/spec
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/spec  Mon May 16 00:09:03 2005 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: spec,v 1.1.1.1 2005/05/16 00:09:03 rillig Exp $
+#
+
+MAKEARGS_TEST=do-test
+MAKEARGS_CLEAN= # nothing
+
+check_result() {
+       exit_status 0
+}



Home | Main Index | Thread Index | Old Index