summaryrefslogtreecommitdiffstats
path: root/tests/ob_reduce_deps.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ob_reduce_deps.rc')
-rw-r--r--tests/ob_reduce_deps.rc71
1 files changed, 71 insertions, 0 deletions
diff --git a/tests/ob_reduce_deps.rc b/tests/ob_reduce_deps.rc
new file mode 100644
index 0000000..ff1acfc
--- /dev/null
+++ b/tests/ob_reduce_deps.rc
@@ -0,0 +1,71 @@
+# Normal and union AND-lists.
+
+type='n'
+host_arch='core-linux-eglibc'
+deps='foo, bar'
+result='foo, bar'
+testcase
+
+type='n'
+host_arch='core-linux-eglibc'
+deps='foo,bar'
+result='foo, bar'
+testcase
+
+type='n'
+host_arch='core-linux-eglibc'
+deps='foo, bar'
+result='foo, bar'
+testcase
+
+type='u'
+host_arch='core-linux-eglibc'
+deps='foo, bar'
+result='foo, bar'
+testcase
+
+type='u'
+host_arch='core-linux-eglibc'
+deps='foo,bar'
+result='foo, bar'
+testcase
+
+type='u'
+host_arch='core-linux-eglibc'
+deps='foo, bar'
+result='foo, bar'
+testcase
+
+# Normal and union OR-lists.
+
+type='n'
+host_arch='core-linux-eglibc'
+deps='foo | bar'
+result='foo | bar'
+testcase
+
+type='n'
+host_arch='core-linux-eglibc'
+deps='foo|bar'
+result='foo | bar'
+testcase
+
+type='n'
+host_arch='core-linux-eglibc'
+deps='foo | bar'
+result='foo | bar'
+testcase
+
+# Normal and union AND-lists with arch specs.
+
+type='n'
+host_arch='core-linux-eglibc'
+deps='foo [core-linux-eglibc], bar [!core-linux-eglibc]'
+result='foo'
+testcase
+
+type='u'
+host_arch='core-linux-eglibc'
+deps='foo [core-linux-eglibc], bar [!core-linux-eglibc]'
+result='foo'
+testcase