summaryrefslogtreecommitdiff
path: root/regress/pkg-options/files
diff options
context:
space:
mode:
Diffstat (limited to 'regress/pkg-options/files')
-rw-r--r--regress/pkg-options/files/sets.mk20
-rw-r--r--regress/pkg-options/files/sets.out1
2 files changed, 21 insertions, 0 deletions
diff --git a/regress/pkg-options/files/sets.mk b/regress/pkg-options/files/sets.mk
new file mode 100644
index 00000000000..4d363889590
--- /dev/null
+++ b/regress/pkg-options/files/sets.mk
@@ -0,0 +1,20 @@
+# $NetBSD: sets.mk,v 1.1 2005/07/26 09:00:42 dillo Exp $
+#
+# This file tests non-empty option sets (PKG_OPTIONS_NONEMPTY_SETS).
+#
+
+MAKECONF= /dev/null
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.foo
+PKG_SUPPORTED_OPTIONS= single
+PKG_OPTIONS_NONEMPTY_SETS= abc def
+PKG_OPTIONS_SET.abc= a b c
+PKG_OPTIONS_SET.def= d e f
+
+PKG_OPTIONS.foo= a
+
+.include "../../mk/bsd.options.mk"
+
+.PHONY: test
+test:
+ echo ${PKG_FAIL_REASON:Q}
diff --git a/regress/pkg-options/files/sets.out b/regress/pkg-options/files/sets.out
new file mode 100644
index 00000000000..2c1fedd01ae
--- /dev/null
+++ b/regress/pkg-options/files/sets.out
@@ -0,0 +1 @@
+"At least one of the following options must be selected: "d\ e\ f