diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-02 01:38:43 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-02 01:38:43 (EDT) |
commit | 51a47d87ae5b8b219a5c6bd918a602e3ec8ae076 (patch) | |
tree | 495f6a600b390ebb252b3cda0a7f54470d053327 /tests/ob_match_arch.rc | |
parent | 06d757be67965ebe669d8d2710417bacb8ff1a46 (diff) |
Add "ob_match_arch" unit test.
Diffstat (limited to 'tests/ob_match_arch.rc')
-rw-r--r-- | tests/ob_match_arch.rc | 49 |
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 |