X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Funit%2Fcore%2Fstore_lookup_test.c;h=4e3e6971b4b7ad07529c74c1fc652a0fd51ca768;hp=67f2e05cbeff6bf31f301fd938a7b1202bbb92da;hb=4dc515a84e889641a7cf93171ac60bee2d5b370c;hpb=596bcf4487836a640a03ccbad28763694181cab4 diff --git a/t/unit/core/store_lookup_test.c b/t/unit/core/store_lookup_test.c index 67f2e05..4e3e697 100644 --- a/t/unit/core/store_lookup_test.c +++ b/t/unit/core/store_lookup_test.c @@ -405,6 +405,10 @@ START_TEST(test_parse_cmp) { "host", "attr", "=", "hostname", -1 }, { "host", "attr", "!=", "hostname", -1 }, { "host", "name", "&^", "hostname", -1 }, + { "host", "name", "<", "hostname", -1 }, + { "host", "name", "<=", "hostname", -1 }, + { "host", "name", ">=", "hostname", -1 }, + { "host", "name", ">", "hostname", -1 }, { "service", "name", "=", "srvname", MATCHER_NAME }, { "service", "name", "!=", "srvname", MATCHER_NOT }, { "service", "name", "=~", "srvname", MATCHER_NAME }, @@ -412,15 +416,28 @@ START_TEST(test_parse_cmp) { "service", "attr", "=", "srvname", -1 }, { "service", "attr", "!=", "srvname", -1 }, { "service", "name", "&^", "srvname", -1 }, + { "service", "name", "<", "srvname", -1 }, + { "service", "name", "<=", "srvname", -1 }, + { "service", "name", ">=", "srvname", -1 }, + { "service", "name", ">", "srvname", -1 }, { "attribute", "name", "=", "attrname", MATCHER_NAME }, { "attribute", "name", "!=", "attrname", MATCHER_NOT }, { "attribute", "name", "=~", "attrname", MATCHER_NAME }, { "attribute", "name", "!~", "attrname", MATCHER_NOT }, + { "attribute", "name", "<", "attrname", -1 }, + { "attribute", "name", "<=", "attrname", -1 }, + { "attribute", "name", ">=", "attrname", -1 }, + { "attribute", "name", ">", "attrname", -1 }, { "attribute", "attr", "=", "attrname", MATCHER_ATTR }, { "attribute", "attr", "!=", "attrname", MATCHER_NOT }, { "attribute", "attr", "=~", "attrname", MATCHER_ATTR }, { "attribute", "attr", "!~", "attrname", MATCHER_NOT }, { "attribute", "attr", "&^", "attrname", -1 }, + { "attribute", "attr", "<", "attrname", MATCHER_LT }, + { "attribute", "attr", "<=", "attrname", MATCHER_LE }, +/* { "attribute", "attr", "=", "attrname", MATCHER_EQ }, */ + { "attribute", "attr", ">=", "attrname", MATCHER_GE }, + { "attribute", "attr", ">", "attrname", MATCHER_GT }, { "foo", "name", "=", "bar", -1 }, { "foo", "attr", "=", "bar", -1 }, };