summaryrefslogtreecommitdiffstats
path: root/tests/depstab
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-08 22:45:10 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-08 22:45:49 (EDT)
commit5178de2eb93aa8171295404c458fcb12549dd627 (patch)
tree1ab521fc475b01611194bfd20b0bc402b2a4977a /tests/depstab
parentcda2e38a28e8236fc5d18fcbd817f2812aa161cd (diff)
Add a unit test for ob_parse_dep.
Diffstat (limited to 'tests/depstab')
-rw-r--r--tests/depstab16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/depstab b/tests/depstab
new file mode 100644
index 0000000..5d19a4b
--- /dev/null
+++ b/tests/depstab
@@ -0,0 +1,16 @@
+# dependency ; pkg ; archqual ; rel ; ver ; arches
+
+foo ;foo
+foo:core-linux-eglibc ;foo;core-linux-eglibc
+foo (>= 1.0) ;foo;;>=;1.0
+foo(>=1.0) ;foo;;>=;1.0
+foo (>= 1.0) ;foo;;>=;1.0
+foo [core-linux-eglibc] ;foo;;;;core-linux-eglibc
+foo[core-linux-eglibc] ;foo;;;;core-linux-eglibc
+foo [core-linux-eglibc] ;foo;;;;core-linux-eglibc
+foo:core-linux-eglibc (>= 1.0) [core-linux-eglibc] \
+ ;foo;core-linux-eglibc;>=;1.0;core-linux-eglibc
+foo:core-linux-eglibc(>=1.0)[core-linux-eglibc] \
+ ;foo;core-linux-eglibc;>=;1.0;core-linux-eglibc
+foo:core-linux-eglibc (>= 1.0) [core-linux-eglibc] \
+ ;foo;core-linux-eglibc;>=;1.0;core-linux-eglibc