summaryrefslogtreecommitdiffstats
path: root/tests/ob_match_arch.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ob_match_arch.rc')
-rw-r--r--tests/ob_match_arch.rc49
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/ob_match_arch.rc b/tests/ob_match_arch.rc
new file mode 100644
index 0000000..10135d7
--- /dev/null
+++ b/tests/ob_match_arch.rc
@@ -0,0 +1,49 @@
+set arch all
+set arch_field all
+set result true
+test
+
+set arch foo-bar-baz
+set arch_field any
+set result true
+test
+
+set arch foo-bar-baz
+set arch_field any all
+set result true
+test
+
+set arch all
+set arch_field any all
+set result true
+test
+
+set arch foo-bar-baz
+set arch_field foo-any-any
+set result true
+test
+
+set arch foo-bar-baz
+set arch_field foo-bar-qux
+set result false
+test
+
+set arch foo-bar-baz
+set arch_field any-qux-any any-bar-any
+set result true
+test
+
+set arch foo-bar-baz
+set arch_field any-qux-any any-quux-any
+set result false
+test
+
+set arch all
+set arch_field any
+set result false
+test
+
+set arch all
+set arch_field foo-any-any
+set result false
+test