0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-10-18 18:08:45 +00:00
bird/test/bt-utils.h
Pavel Tvrdík daaa115943 Birdtest: add some utils to framework
and updates old tests
2015-08-19 14:57:34 +02:00

23 lines
642 B
C

/*
* BIRD Test -- Utils for testing parsing configuration file
*
* (c) 2015 CZ.NIC z.s.p.o.
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#ifndef _BIRDTEST_UTILS_H_
#define _BIRDTEST_UTILS_H_
#define BT_CONFIG_PARSE_ROUTER_ID "router id 10.0.0.1; \n"
#define BT_CONFIG_PARSE_KERNEL_DEVICE "protocol device {} \n"
#define BT_CONFIG_SIMPLE BT_CONFIG_PARSE_ROUTER_ID BT_CONFIG_PARSE_KERNEL_DEVICE
void bt_bird_init(void);
void bt_bird_init_with_simple_configuration(void);
struct config *bt_config_parse(const char *str_cfg);
uint naive_pow(uint base, uint power);
#endif /* _BIRDTEST_UTILS_H_ */