diff options
author | Maria Matejka <mq@ucw.cz> | 2023-06-23 09:05:48 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-09-24 15:40:18 +0200 |
commit | 0a729b509c2c4476cbf66c64620a863e6a381c8c (patch) | |
tree | c2dc7dcfd9085f5d5de18405e3174fa0b8f312e1 | |
parent | a0fb0eaa6780e60b7c5434dfe0e2ed402e5a4ea4 (diff) |
Simple testing of reconfiguration to a slightly different one
-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"; |