Pavel Tvrdík
5015dceee0
SHA1: Remove original libucw unit tests
2015-04-23 15:19:26 +02:00
Pavel Tvrdík
24ff638db2
SHA1: Use get_u32 and put_u32
2015-04-23 11:27:36 +02:00
Pavel Tvrdík
dd78aae55c
SHA-1: safer endianity
2015-04-22 17:45:14 +02:00
Pavel Tvrdík
57453a3c5f
Fixing copyrights at SHA-1 and HMAC-SHA1 libraries
2015-04-22 12:12:05 +02:00
Pavel Tvrdík
828e091013
Add SHA-1 and HMAC-SHA1 libraries with unit tests
...
Refactore MD5 tests
2015-04-22 11:15:38 +02:00
Pavel Tvrdík
5245c4dd6d
Birdtest: add io_log_event() mockup
2015-04-20 16:50:51 +02:00
Pavel Tvrdík
259e7e0f67
Merge branch 'master' into birdtest
2015-04-20 16:27:48 +02:00
Pavel Tvrdík
a22d36256e
Birdtest: Refactore functions (only rename)
2015-04-20 13:50:33 +02:00
Ondrej Zajicek
deec752ef9
NEWS and version update
2015-04-20 12:27:00 +02:00
Ondrej Zajicek
b867a87c2f
Fixes port range socket option
2015-04-19 00:31:59 +02:00
Ondrej Zajicek
ef3cac669c
OSPF: Fixes handling of external routes with immediate gw
...
The bug caused that received external LSAs with locally reachable
next hops were ignored. I wonder why nobody noticed it sooner.
2015-04-18 13:26:45 +02:00
Pavel Tvrdík
5419d2a3c5
Birdtest: Compability bug fixes
...
Tested on Ubuntu & FreeBSD & NetBSD & OpenBSD
2015-04-15 15:42:43 +02:00
Pavel Tvrdík
2bb3d343e9
Add .gitignore
2015-04-15 12:16:42 +02:00
Pavel Tvrdík
60c2d0c39f
Birdtest: Add tests suites for SLIST datastructure
2015-04-15 12:14:36 +02:00
Pavel Tvrdík
979dc9e65e
Birdtest: Refactore some tests
...
lib/bitops_test.c
lib/ip_test.c
lib/lists_test.c
lib/md5_test.c
2015-04-15 12:11:50 +02:00
Pavel Tvrdík
81b2e266fb
Birdtest: Build system: improve dependencies
...
while a some source file is changed, the test suite will recompile
2015-04-15 12:07:10 +02:00
Pavel Tvrdík
1ce8d33b80
Birdtest: Improve the testing framework
...
- non-blocking asserts, only set bt_test_suite_success
- unification of testing output from bt_assert_fn_in_out and bt_assert_out_fn_in
2015-04-15 11:51:24 +02:00
Pavel Tvrdík
84dbe05f93
Birdtest: Extend IP addr funcs Tests
2015-04-13 10:59:20 +02:00
Pavel Tvrdík
db781b9004
Birdtest: Rewrite MD5 unit test
2015-04-13 10:57:47 +02:00
Pavel Tvrdík
a84b9c62d1
Birdtest: Add bt_assert_fn_in_*
...
- Improved test output formating: aligned, colored [ OK ] / [FAIL]
- A failed assert will not interupt the whole test suite
- bt_assert_fn_in_* are macros for testing input and output from the some
function
2015-04-13 10:52:21 +02:00
Pavel Tvrdík
947018a7ef
Birdtest: bt_test_case() -> bt_test_suite()
2015-04-13 10:42:10 +02:00
Pavel Tvrdík
8f5f52838e
Birdtest: Improve a tests lancher script
2015-04-13 10:33:04 +02:00
Ondrej Zajicek
304ac2e861
Minor fixes
2015-04-12 10:47:17 +02:00
Pavel Tvrdík
9a49b70d1b
Birdtest: Add IP addr funcs Tests (not complete)
2015-04-03 12:55:36 +02:00
Pavel Tvrdík
89ee134e2f
Birdtest: Add Hash Tests
2015-04-03 12:54:54 +02:00
Pavel Tvrdík
83131f3fa5
Birdtest: Add Event Processing Tests
...
Add test/birdtest_support.h for provisional hack a build system
2015-04-03 12:52:44 +02:00
Pavel Tvrdík
e331e3635e
Birdtest: Small improve in checksum test
2015-04-03 12:51:05 +02:00
Pavel Tvrdík
a35f717f0f
lib/ip.c: add parenthesis for better readability
2015-04-03 12:49:21 +02:00
Pavel Tvrdík
e7bb2daf1f
Birdtest: improve bt_check macro
...
Now dat for testing can be defined somelike this:
struct in_out_data_ {
char *in;
u32 out;
} in_out_data[] = {
{
.in = "192.168.1.128",
.out = build_ip4(192, 168, 1, 128),
},
{
.in = "255.255.255.255",
.out = build_ip4(255, 255, 255, 255),
},
...
};
bt_check(ip4_pton_, in_out_data, "%s", "0x%08X");
2015-04-03 12:46:04 +02:00
Pavel Tvrdík
1bdf2a54ed
Birdtest: move def bt_rand_num() at a better place
2015-04-03 12:44:47 +02:00
Pavel Tvrdík
4b5e005d57
Birdtest: Add printing backtrace while segfault
2015-04-03 12:42:49 +02:00
Pavel Tvrdík
a0ab20320c
Birdtest: Improve build scripts
...
Add make rule 'clean-tests'
Add tests sources to dependecy generator
2015-04-03 12:40:07 +02:00
Ondrej Zajicek
d924d5a562
BGP: Fixes serious bug in TX handling
...
Under some circumstances and heavy load, TX could be postponed
until the session fails with hold timer expired.
Thanks to Javor Kliachev for making the bug reproductible.
2015-04-01 00:10:00 +02:00
Ondrej Zajicek
16a3254c4c
Understand IFF_MULTICAST flag on ifaces in Linux
...
Unfortunately, some interfaces support multicast but do not have
this flag set, so we use it only as a positive hint.
Thanks to Clint Armstrong for noticing the problem.
2015-03-31 23:59:40 +02:00
Pavel Tvrdík
d73e21e611
Birdtest: IP One-Complement Checksum Tests
2015-03-30 18:54:09 +02:00
Pavel Tvrdík
7379684211
Birdtest: small fix in md5_test
2015-03-30 18:52:58 +02:00
Ondrej Zajicek
2eadd36fa0
BGP: AS-wide unique router ID (RFC 6286) support
...
RFC 6286 relaxed rules for router IDs, allowing EBGP sessions between
routers with the same ID (but different ASN).
2015-03-29 21:24:47 +02:00
Ondrej Zajicek
9aed29e605
BGP: Enhanced route refresh (RFC 7313) support
...
Also hook feed_done is renamed to feed_end.
2015-03-29 18:29:49 +02:00
Pavel Tvrdík
3bbe27472c
Birdtest: Add test for lib/bitops.c
2015-03-27 14:10:28 +01:00
Pavel Tvrdík
733088e798
Birdtest: Add test for lib/buffer_test.c
2015-03-27 14:10:00 +01:00
Pavel Tvrdík
c19954e74d
Birdtest: Add test for lib/md5.c
2015-03-27 14:09:27 +01:00
Pavel Tvrdík
3c2ac3887e
Birdtest: Refactorize heap_test.c and lists_test.c
2015-03-27 14:08:39 +01:00
Pavel Tvrdík
8edf5b99e8
Birdtest: Add bt_check()
...
- A function for check test some other function for
in and out/expected data in array.
2015-03-27 14:04:37 +01:00
Pavel Tvrdík
cf545a3ceb
Birdtest: Add bt_rand_num()
2015-03-27 14:03:47 +01:00
Pavel Tvrdík
016e7be6e5
Birdtest: Fix calc num of build-failured tests
2015-03-27 14:01:30 +01:00
Pavel Tvrdík
f26cf70152
Birdtest: Refactore tests and build system
...
Rename directory:
birdtest/* -> test/*
Rename Makefile rule:
build-tests -> tests
Move run-all-test shell script from Makefile to stand-alone shell script
Simplify Makefile test build system
2015-03-23 17:40:13 +01:00
Pavel Tvrdík
99d14b1ab3
Add header wrap defines to lib/buffer.h
2015-03-19 18:42:33 +01:00
Pavel Tvrdík
ae111d04c5
Birdtest: Remove copyrights
2015-03-19 18:38:38 +01:00
Pavel Tvrdík
5a1b5e0119
Birdtest: Output the number of Test Build Failures
2015-03-19 18:37:18 +01:00
Pavel Tvrdík
7d0c9831f8
Birdtest: Add echoing of compilation command
2015-03-17 12:43:01 +01:00