diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 23:34:34 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-25 23:34:34 +0100 |
commit | f9c422250bd32978c104ffdc2a801be75dbf9068 (patch) | |
tree | 6a25baaa774c0aaf4fc2f1b7b54a49a0049c5ca0 | |
parent | d83b1c9e067f707ec51ea14385ebe5ce000d0c73 (diff) | |
parent | 0a729b509c2c4476cbf66c64620a863e6a381c8c (diff) |
Merge commit '0a729b50' into wireguard-next-tmp7-1
-rw-r--r-- | filter/filter_test.c | 8 | ||||
-rw-r--r-- | filter/test.conf.overlay | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/filter/filter_test.c b/filter/filter_test.c index e8e8b747..782b3c02 100644 --- a/filter/filter_test.c +++ b/filter/filter_test.c @@ -25,9 +25,9 @@ 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; struct symbol *s; @@ -78,7 +78,9 @@ main(int argc, char *argv[]) if (!bt_config_file_parse(BT_CONFIG_FILE)) 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; WALK_LIST(t, config->tests) diff --git a/filter/test.conf.overlay b/filter/test.conf.overlay new file mode 100644 index 00000000..5967ba90 --- /dev/null +++ b/filter/test.conf.overlay @@ -0,0 +1,3 @@ +attribute int peek_a_boo; + +include "test.conf"; |