X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=postlicyd%2Ftst-filters.c;h=1a8db8ba30bcb60acfaced395ce4336a6464a30f;hb=b03c9cfcc3d0080c0467493ac1693465dd2d0e60;hp=0c08f6964037e456ccf1cfe958687936864b5ec7;hpb=b5c79dd713c2e444df9ba50b48718330ad936eb7;p=apps%2Fpfixtools.git diff --git a/postlicyd/tst-filters.c b/postlicyd/tst-filters.c index 0c08f69..1a8db8b 100644 --- a/postlicyd/tst-filters.c +++ b/postlicyd/tst-filters.c @@ -144,7 +144,6 @@ static bool run_greylisttest(const config_t *config, const char *basepath) // filter_t *greylist2; #define QUERY(Q) \ - printf("Reading greylist_" STR(Q) "\n"); \ if (read_query(basepath, "greylist_" STR(Q), buff_##Q, NULL, &Q) == NULL) { \ return false; \ } @@ -167,13 +166,17 @@ static bool run_greylisttest(const config_t *config, const char *basepath) /* Test greylist */ TEST("greylisted", filter_test(greylist1, &q1, HTK_GREYLIST)); - TEST("greylisted", filter_test(greylist1, &q1, HTK_GREYLIST)); + TEST("too_fast", filter_test(greylist1, &q1, HTK_GREYLIST)); + sleep(5); + TEST("too_slow", filter_test(greylist1, &q1, HTK_GREYLIST)); sleep(2); TEST("whitelisted", filter_test(greylist1, &q1, HTK_WHITELIST)); TEST("other_greylisted", filter_test(greylist1, &q2, HTK_GREYLIST)); TEST("auto_whitelisted", filter_test(greylist1, &q1, HTK_WHITELIST)); TEST("other_auto_whitelisted", filter_test(greylist1, &q2, HTK_WHITELIST)); TEST("greylisted", filter_test(greylist1, &q3, HTK_GREYLIST)); + sleep(10); + TEST("cleanup", filter_test(greylist1, &q1, HTK_GREYLIST)); return ok; }