mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
Simple testing of reconfiguration to a slightly different one
This commit is contained in:
parent
a0fb0eaa67
commit
0a729b509c
@ -25,9 +25,9 @@
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
t_reconfig(void)
|
t_reconfig(const void *arg)
|
||||||
{
|
{
|
||||||
if (!bt_config_file_parse(BT_CONFIG_FILE))
|
if (!bt_config_file_parse(arg))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
struct symbol *s;
|
struct symbol *s;
|
||||||
@ -78,7 +78,9 @@ main(int argc, char *argv[])
|
|||||||
if (!bt_config_file_parse(BT_CONFIG_FILE))
|
if (!bt_config_file_parse(BT_CONFIG_FILE))
|
||||||
abort();
|
abort();
|
||||||
|
|
||||||
bt_test_suite(t_reconfig, "Testing reconfiguration");
|
bt_test_suite_arg(t_reconfig, BT_CONFIG_FILE ".overlay", "Testing reconfiguration to overlay");
|
||||||
|
bt_test_suite_arg(t_reconfig, BT_CONFIG_FILE, "Testing reconfiguration back");
|
||||||
|
bt_test_suite_arg(t_reconfig, BT_CONFIG_FILE, "Testing reconfiguration to the same file");
|
||||||
|
|
||||||
struct f_bt_test_suite *t;
|
struct f_bt_test_suite *t;
|
||||||
WALK_LIST(t, config->tests)
|
WALK_LIST(t, config->tests)
|
||||||
|
3
filter/test.conf.overlay
Normal file
3
filter/test.conf.overlay
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
attribute int peek_a_boo;
|
||||||
|
|
||||||
|
include "test.conf";
|
Loading…
Reference in New Issue
Block a user