summaryrefslogtreecommitdiffstats
path: root/tests/ob_arch_is_concerned.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ob_arch_is_concerned.rc')
-rw-r--r--tests/ob_arch_is_concerned.rc67
1 files changed, 67 insertions, 0 deletions
diff --git a/tests/ob_arch_is_concerned.rc b/tests/ob_arch_is_concerned.rc
new file mode 100644
index 0000000..76db80e
--- /dev/null
+++ b/tests/ob_arch_is_concerned.rc
@@ -0,0 +1,67 @@
+# Architecture: all
+
+host_arch='amd64-linux-glibc'
+arches='all'
+result='false'
+testcase
+
+host_arch='i686-linux-glibc'
+arches='all'
+result='false'
+testcase
+
+host_arch='all'
+arches='all'
+result='true'
+testcase
+
+# Architecture: any
+
+host_arch='amd64-linux-glibc'
+arches='any'
+result='true'
+testcase
+
+host_arch='i686-linux-glibc'
+arches='any'
+result='true'
+testcase
+
+host_arch='all'
+arches='any'
+result='false'
+testcase
+
+# Architecture: amd64-linux-glibc
+
+host_arch='amd64-linux-glibc'
+arches='amd64-linux-glibc'
+result='true'
+testcase
+
+host_arch='i686-linux-glibc'
+arches='amd64-linux-glibc'
+result='false'
+testcase
+
+host_arch='all'
+arches='amd64-linux-glibc'
+result='false'
+testcase
+
+# Architecture: !amd64-linux-glibc
+
+host_arch='amd64-linux-glibc'
+arches='!amd64-linux-glibc'
+result='false'
+testcase
+
+host_arch='i686-linux-glibc'
+arches='!amd64-linux-glibc'
+result='true'
+testcase
+
+host_arch='all'
+arches='!amd64-linux-glibc'
+result='false'
+testcase