]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Birdtest: filter FIXME
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Tue, 1 Sep 2015 13:10:55 +0000 (15:10 +0200)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Tue, 1 Sep 2015 13:10:55 +0000 (15:10 +0200)
filter/filter_test.c
filter/test_bgp_filtering.conf

index cc1938193028287e5d35c84e2be371d3b8992268..4aaaad7f2e2961e4582af07fc8447d2b53cb4352 100644 (file)
@@ -28,8 +28,7 @@ t_simple(void)
   bt_bird_init();
 
   struct config *cfg = bt_config_parse(
-      BT_CONFIG_PARSE_ROUTER_ID
-      BT_CONFIG_PARSE_KERNEL_DEVICE
+      BT_CONFIG_SIMPLE
       "\n"
       "filter " TESTING_FILTER_NAME "\n"
       "{\n"
@@ -63,10 +62,10 @@ t_simple(void)
 
   bt_assert(filter_same(f,f2));
 
-  bt_debug("f_eval_asn: %u \n", f_eval_asn(f->root));
-  bt_debug("f_eval_int: %u \n", f_eval_int(f->root));
-  struct f_val v = f_eval(f->root, cfg->mem);
-  bt_debug("v type: %d \n", v.type);
+//  bt_debug("f_eval_asn: %u \n", f_eval_asn(f->root));
+//  bt_debug("f_eval_int: %u \n", f_eval_int(f->root));
+//  struct f_val v = f_eval(f->root, cfg->mem);
+//  bt_debug("v type: %d \n", v.type);
 
 
   /* TODO: check the testing filter */
@@ -96,7 +95,7 @@ t_example_config_files(const void *filename_void)
 {
   bt_bird_init();
 
-  const char *filename = filename_void;
+  char *filename = (char *)filename_void;
   bt_debug("Testing BIRD configuration from %s\n", filename);
 
   char *cfg_str = load_file(filename);
@@ -119,9 +118,9 @@ main(int argc, char *argv[])
   bt_test_suite(t_simple, "Simple filter testing");
 
   const char *files[] = {
-    "filter/test.conf",
+//    "filter/test.conf",
     "filter/test.conf2",
-    "filter/test_bgp_filtering.conf",
+//    "filter/test_bgp_filtering.conf",
 #ifdef IPV6
     "filter/test6.conf",
 #endif
index 941dc702d91f7bd8ce09a64e8ccd8cf098a6067f..573cad464959f478c64629e44275b09ccf39c21b 100644 (file)
@@ -109,11 +109,5 @@ filter bgp_out_client_345
   accept;
 }
 
-function __startup()
-{
-  quitbird;
-}
-
-eval __startup();