ref: 7b3e0e0cf3eddd3537455a3605b04a48ee663f47 biboumi/tests/utils.cpp -rw-r--r-- 4.9 KiB
7b3e0e0c — louiz’ 5 years ago
Make botan’s policy configurable from a file

fix #3244
d81cbc4a — louiz’ 5 years ago
Use uname() instead of CMAKE_SYSTEM

fix #3235
7f08cf83 — louiz’ 5 years ago
Little scopeguard cleanup, and add a test
548e4ad4 — louiz’ 5 years ago
Parse the timezone myself, instead of using the broken strptime



for why strptime() sucks

We use std::get_time now, to parse the date and time. And we parse the
timezone by hand.

fix #3215
e5b392ec — louiz’ 5 years ago
Fix parse_datetime by always using a 'z' as the timezone

Because some plateform accept Z and z, but some only accept z…
aaa2ca67 — louiz’ 6 years ago
Fix the parse_datetime by using %Z instead of %z

If anybody knows why fedora accepts both, but it only works with %z on
debian, please tell me.
1140db3b — louiz’ 6 years ago
Add parse_datetime
2a4905df — louiz’ 6 years ago
Fix to_string(time_t) and write a unit test for it
992fa938 — louiz’ 6 years ago
Add get_first_non_empty and use it into Database to simplify a little bit
4b1c580b — louiz’ 6 years ago
cut messages at 512 bytes, taking into account the UTF-8 codepoints

ref #3067
80d0c19c — louiz’ 6 years ago
Refactor, test and improve the way we cut too-long messages for IRC
66887c22 — Florent Le Coz 6 years ago
Add a few tests
3c1889fb — Florent Le Coz 6 years ago
Use Catch for our test suite

`make check` is also added to compile and run the tests
Catch is fetched with cmake automatically into the build directory when needed