pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress/pkg-options two new test cases:
details: https://anonhg.NetBSD.org/pkgsrc/rev/cf254fd05985
branches: trunk
changeset: 494708:cf254fd05985
user: dillo <dillo%pkgsrc.org@localhost>
date: Sat May 28 12:16:43 2005 +0000
description:
two new test cases:
- all: test overrides and PKG_LEGACY_VARS
- unsupported: test that unsupported option in PKG_OPTIONS.xxx causes failure
diffstat:
regress/pkg-options/Makefile | 4 ++--
regress/pkg-options/files/all.mk | 25 +++++++++++++++++++++++++
regress/pkg-options/files/all.out | 1 +
regress/pkg-options/files/unsupported.mk | 18 ++++++++++++++++++
regress/pkg-options/files/unsupported.out | 1 +
5 files changed, 47 insertions(+), 2 deletions(-)
diffs (79 lines):
diff -r be927a9b476b -r cf254fd05985 regress/pkg-options/Makefile
--- a/regress/pkg-options/Makefile Sat May 28 12:14:34 2005 +0000
+++ b/regress/pkg-options/Makefile Sat May 28 12:16:43 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2005/05/16 09:09:24 rillig Exp $
+# $NetBSD: Makefile,v 1.3 2005/05/28 12:16:43 dillo Exp $
#
DISTNAME= regress-pkg-options-1.0
@@ -8,7 +8,7 @@
MAINTAINER= rillig%NetBSD.org@localhost
COMMENT= Test bsd.options.mk framework
-REGRESS_TESTS= order simple
+REGRESS_TESTS= all order simple unsupported
do-test:
.for t in ${REGRESS_TESTS}
diff -r be927a9b476b -r cf254fd05985 regress/pkg-options/files/all.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/files/all.mk Sat May 28 12:16:43 2005 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: all.mk,v 1.1 2005/05/28 12:16:43 dillo Exp $
+#
+# This file test a very simple options configuration.
+#
+
+MAKECONF= /dev/null
+
+PKG_OPTIONS_LEGACY_VARS+=USE_F:f
+PKG_OPTIONS_LEGACY_VARS+=USE_G:g
+PKG_OPTIONS_LEGACY_VARS+=NO_H:-h
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.foo
+PKG_SUPPORTED_OPTIONS= a b c d e f g h
+PKG_SUGGESTED_OPTIONS= b c e h
+PKG_DEFAULT_OPTIONS= a -b d
+PKG_OPTIONS.foo= -c -d f -g
+USE_F=YES
+USE_G=YES
+NO_H=YES
+
+.include "../../mk/bsd.options.mk"
+
+.PHONY: test
+test:
+ echo ${PKG_OPTIONS:M*:Q}
diff -r be927a9b476b -r cf254fd05985 regress/pkg-options/files/all.out
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/files/all.out Sat May 28 12:16:43 2005 +0000
@@ -0,0 +1,1 @@
+a e f
diff -r be927a9b476b -r cf254fd05985 regress/pkg-options/files/unsupported.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/files/unsupported.mk Sat May 28 12:16:43 2005 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: unsupported.mk,v 1.1 2005/05/28 12:16:43 dillo Exp $
+#
+# This file test the effect of the PKG_DEFAULT_OPTIONS variable.
+#
+
+MAKECONF= /dev/null
+
+PKG_SUPPORTED_OPTIONS= a
+PKG_SUGGESTED_OPTIONS=
+PKG_OPTIONS_VAR= PKG_OPTIONS.foo
+PKG_DEFAULT_OPTIONS=
+PKG_OPTIONS.foo= b
+
+.include "../../mk/bsd.options.mk"
+
+.PHONY: test
+test:
+ echo ${PKG_FAIL_REASON:Q}
diff -r be927a9b476b -r cf254fd05985 regress/pkg-options/files/unsupported.out
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/pkg-options/files/unsupported.out Sat May 28 12:16:43 2005 +0000
@@ -0,0 +1,1 @@
+The following selected options are not supported: b
Home |
Main Index |
Thread Index |
Old Index