X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Funit%2Ffrontend%2Fparser_test.c;h=bca86452dffc44afe22f2fb5b3418eaa7e6f42f3;hp=1b5cb242e9c94b3bc4c45eb3e4e638f6f5702d44;hb=b4d485cde96751e1ec832d0e75a3e6081006a1a4;hpb=05f8e6e8f6132ef71e51280a75a9ad9aa0c00665 diff --git a/t/unit/frontend/parser_test.c b/t/unit/frontend/parser_test.c index 1b5cb24..bca8645 100644 --- a/t/unit/frontend/parser_test.c +++ b/t/unit/frontend/parser_test.c @@ -53,10 +53,15 @@ START_TEST(test_parse) /* valid commands */ { "FETCH 'host'", -1, 1, CONNECTION_FETCH }, + { "FETCH 'host' FILTER " + "host = 'host'", -1, 1, CONNECTION_FETCH }, + { "LIST", -1, 1, CONNECTION_LIST }, { "LIST -- comment", -1, 1, CONNECTION_LIST }, { "LIST;", -1, 1, CONNECTION_LIST }, { "LIST; INVALID", 5, 1, CONNECTION_LIST }, + { "LIST FILTER " + "host = 'host'", -1, 1, CONNECTION_LIST }, { "LOOKUP hosts", -1, 1, CONNECTION_LOOKUP }, { "LOOKUP hosts MATCHING " @@ -185,6 +190,11 @@ START_TEST(test_parse) { "LIST; INVALID", 8, -1, 0 }, { "/* some incomplete", -1, -1, 0 }, + { "LIST MATCHING " + "host = 'host'", -1, -1, 0 }, + { "FETCH 'host' MATCHING " + "host = 'host'", -1, -1, 0 }, + { "LOOKUP foo", -1, -1, 0 }, { "LOOKUP foo MATCHING " "host = 'host'", -1, -1, 0 },